Search:

Type: Posts; User: ejohns85

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    1,442

    Writing to begging of file with fstream

    Hello,

    I am trying to stream data to a file, and then return to the file to add further data. When I add data the second time, I then want to update the value of the second byte in the whole file....
  2. Replies
    3
    Views
    1,384

    Hi, Thanks for the help. I understand that I...

    Hi,

    Thanks for the help. I understand that I need to use the control's class name - this is in fact exactly "my_control" which was used to register the class.

    I've figured out some more...
  3. Replies
    3
    Views
    1,384

    Creating a child window

    Hello,

    I am trying to make a simple control, by creating a child window. I have already created another window successfully, who's handle is "h_parent". (My application instance is "h_instance".)...
  4. Thread: OpenCV .....

    by ejohns85
    Replies
    0
    Views
    1,657

    OpenCV .....

    Hello,

    I am using the computer vision libraries in OpenCV - if anybody is familiar with these then maybe you can help ;)

    I am trying to estimate the fundamental matrix between two images, using...
  5. Replies
    2
    Views
    1,431

    Simple Question - std::vector as argument

    Hello,

    I am new to C++ and trying to understand how arguments are passed to functions, particular with regards to objects such as the std::vector.

    When a variable is passed as an argument to a...
  6. Replies
    1
    Views
    1,488

    2-dimensional vectors

    Hello,

    I want to insert some My_Struct* pointers into a 2-dimensional array. In a 1-dimensional array, I normally do this by simply using the push_back function of a vector. But in 2-dimensions,...
  7. Replies
    3
    Views
    8,428

    Returning a pointer to a vector

    Hello,

    I have a class which contains a vector. This vector is created in a function called "CreateVector". So far, I have created this vector in this function, and returned the vector as a whole....
  8. Replies
    7
    Views
    1,323

    Ah yes that works, thanks grumpy!

    Ah yes that works, thanks grumpy!
  9. Replies
    7
    Views
    1,323

    Hi, Ok I've tried doing the object...

    Hi,

    Ok I've tried doing the object serialization, but it doesn't quite work. Here's what I have:



    #include <fstream>
    #include <iostream>

    using namespace std;
  10. Replies
    7
    Views
    1,323

    Hi, thanks for the help. Here is the...

    Hi, thanks for the help.

    Here is the structure:



    struct Image_Data
    {
    public:
    Detection_Data d_data;
  11. Replies
    7
    Views
    1,323

    Storing objects after program terminates

    Hello,

    I am writing a program which is performing some computer vision and image processing tasks. I have a database of about 100 images, from which I extract some data (properties of the images)....
  12. Replies
    1
    Views
    2,907

    Creating a simple Windows game

    Hello everyone,

    I am attempting to write a game in C++, using Visual Studio 2008. The game has minimal graphics, with more of a simple button / text GUI, and as such I will be using Windows Forms....
  13. Replies
    0
    Views
    1,084

    Windows Form Constructors

    Hello,

    I am starting a new Windows Forms application using the CLR, but I have started it as an "empty project" in Visual Studio 2008, rather than starting it automatically as a Windows Forms...
  14. Replies
    0
    Views
    1,469

    Compiler settings, references etc...

    Hello,

    When you are configuring the properties of a project, what is the difference between all the stuff found in Common Properties -> Framework and References -> References (eg. System.Drawing,...
  15. Replies
    3
    Views
    3,853

    Stack Overflow when declaring array

    Hello,

    I have a class, MyClass, which contains a 2-dimensional array, my_array, of a structure of type MyStruct. Below is the code I have used to implement this :



    struct MyStruct
    {
    ...
  16. Replies
    3
    Views
    4,772

    Hi, Thanks for the help. I don't need to try...

    Hi,

    Thanks for the help. I don't need to try all 8 directions - I only need to try the directions until the corresponding pixel is an edge pixel. It is the order of trying out these 8 pixels that...
  17. Replies
    3
    Views
    4,772

    How can I make this code more elegant?

    Hello,

    I am doing some computer vision work, which involves finding edges in an image, and then tracing round these edges to find solid bodies in an image. After applying my edge detection...
  18. Replies
    4
    Views
    3,870

    Ok thanks, that makes sense. But in that case,...

    Ok thanks, that makes sense. But in that case, what do I do if I need to change the values of the elements in myArray, and return myArray at the end of the function??
  19. Replies
    4
    Views
    3,870

    Pointer to multidimensional array

    Hello,

    I want to write a function which returns a multidimensional array of bools. I gather that you cannot return an array in C++, but you can return a pointer to array. I have tried this, and it...
  20. Replies
    2
    Views
    1,398

    Visual Studio Options

    Hello,

    I am just converting from using C# in Visual Studio 2005, to now using C++ in Visual Studio 2008. Previously, there were two things I noticed that were a real help, that not longer seem to...
  21. Thread: Header Files

    by ejohns85
    Replies
    2
    Views
    1,123

    Header Files

    Hello,

    As a beginner, I am finding it difficult to understand the function of header files, why they are used, and what you should include in them. I don't really know the difference between a .h...
  22. Replies
    4
    Views
    5,742

    Ooops..."yeh originalImage" should just be...

    Ooops..."yeh originalImage" should just be "image". They are the same.

    Can't work out why I can assign values to the data, but I cannot compare the values in an if statement.

    If you say that it...
  23. Replies
    4
    Views
    5,742

    Simple Image Processing

    Hello,

    I am trying to do some very simple image processing, using OpenCV to access data from an image. What I want to do is check whether the "B" value of each RGB pixel is greater than 100 - and...
  24. Replies
    2
    Views
    1,797

    Initializing arrays in a class

    Hey,

    I have a class Foo, which has a member array of doubles, of length 5. This array is called x. I want x to be a constant array, such that the values in the array are never changed, and I know...
  25. Replies
    1
    Views
    1,259

    Basic Threading

    Hey,

    I have a Windows Form with a PictureBox, and I want to change the image in the PictureBox every 10 seconds, to create a slide show effect. However, I also want the form to be able to respond...
Results 1 to 25 of 36
Page 1 of 2 1 2