Login  Register

Opening hyperstacks with gaps between frames rather than every image

Posted by Josh Doe on Apr 13, 2010; 12:35pm
URL: http://imagej.273.s1.nabble.com/Opening-hyperstacks-with-gaps-between-frames-rather-than-every-image-tp3688558.html

I am working with files that have gaps not between every image but rather
between frames (with xyczt ordering). What I have is the following, where
each number represents the channel, slice, and frame in that order:

000 100 200 gap 001 101 201 gap 002 102 202 gap ...

However using gapBetweenImages as provided by FileInfo opens files like
this:

000 gap 100 gap 200 gap 001 gap 101 gap ...

How difficult would it be to add something like gapBetweenChannels,
gapBetweenSlices, and gapBetweenFrames? I imagine this would require many
small changes throughout ImageJ to adjust for the calculation of offsets.
From what I can see at least the following would need to be modified:
FileInfoVirtualStack.open(), FileOpener.openStack(), and of course FileInfo.
In the future ImportDialog could be modified to enable importing of these
types of hyperstacks. To complicate things the offset would now become
dependent upon the ordering (czt, tcz, etc).

I'd be happy to implement this myself if I could get some feedback on how to
do so best.

-Josh