01-23-2009 02:04 PM
I am acquiring a 2048 x 2048 imaq image which I save in a raw format, but I would also like to save a smaller thumbnail 512 x 512 TIF image of the scene as well.
I am using the Resample2 function in the following method
Dim imaqimage as new CWIMAQImage
Dim resample_imaqimage as new CWIMAQImage
*acquire the image into imaqimage*
CWIMAQVision1.Resample2 imaqimage, resample_imaqimage,cwimaqinterpolatebilinear, 512, 512
And I get the error, "Incompatible Image Type"
01-26-2009 10:32 AM
Hi timmkish,
Upon looking at this code, my first instinct is a mismatch in the file types. Have you seen the following lines in the help document?
Resample2 Method
Use this method with U8, I16, SGL, HSL, and RGB32 images.
SourceImage and DestImage must be the same type of image.
Are you sure that your source and destination images are the same type? If not, this could be the issue.
01-26-2009 02:08 PM
Where is the help file located and what is it's filename?
The image I acquire is a 12 bit image.
01-26-2009 03:50 PM
Hi timmkish,
The help file is located at
C:\Program Files\National Instruments\Vision\Documentation\cwimaq.chm