Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV- Image To Ascii. 1# Changing Grayscale & Resolution

Hi, I've been trying to manipulate an 800600 image to be 8060 image ( kinda pixalated ) and grayscaled but to be seen as 800*600 size

what I do is the following: img_gray=cvLoadImage(FILENAME,CV_LOAD_IMAGE_GRAYSCALE); img_gray_smaller=cvCreateImage(cvSize(80, 60),IPL_DEPTH_8U,1); img_gray_regular=cvCreateImage(cvSize(800, 600),IPL_DEPTH_8U,1); which is loading the image as grayscale to begin with resizing it to 8060 and then resizing it again to 800600

but it doesnt look very well, any suggestions on (X) How to look at a low resolution image magnified to 800*600?

(maybe its the depth? the channels? tried mixing with those but the program fails)

awesome thanks

click to hide/show revision 2
No.2 Revision

OpenCV- Image To Ascii. 1# Changing Grayscale & ResolutionPixelization

Hi, I've been trying to manipulate an 800600 800x600 image to be 8060 80x60 image ( kinda pixalated ) and grayscaled but to be seen as 800*600 800x600 size

what I do is the following: following:

img_gray=cvLoadImage(FILENAME,CV_LOAD_IMAGE_GRAYSCALE);
 img_gray_smaller=cvCreateImage(cvSize(80, 60),IPL_DEPTH_8U,1);
 img_gray_regular=cvCreateImage(cvSize(800, 600),IPL_DEPTH_8U,1);

which is loading the image as grayscale to begin with resizing it to 8060 80x60 and then resizing it again to 800600800x600

but it doesnt look very well, any suggestions on

(X)

How to look at a low resolution image magnified to 800*600?

(maybe its the depth? the channels? tried mixing with those but the program fails)

awesome thanks