MATLAB: Hue value of a specific pixel

centroiddigital image processingimage processingimage segmentationMATLAB and Simulink Student Suiteregionprops

I have a segmented image I, I have used labeling to find the segmented objects, and using region props function I have extracted the centroid pixel value.
My question is:
Is there a way to find the hue value of this specific pixel value in my case the centroid ?

Best Answer

Yes
hsvValues = rgb2hsv(rgbValues);
hueValue = hsvValues(:,:,1);