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

Posted by Spencer Eugene Olson on
URL: http://imagej.273.s1.nabble.com/Fixes-to-PNM-PGM-reader-writer-tp3700640p3700643.html

On Tuesday 09 January 2007 11:06, Johannes Schindelin wrote:

> Hi,
>
> On Tue, 9 Jan 2007, Harry Parker wrote:
> > Your email is a good example of why Wikipedia is a good place to start
> > searching, but a bad place to end your search.
>
> But I did not start the search in Wikipedia! Rather, I started with the
> files you sent! And there is a link to the wikipedia article, which I then
> thought to be authoritative.
>
> > P.S.: Sending diffs is obsolete.
>
> Uhm. No.
>
> > It is a lousy way to publish software to users.
>
> Not true. Besides, if you want people to _use_ them, why not send .class
> files to begin with?
>
> > Diffs do not work unless you have the exact same old version.
>
> Not true at all. Besides, you are posting a proposed new version of a
> plugin which is _included in ImageJ_.
>
> > If you want to see differences, do it yourself.
>
> Thank you very much for your help. I already did exactly that. But if
> _you_ would have shown the diff, you would have realized that your code
>
> - changes white space,
> - changes import.* statements, and
> - is rather complicated for what it actually changes.
>
> Hth,
> Dscho

I don't care whether people like diffs or not.  I can accommodate with no
complaints.  I actually prefer diffs, it's just that I was not sure of the
preferred format here (if there is one) on this list--the lack of repository
and especially the lack of "Here is how you submit patches" brought me to
this view.  I figured that if there were some here that preferred
diffs, these would certainly know how to do them, knowing the base
distribution that I specified.

With regards to the important part of my post, yes, stacked PAM (PNM, etc,
etc) images are defined by the format, although there are few of the netpbm
programs that use it.  Of course, the most blatant use of the stacked netpbm
format is in the programs 'pnmsplit', 'pamsplit', 'pampick', ....  Although
this is not the best format to work with (with respect to compression and so
on), it is certainly an easy format to use with the guarantee that my data is
not altered and easily accessible from various other programs of my own
making (c, c++, octave, ...).  I don't think that my changes were too
complicated, but that is just my opinion (especially in the writer).

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.  
Just to set the record straight.

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.]