From: Tebe Iqbal on 9 Apr 2010 12:55 AOA! The thing i want to do, that i have a image with white background and a gray face image on that which of course have different shades of gray i want to change that gray color in skin but the shades must remain same on the skin color as the shades are required to define the features of the face? how can i do this? is it possible through HSV if yes then kindly guide me? thanks Regards.
From: ImageAnalyst on 9 Apr 2010 18:43 On Apr 9, 12:55 pm, "Tebe Iqbal" <bintayiq...(a)yahoo.com> wrote: > AOA! > > The thing i want to do, that i have a image with white background and a gray face image on that which of course have different shades of gray i want to change that gray color in skin but the shades must remain same on the skin color as the shades are required to define the features of the face? how can i do this? is it possible through HSV if yes then kindly guide me? > > thanks > Regards. ----------------------------------------------------------- Take and RGB skin pic, convert to hsv, find out typical values for S and H are for skin. Put your gray image into V, and put the values for S and H into those channels in the regions of the image where you want them (i.e. the skin/face regions of the image) then call hsv2rgb().
|
Pages: 1 Prev: how to display an HSV image? Next: using mex/fftw for "xcorr", faster than 2010A "xcorr" |