Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   using Imaq functions from WindRiver (http://www.chiefdelphi.com/forums/showthread.php?t=114696)

UriF 06-03-2013 09:44

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?


All times are GMT -5. The time now is 12:50.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi