View Single Post
  #1   Spotlight this post!  
Unread 06-03-2013, 09:44
UriF UriF is offline
Registered User
FRC #2213
 
Join Date: Jan 2012
Location: Israel
Posts: 27
UriF is an unknown quantity at this point
using Imaq functions from WindRiver

Hey, I'm attempting to use ImaqAbsoluteDifference directly from the nivision library as it is not supplied through a FRC wrapper.

my code is as follows:
Code:
ColorImage Image1(IMAQ_IMAGE_I16);
ColorImage Image2(IMAQ_IMAGE_I16);
ColorImage *Delta = new ColorImage(IMAQ_IMAGE_I16);

Camera.GetImage(&Image1);
// do some stuff
Camera.GetImage(&Image2);

imaqAbsoluteDifference(Delta->GetImaqImage(), Image2.GetImaqImage(),
Image1.GetImaqImage());
[+] imaqAbsoluteDifference returns an error value that indicates that the Image (either source or dest) is of an invalid type, though it states in the docs that imaqAbsoluteDifference supports IMAQ_IMAGE_I16.
[+] I set the camera up to capture images at a resolution of 320x240 and a color level of 0 (Grayscale?)

What could be the problem? Has any of you had experience with directly calling Imaq functions?

Last edited by UriF : 06-03-2013 at 10:00.
Reply With Quote