I want to separate the colour RGB and HSV Image, how I do to separate and combine that?
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Oman Wisni
am 12 Sep. 2018
Kommentiert: Oman Wisni
am 13 Sep. 2018
example : RGB = the result are Red, Green, Blue image HSV = the result are Hue, Saturation, Value. every result in RGB already get then combine with result the HSV
3 Kommentare
Akzeptierte Antwort
KALYAN ACHARJYA
am 12 Sep. 2018
Bearbeitet: KALYAN ACHARJYA
am 12 Sep. 2018
RGB Component from RGB Image
r=rgbimage(:,:,1) %Red Component
g=rgbimage(:,:,2) %Green Component
b=rgbimage(:,:,3) %Blue Component
Combine All;
rgbImage_combine=cat(3,r,g,b);
HSV Component from RGB Image
HSVimage=rgb2hsv(rgbimage);
H_component=HSVimage(:,:,1) %H Component
S_component=HSVimage(:,:,2) %S Component
I_component=HSVimage(:,:,3) %IComponent
3 Kommentare
KALYAN ACHARJYA
am 13 Sep. 2018
@Oman My Pleasure!
If you wish to give credit to the answer, you can vote for it.
Happy To Help Always!
Regards,
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Modify Image Colors 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!