hi, I am using following method to convert image pixel values to unsigned short array. ////////////////// unsigned short *yc_in;
yc_in=( unsigned short )malloc(442368sizeof( unsigned short));
if (!yc_in ) { if (yc_in) free(yc_in); }
Mat gimg(576,768,CV_16UC1,yc_in);
image.convertTo(gimg,CV_16UC1);
/////////////////////////////////////
how can I do the same thing with array of image efficiently. for example image[20]. ??? (I cannot use vector operations)