-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please support multiple frames in PGM file format #268
Comments
That's an issue for the |
To complicate matters: because PGM is an open format, there is also a SCIFIO implementation: |
Thank you for the pointers. I will file this bug report there again. |
So, I played a little bit around with SCIFIO and patched the scifio PGMFormat.java to read multi-plane images. So is/was there a 3rd class for PGM loading? Edit: I got confused by the ImageJ "About" dialog. The git snapshot 2.1.1-SNAPSHOT shows in Help->"About ImageJ" the version 1.53c. This can't be good for the user... |
Indeed, ImageJ uses Bio-Formats in that case, unless you specify "Use SCIFIO when opening files (BETA!)" in Edit > Options > ImageJ2...
That's unfortunate, but a known issue: Help > About ImageJ is an ImageJ1 command and displays the bundled ImageJ1 version (i.e. the one of your |
That's an interesting comment. When I first read it, I though: well, when I compiling ImageJ from source, there is no Bio-Format plug-in installed. But then you said that there is a bundled version of ImageJ1... and yes, in then dependency ij-1.5.3c.jar, there is another PGM reader at: ij.plugin.PGM_reader.class (which does not seem to be part of the Bio-Formats package either). Thank you, I will try your option "Use SCIFIO when opening files (BETA!)", it looks very promising ;-) |
The PGM file format (http://netpbm.sourceforge.net/doc/pgm.html) allows for multiple frames in one file, called a sequence.
The frames are just written, without gaps or padding, sequentially to the file.
The number of frames in the file can be determined by the (fileSize - Header)/(size_of_one_frame)
If I open such a file in ImageJ, only the first frame is displayed.
Please improve the PGM file reader, so it can read multiple frames as a sequence, just like the RAW importer does.
sequence_3_frames_38x38px_8bit.zip
As a work-around, you can import the file using the "RAW" importer. For example, for the attached file, use uint8, size: 38x38 px, 3 frames.
Tested on ImageJ 1.53e.
The text was updated successfully, but these errors were encountered: