[ImageJ-devel] [fiji-devel] Re: equal iteration order
Tobias Pietzsch
pietzsch at mpi-cbg.de
Wed Mar 21 13:21:20 CDT 2012
On 03/21/2012 07:11 PM, Albert Cardona wrote:
> Tobias,
>
> considering that most everyday images will use FlatIterationOrder, I
> suggest making FlatIterationOrder a singleton and then the
> equalIterationOrder of ArrayImg, ListImg, etc would return that
> unique, shared instance.
>
> I agree with Preibisch that this operation is done almost never. No
> point in adding an extra object in there for nothing.
>
> Albert
Hi Albert,
FlatIterationOrder also is defined with respect to the Interval of the
image. Two images only have equal iteration order, when they have the
same number of dimensions, the same size, and the same minimum. The idea
is that you could at any point localize Cursors that you move in unison
through two compatible images and they would give you the same location.
A 3D and a 2D image never have the same iteration order.
So a singleton will not work.
best regards,
Tobias
More information about the ImageJ-devel
mailing list