How to convert a HSV image into gray image????
24 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
i have a rgb image that i have converted into HSv image and applied some filter on that, now i have to convert that filtered HSV image into gray image.
0 Kommentare
Antworten (3)
KSSV
am 17 Jun. 2016
Convert hsv image to rgb: http://in.mathworks.com/help/images/convert-from-hsv-to-rgb-color-space.html
2 Kommentare
Image Analyst
am 17 Jun. 2016
Use rgb2gray:
hsvImage = rgb2hsv(rgbImage);
% Now do some computations on the HSV image.
% Now convert back to RGB
rgbImage2 = hsv2rgb(hsvImage);
% Convert to gray scale
grayImage = rgb2gray(rgbImage2);
0 Kommentare
kautsar rusydi
am 7 Jun. 2017
a=imread(img);
b=rgb2hsv(a);
c=a(:,:,3);
1 Kommentar
Image Analyst
am 7 Jun. 2017
That totally ignores the hsv image, and just sets c equal to the blue channel of the original RGB image.
Siehe auch
Kategorien
Mehr zu Convert Image Type finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!