11-15-2005 03:43 PM
11-16-2005 02:28 PM
11-14-2007 01:50 AM
Hi,
I'm looking to compare two images, looking for a result of 0-100% on how they match, originally I was coverting my image to an array, with the code below, but this is taking far to long. From what your saying, we can use the 2-D array returned as pointers, but how can I compare this way. I originally intended to Subtract one from the other and get the difference.
Any ideas 🙂
myImage= imaqSnap (Sid,myImage , IMAQ_NO_RECT);
imaqDisplayImage (myImage, 0, TRUE);
myImage1= imaqSnap (Sid,myImage1 , IMAQ_NO_RECT);
imaqDisplayImage (myImage1, 0, TRUE);
convertedData = imaqImageToArray (myImage, IMAQ_NO_RECT, &columns, &rows);
convertedData1 = imaqImageToArray (myImage1, IMAQ_NO_RECT, &columns, &rows);
*convertedData1
// for (j=0; j<rows; j++)
// {
// for (i=0; i<columns; i++)
// {
// //fills a 2-D array with original pixel values plus a user-defined constant offset
// data[j][i] = *convertedData + val;
// convertedData++; //moves to the next original pixel in the array
// }
// }
11-15-2007 05:28 AM
11-15-2007 12:37 PM
11-16-2007 03:52 AM
Are these functions available only with a licensed version of NI Vision? which I don't have, is there an alternative, other than spending 2999eruo on a Vision license?
Thanks
pb
11-19-2007 07:37 AM