So, I am uploading a .png file of color that was taken with iphone using cvLoadImage. And after it was uploaded, when I immediately show it on my X11 terminal, the image is certainly darker than the original png file.
I am currently using this to upload an image: IplImage * img3 = cvLoadImage ("bright.png", 1);
For the second parameter, I tried all of the following:
CV_LOAD_IMAGE_UNCHANGED
CV_LOAD_IMAGE_GRAYSCALE
CV_LOAD_IMAGE_COLOR
CV_LOAD_IMAGE_ANYDEPTH
CV_LOAD_IMAGE_ANYCOLOR
but none of them worked. Grayscale definitely made the image grayscale. But, as suggested by http://www.cognotics.com/opencv/docs/1.0/ref/opencvref_highgui.htm , even using CV_LOAD_IMAGE_ANYDEPTH | CV_LOAD_IMAGE_ANYCOLOR, in order to download the image as truthfully as possible, led to a darker image displayed in the terminal.
Does anyone have any ideas on how to properly display the original image?
Many thanks.
source
share