In this post, I am going to discuss about how to convert RGB or color map images into grayscale.
The following piece of code is used to convert RGB image to grayscale.
In the above code, grayimage
The following piece of code is used to convert RGB image to grayscale.
In the above code, grayimage
= rgb2gray(I)
converts the truecolor image RGB
to the grayscale intensity image . The rgb2gray
function converts RGB images to grayscale by eliminating the hue and saturation information while retaining the luminance.
No comments:
Post a Comment