Display image name using imshow method in MATLAB

How to show image names in MATLAB numbers? I have the following code below:

I=imread('./../images/pap.png'); subplot(1,2,1); imshow(I); % here I want to show labels 
+6
source share
1 answer

Use the title command. It is very similar to plot . imshow spawns a new shape, so you can apply commands that you would use for any shape here. Using title , you will give your image a title and it will appear at the top of the image.

In this way:

 I=imread('./../images/pap.png'); subplot(1,2,1); imshow(I); title('Labels'); % Place title here 
+12
source

Source: https://habr.com/ru/post/972506/


All Articles