For gray image, we use the commands like adapthisteq, imadjust... How to increase the intensity for the color image.
Direct link to this answer:
Convert to hsv color space with rgb2hsv(). Then do those same things on the v channel, then transform back to rgb color space with hsv2rgb().
Direct link to this comment:
when i run the code, i am getting an error as 3 D images. Does my procedure follows your reply or i gone to a wrong approach
I have a doubt on your reply...can you explain me little bit brief about the line...do those same things on the v channel indicates... Exactly it indicates what?
take a look at http://en.wikipedia.org/wiki/HSL_and_HSV
HSV is a colorspace like rgb , you have three channel , insted of R, G and B, you have H, S and V,
a possibility is also to transform to gray scale
Your v is the full 3D image with all the h, s, and v channels. Do this:
hsvImage = rgb2hsv(rgbImage);
% Extract individual color channels.
hChannel = hsvImage(:, :, 1);
sChannel = hsvImage(:, :, 2);
vChannel = hsvImage(:, :, 3);
% Do stuff to the v channel.
% Then, after that recombine the new v channel
% with the old, original h and s channels.
hsvImage2 = cat(3, hChannel, sChannel, vChannel);
% Convert back to rgb.
rgbImage2 = hsv2rgb(hsvImage2);
Thanks Image Analyst.. Now, I got your point..
Log In to answer or comment on this question.
Play games and win prizes!
MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Opportunities for recent engineering grads.
New to MATLAB?
Unable to complete the action because of changes made to the page. Reload the page to see its updated state.
Choose your country to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a location from the following list:
See all countries