Create an image from a 1D array
Posted by YuriGagarine on Feb 19, 2014; 1:55pm
URL: http://imagej.273.s1.nabble.com/Create-an-image-from-a-1D-array-tp5006579.html
Hi all,
I have a 1D array that I'd like to transform it into an image. It is a NxM array its elements are included between 0 and 255.
What I'd like to do is, maybe thanks to a function which accept as inputs an 1D array, the height and the width of the output image.
The equivalent in Matlab are the functions reshape and imagesc.
PS: Sorry for my english.