232k views
3 votes
What is the code for loading image in matlab

User Elvie
by
7.8k points

1 Answer

3 votes

Answer: Using imread command

Step-by-step explanation:

For loading images in matlab we can use the imread command. Some example regarding how to use the code is as follows:

A = imread('ball.tif');

Here suppose the image file name is saved as ball and is in tif format. Here the image is stored in an array named A.

We can view the image using

imshow(A);

User Yudelka
by
8.1k points