View Single Post
  #4   Spotlight this post!  
Unread 14-01-2012, 14:37
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: How to preform a convex Hull operation in C++

Quote:
image->imaqConvexHull(Image* dest, Image* source, int connectivity8);
Close, but the vision calls are just C functions, not C++ methods. The function takes in two Image* params, one for the destination and one for the source. I'm not sure what type your image-> is, so I'm not sure if that is the appropriate type to pass in or not.

The Image* referenced above is expected to come from Image* imaqCreateImage(ImageType type, int borderSize); or similar calls to load or create an NI Image.

By the way, the PDF about CVI is also a good source of how to use the library. You may also find it useful to look at examples such as C:\Program Files\National Instruments\Vision\Examples\MSVC\Threshold And Label


Greg McKaskle