uchar *image_data = (uchar *)gray_plane->imageData;
for (int i=0;i<gray_plane->height;i++)
{
for (int j=0;j<gray_plane->width;j++)
{
value = image_data[gray_plane->widthStep*i+j];
}
}
for (int i=0;i<gray_plane->height;i++)
{
for (int j=0;j<gray_plane->width;j++)
{
value = image_data[gray_plane->widthStep*i+j];
}
}