07-16-2005 08:19 PM - edited 07-16-2005 08:19 PM
Message Edited by toidi on 07-16-2005 08:22 PM
07-18-2005 01:27 PM
Hi Dongsheng,
The attached code is indexing columns and then rows. Try the code below, which indexes the rows and then columns. I think this will fix the problem.
array = imaqImageToArray(sourceImage,IMAQ_NO_RECT, &columns ,&rows);
g = malloc ( columns * rows * sizeof (unsigned char));
for(i=0;i<rows;i++)
for(j=0;j<columns;j++)
Ryan
Applications Engineer
National Instruments