How to store all pixel values of an image in either in an array or in a vector using matlab -


this question has answer here:

i want store pixel values of image in either in array or in vector using matlab. please suggest me how can it?

probably seems want store image in 1d, can done as:

i = imread('cameraman.tif'); i_1d = i(:); 

you take transpose of vector i_1d = i(:)';


Comments

Popular posts from this blog

How to use SUM() in MySQL for calculated values -

loops - Spock: How to use test data with @Stepwise -