PDA

View Full Version : problem using a .h file's methods



sincnarf
27th August 2007, 15:32
I can't seem to use the lines
RGBImage binaryRgbImage;
binaryRgbImage = (RGBImage) binaryComplement(rgbImage);

by the way RGBImage is an extension of class Image as defined in the image.h attachment.

I also have a compilation problem that is related with using the previous lines.
On compilation I have an error in my binary.h it says
error: in passing argument 1 of `Image<unsigned char>
binaryComplement(const Image<unsigned char>&)'
in line 4.

1498

1499

1500

jacek
27th August 2007, 22:04
Please post the exact error messages, but it seems that you simply mix Image<int> and Image<unsigned char>.