06-23-2006 12:32 PM
06-26-2006 01:41 PM
06-30-2006 05:54 AM
06-30-2006 08:05 AM
06-30-2006 09:04 AM - edited 06-30-2006 09:04 AM
Message Edited by AdamB on 06-30-2006 09:05 AM
07-01-2006 12:23 PM
07-03-2006 03:46 AM
Hi,
Below is a small snippit of code to extract the saturation plane in LabWindows CVI:
static int IVA_CLRExtractSaturation(Image* image)
{
int success = 1;
Image* plane;
//-------------------------------------------------------------------//
// Extract Color Plane //
//-------------------------------------------------------------------//
// Creates an 8 bit image that contains the extracted plane.
VisionErrChk(plane = imaqCreateImage(IMAQ_IMAGE_U8, 7));
// Extracts the saturation plane
VisionErrChk(imaqExtractColorPlanes(image, IMAQ_HSL, NULL, plane, NULL));
// Copies the color plane in the main image.
VisionErrChk(imaqDuplicate(image, plane));
Error:
imaqDispose(plane);
return success;
}
If you then run a histogram on this greyscale image (the result) you will find that on a black and white image that is in PAL format while the card is set to NTSC will have 0 (zero) saturation (and should be black) while a filtered black and white image (as you say has SOME colour) with the correct video format will have some saturation values.
This might work?
Do you have a few sample images I could look at (try and save them in RGB format so I can extract the image data) if you post up an image of the filtered black and white, against the incorrect video format image I can have a look for you.
" Is there any other way to swtich the video type of the card without changing the camera file?"
No there isn't (as Jeffrey P said in an earlier post)
I hope this helps
AdamB
07-04-2006 04:39 PM
07-04-2006 05:05 PM