dglienna: Do you mean these codes can help me to extract red region as well as the lips from an image?
My original image is in RGB. If HSL can detect lips and ignore others, i am going to use it. However, i am not expert in Matlab because i use it to test algorithm before doing C. Do you mind to show me which part can do the job as mentioned?
As far as i know, RGBToHSL() can be used to convert my rgb image to hsl color space. form_load() and cmdGo_Click() i have no idea. Do you mind to allocate a few minutes to educate me on this?