First time here? Check out the FAQ!

Ask Your Question
0

Histogram Equalization of color image Open CV SDK for java!

asked Feb 28 '14

nsm gravatar image

updated Feb 28 '14

berak gravatar image

Dear Folks, I am working on an image processing app in android and I am trying to achieve Histogram equalization for color image. I could able to get it done for grey scale image since it has only one channel . Now I need to do it for color image where number of channel is more! Some one please guide me how do I proceed and I want to do in '.java' file using opencv sdk api, Imgproc.equalizeHist(src, dst) since few of the method in native is not working for me ! Thats why I am shifting to java !

Thanks in advance NSM

Preview: (hide)

1 answer

Sort by » oldest newest most voted
0

answered Jun 29 '17

arqam gravatar image

I think the step should be to get the image into a format which has channels not separated by colors. So first the image should be converted from BGR to HSV and then since histogram equalization is applied to a single channel, so it should be applied to each channel separately. And then all the channels can be merged.

Preview: (hide)

Question Tools

Stats

Asked: Feb 28 '14

Seen: 1,377 times

Last updated: Jun 29 '17