Very beginners questions, but my lack of good c++ knowledge letting me down.
Problem 1)
So I have this…
// .h declare
ofCvGrayscaleImage * myImage;
// .cpp setup
myImage.allocate(320, 240);
For some reason this is now tripping up when I build.
error C2228: left of ‘.allocate’ must have class/struct/union
type is ‘ofCvGrayscaleImage *’
did you intend to use ‘->’ instead?
I am using this in my own class, but I am including ofCvGrayscaleImage.h so it should work, as this works in other class I have.
Problem 2)
If I want to pass an image into my own class, what is the difference between using these three and which should I actually use:
void myFunction(ofCvGrayscaleImage _tempimage);
void myFunction(ofCvGrayscaleImage & _tempimage);
void myFunction(ofCvGrayscaleImage * _tempimage);
Thanks