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

amazon web services - S3 Pre-signed POST validate file type? -

c# - Check Keyboard Input Winforms -