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
I'm using the 1405 vidieo cards with CVI 8 (don't have the NI Vision software)
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
// }
// }