Ask Your Question

mariyanna's profile - activity

2017-05-25 04:08:37 -0600 received badge  Enthusiast
2017-05-20 12:18:35 -0600 commented question No changes to RGB image after conversion

it's version 2.2

2017-05-20 11:50:52 -0600 commented question No changes to RGB image after conversion

I am using openCV verision 2. snipped code: `

IplImage* hsv = cvCreateImage(size, 8, 3);
cvCvtColor(inputImage, hsv, CV_RGB2HSV);
cvSplit(hsv, Hchannel, Schannel, Bchannel, NULL);
cvEqualizeHist(Bchannel, Bchannel);
cvMerge(Hchannel, Schannel, Bchannel, NULL, result);
cvCvtColor(hsv, result, CV_HSV2BGR);`
2017-05-20 11:05:00 -0600 asked a question No changes to RGB image after conversion

Hi guys,

I am trying to brighten an RGB image by converting it to HSV (also tried with YUV) and equalizing one channel, the V channel, so it would look better. When I check the picture after equalization, the change is noticable, but when I convert it back to RGB, the picture returns to the "original" state. What am I doing wrong?

Thanks! Marijana