Login  Register

Re: Fixes to PNM/PGM/... reader/writer

Posted by Spencer Eugene Olson on Jan 11, 2007; 3:14pm
URL: http://imagej.273.s1.nabble.com/Fixes-to-PNM-PGM-reader-writer-tp3700640p3700645.html

On Thursday 11 January 2007 04:10, Johannes Schindelin wrote:

> The home page says something about July 2000.

If you look at the documentation for the programs that do support stacks in
the netpbm package (pamsplit, pampick, pnmsplit, ...?), you will "Updated: 23
October 2005".  So it looks like it is not a retired feature. As stated, I
find the feature useful.

> > Oh, and yes, you can actually store information about the image in
> > netpbm.  This can be done in the form of comments instead of some
> > standard header.
>
> I did not find any documentation on the preferred way to specify the
> bounding box, or alternatively the voxel dimensions. Could you enlighten
> me as to what are the common methods?

I would not claim to know any "common methods" here.  I simply have used
inline comments in the netpbm header to record things that I want to have
automatically associated with the file (camera exposure, date, data type,
various physical parameters of an experiment, etc.) without the need for me
to take the time to find the correct log book and search through it.  It
stands to reason that if someone really wanted, they could have a set of
comment lines that looked like:
# boundingBox=a,b,c,d
and then just parse these comments.  If you look at the PNM_Writer.java that I
sent, you will notice that I added a "# label : <label>" type of comment.  I
had just this in mind, so that the PGM_Reader could set the slice label if it
found this comment.  I just didn't implement it in the reader yet.  

ciao,

Spencer


--
------------
Spencer E. Olson
[hidden email]
http://www.umich.edu/~olsonse/
PGP Fingerprint: A452 312C 73DC 41EF 47F3  EE73 A898 B528 BAD2 0D0F
(See www.pgp.net or pgp.mit.edu for public keys to encrypt messages for me)

user, n.:
        The word computer professionals use when they mean "idiot."
                        -- Dave Barry, "Claw Your Way to the Top"
                         
[I always thought "computer professional" was the phrase hackers used
when they meant "idiot."  Ed.]