Hi, I want to use opencv to tell me the pixel values ββof the blank and white images so the output will look like this:
10001 00040 11110 00100
Here is my current code, but I'm not sure how to access the results of calling CV_GET_CURRENT .. any help?
IplImage readpix(IplImage* m_image) { cout << "Image width : " << m_image->width << "\n"; cout << "Image height : " << m_image->height << "\n"; cout << "-----------------------------------------\n"; CvPixelPosition8u position; CV_INIT_PIXEL_POS(position, (unsigned char*)(m_image->imageData), m_image->widthStep, cvSize(m_image->width, m_image->height), 0, 0, m_image->origin); for(int y = 0; y < m_image->height; ++y)
pixel image-processing opencv computer-vision
macarthy Jan 20 2018-11-11T00 : 00Z
source share