Go to Post College was the best twenty years of my life. - Richard Wallace [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rating: Thread Rating: 5 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 18:20.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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