Quote:
Originally Posted by Greg McKaskle
If you look into the nivision.h file, you should find something to extract pixel integers from the image file. Sorry I can't be more helpful, but I don't have the C tools installed on this computer. But it exists in LV, so I know it exists in C. If you are looking to do the comparisons in RGB, I'd encourage you to compare it against the color tracking in the WPI or nivision file. The nivision stuff is going to be hard to beat for standard algorithms like color thresholds. Second, I think you'll find that the algorithm will be far more resilient using HSL math.
Greg McKaskle
|
Maybe you are looking for
void* imaqImageToArray(const Image* image, Rect rect, int* columns, int* rows);
although it doesn't show hsv
take a look in C:\WindRiver\docs\extensions\NIVisionCVI.chm it describes all the functions as well as the data structures etc.