07-27-2006 08:29 PM
07-28-2006 11:07 AM
07-28-2006 02:54 PM
Thanks your reply.
I already tried to that before I posted my question.
First of all, I declare variable like below, and then, I used the function imaqArrayToImage(). But, there is error message at the red sentence, not an image.
How to correct that.
static Image *tempimage;
static Image *tempimage2;
imgGrab (Sid, (void **)&ImaqBuffer2, TRUE);
imaqArrayToImage (tempimage, ImaqBuffer2,AcqWinWidth , AcqWinHeight);
imaqScale (tempimage2, tempimage, 2, 2, IMAQ_SCALE_SMALLER,
IMAQ_NO_RECT);
imaqImageToArray (tempimage2, IMAQ_NO_RECT, NULL, NULL);
imgPlot (CVIWndHndl, tempimage2, 0, 0, AcqWinWidth, AcqWinHeight,
CanvasLeft, CanvasTop, plotFlag);
07-31-2006 11:57 AM
08-06-2008 11:51 AM
Hi!
I wanted to get more details about how to use imaqResample() with regards to the problem below:
I have a camera that streams images of resolution 640x480. I wanted to know if there is a way of scaling down the image to 320x240. How do I use this function or another to do this.
Thank you so much.