2017-10-11 196 views

回答

0

由于Matlab提到,rgb2hsv的输出返回为m×n×3的图像阵列,其三个平面包含图像的色相,饱和度和值分量。因此,您可以简单地获取这些分量作为:

hsv_image = rgb2hsv(rgb_image); 
hue_component= hsv_image(:,:,1); 
saturation_component= hsv_image(:,:,2); 
value _component= hsv_image(:,:,3);