Re: import image sequence of raw images
Posted by Christophe Meessen-3 on Nov 13, 2007; 8:45am
URL: http://imagej.273.s1.nabble.com/4-colour-merge-tp3698028p3698035.html
Hello,
I had the same problem so I created a new file format I name IJG for
ImageJ Graphics.
It is very simple. I don't know if there would be much interest in it. I
have a program to convert any raw data file into ijg file type. It may
drop any number of header bytes in the raw data file. It basically
simply add the 16 header bytes in front of the raw data.
I also heard of a small program that could add a DICOM header which is
probably more interesting because you will be able to read the file with
all programs supporting DICOM. I would be curious to compare complexity
of the code and file changes. IJG requires only a 16byte header addition
that specify the file type, the pixel type and the width, height and
depth size.
It would be nice if ImageJ could add support for a specific
FileReaderPlugins. This plugin class would be derived from the Plugin
class and simply add one method to tell if the reader can open the given
file. The arguments would be the file name and a buffer holding the 1000
first bytes as is currently done in the HandleFileReader.java program.
ImageJ could try all the plugins in InputOutput that are derived from
the FileReaderPlugin class. Even those without an underscore in their
names. The file open attempt would be performed in the lexicographic
plugin name order. Adding a number in front of the name would then allow
to control the order of plugin usage.
The change required to support this would ensure backward compatibility
since the HandleFileReader.java would try use FileReaderPlugins before
the current code which would work as a fallback.