Re: turning excel 22x22 array into a greyscale image

Posted by G. Esteban Fernandez on
URL: http://imagej.273.s1.nabble.com/turning-excel-22x22-array-into-a-greyscale-image-tp3683300p3683301.html

What I do is save the spreadsheet as a text file and edit the text
file to convert to PGM format (change extension to .pgm), for example:

---------------------------------top of text file
P2
#P2 means this is a grayscale "plain" PGM file in human-readable
format (# designates a comment)

5 5
# width & height; array values below populate an array of this size
rows-first regardles of dimensions below

255
#max pixel value, values greater that this are displayed as the mod with max

# this array produces a 5x5 image with all pixels intensity 1

1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
---------------------end of text file



On Mon, Aug 29, 2011 at 11:39 AM, Al Shinn <[hidden email]> wrote:
> Kind folks,
> I would like to convert an  excel (etc) 22x22 array into a greyscale image.
>  It's been so long since I last used ImageJ that I don't even know how to
> start. Any hints?
>
>
> Looking forward,
> Al Shinn
>