how to put an image's pixels in one array in matlab?

I want to put an image' pixels in one array in MATLAB programming.

Answers (1)

I = imread('cameraman.tif') ;
iwant = I(:) ;

Asked:

on 18 Oct 2017

Commented:

Jan
on 18 Oct 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!