How can I equalize the V component of a HSV image?

1 次查看(过去 30 天)
I separated the HSV image into H, S, V components... But, I have no V component in my image.. then how i equalize the HSV image??

回答(1 个)

Varun Pai
Varun Pai 2015-10-14
Please find below code
I = imread('pears.png');
I_hsv = rgb2hsv(I);
V_comp = I_hsv(:,:,3);
eq_V_comp = histeq(V_comp);
I_hsv(:,:,3) = eq_V_comp;
I_eq = hsv2rgb(I_hsv);
figure,imshow(I_eq);

类别

Help CenterFile Exchange 中查找有关 Convert Image Type 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by