View Single Post
  #3   Spotlight this post!  
Unread 05-02-2012, 16:42
Navi Navi is offline
Registered User
AKA: Ivan
FRC #0840 (Aragon Robotics Team)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2009
Location: San Mateo
Posts: 12
Navi is an unknown quantity at this point
Re: Vision Tracking imaqMorphology exception

That looks like the problem. To create an image, you need to use the imaq or frc function. Try this instead:

Code:
Image* processedImage = imaqCreateImage(IMAQ_IMAGE_U8, 3);
imaqMorphology(processedImage, bImage -> GetImaqImage(), IMAQ_ERODE, sElement);
When you wish to dispose of the image, you can then use
Code:
imaqDispose(processedImage);
Reply With Quote