Matlab image representation

How can I present a matrix image in Matlab?

+6
matlab
source share
3 answers

Once you have uploaded the image to Matlab, it will be presented as a matrix. for example

>> A = imread('peppers.png'); >> size(A) ans = 384 512 3 

A is a 384 by 512 by 3 array representing an RGB image, where, for example, A(:,:,1) is the red channel

+13
source share

Check out this question .

Basically, start with the imread function and from there from there.

+2
source share

imread can read your image file as a matrix.

+2
source share

All Articles