Writing files in "pgm" format

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Writing files in "pgm" format

Andrew Phillips-2
My apologies for the previous positing with the wrong title.

A.P.

I am trying to save files in a ".pgm" file format (required by another
program).  While ImageJ can read these files, I have not been able to
find a way to save them in this format.  As far as I can see, the "pgm"
format is very similar to the "RAW" format, with the difference being
the inclusion of an ASCII header.  Is there a way that I can insert this
header using a macro, or alternatively, is there a "pgm" writer plugin -
(I have only been able to find a reader)?

Thanks,

Andy Phillips
Reply | Threaded
Open this post in threaded view
|

Re: Writing files in "pgm" format

dscho
Hi,

On Wed, 8 Mar 2006, Phillips, Andrew (DPI-Corvallis) wrote:

> I am trying to save files in a ".pgm" file format (required by another
> program).

Just whipped up a simple plugin.

Hth,
Dscho

P.S.: The mailing list rejected the .class file, so you have to compile it
yourself.

PNMWriter_.java (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Writing files in "pgm" format

Wayne Rasband
>> I am trying to save files in a ".pgm" file format
>> (required by another program).
>
> Just whipped up a simple plugin.
>
> Hth,
> Dscho
>
> P.S.: The mailing list rejected the .class file, so you have
> to compile it yourself.
> <PNMWriter_.java>

This plugin is now available on the ImageJ website at

    http://rsb.info.nih.gov/ij/plugins/pnm-writer.html

-wayne
Reply | Threaded
Open this post in threaded view
|

Re: Writing files in "pgm" format

Andrew Phillips-2
In reply to this post by Andrew Phillips-2
Hi Johannes and Wayne.

Thanks a lot!  You made my day.  "pgm" writer working fine.

BTW:  Love ImageJ!

Regards,

Andy Phillips.



-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of
Johannes Schindelin
Sent: Thursday, March 09, 2006 3:22 AM
To: [hidden email]
Subject: Re: Writing files in "pgm" format


Hi,

On Wed, 8 Mar 2006, Phillips, Andrew (DPI-Corvallis) wrote:

> I am trying to save files in a ".pgm" file format (required by another

> program).

Just whipped up a simple plugin.

Hth,
Dscho

P.S.: The mailing list rejected the .class file, so you have to compile
it
yourself.