Thread: Raw Camera Data
View Single Post
  #5   Spotlight this post!  
Unread 26-01-2009, 00:38
wt200999's Avatar
wt200999 wt200999 is offline
Texas Instruments
AKA: Will Toth
FRC #3005 (Robochargers)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2004
Location: Dallas, Texas
Posts: 323
wt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud of
Send a message via MSN to wt200999
Re: Raw Camera Data

Quote:
Originally Posted by Greg McKaskle View Post
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.
__________________
Programming in LabVIEW? Try VI Snippets!

FIRST LEGO League 2004 - 2005
FRC Team 870 Student 2006 - 2009
FRC Team 3005 Mentor 2013 -

Last edited by wt200999 : 26-01-2009 at 00:40.
Reply With Quote