how to get a uniform illumination?

hello, i am trying to do a face detection based on skin colour and i was trying to make a uniform illumination for the images acquired through the webcam. How can I do this with help of HSV adjustments?

 Accepted Answer

Image Analyst
Image Analyst on 16 Feb 2016
Illumination cannot be changed by software. You need things like lamps and diffusers. Simply converting to HSV or LAB color space and making the V or L channel (respectively) a uniform value does not have the same effect. Below is an image where I made the left half have the same Y value (like L or V). You can see the effect. If you would have had a non-uniform illumination, it would not flatten the image. You'd need to do background division for that.

6 Comments

amir
amir on 17 Feb 2016
Edited: amir on 17 Feb 2016
thanks for your explanation. I have these two images. What method would you think is suitable for this purpose?
<<
>>
I don't think you need uniform illumination. Why do you think you do?
I was just playing around with HSV parameters to get the skin colour of face area but i couldn't get it properly, since there is different lightning around the face. Would you please guide me to get the skin colour or which parameters I am supposed to work on?
thank you.
I'd try color segmentation in the HSV color space. Have you opened this image in the Color Thresholder app yet? Click on the Apps tab on the main tool ribbon in MATLAB, then click Color Thresholder.
amir
amir on 24 Feb 2016
Edited: amir on 24 Feb 2016
I have tried with color thresholder but the image is so noisy in the face area. Since I am going to do this method for real time processing, the result would not be stable since i have tried it with different photos. There is anyway I can overcome this problem?
Try to do some noise reduction. For example average video frame together, or use some denoising algorithm.

Sign in to comment.

More Answers (0)

Categories

Find more on Image Processing and Computer Vision in Help Center and File Exchange

Asked:

on 16 Feb 2016

Commented:

on 24 Feb 2016

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!