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:
- image pixel values 1 answer
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
Post a Comment