examples of imshow function in matlab

0

All Contributions

Convert the RGB image to a grayscale image by using the rgb2gray function. and display gray Image

%Convert the RGB image to a grayscale image by using the rgb2gray function.
grayImage = rgb2gray(rgbImage);
%display grayImage
imshow(grayImage);

the result 

Figure contains an axes object. The axes object contains an object of type image.

Read a sample RGB image, peppers.png, into the MATLAB workspace.

rgbImage = imread("peppers.png");
%Display the RGB image using imshow
imshow(rgbImage);

the result

Figure contains an axes object. The axes object contains an object of type image.

display image 

imshow (I);

imshow (I) displays the grayscale image I in a figure . 

display image 

imshow (I);

imshow (I) displays the grayscale image I in a figure . 

total contributions (4)

This topic belongs to these lists

need a help?


find thousands of online teachers now

New to examplegeek.com?

Join us