[ImageJ-devel] [fiji-devel] Re: equal iteration order
Albert Cardona
sapristi at gmail.com
Wed Mar 21 13:38:09 CDT 2012
El 21 de març de 2012 14:21, Tobias Pietzsch <pietzsch at mpi-cbg.de> ha escrit:
> 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.
I had misunderstood it as a flag. I see now that it includes all the
comparisons that equalIterationOrder used to have.
No point in storing the object. I would create it new always.
Albert
--
http://albert.rierol.net
http://www.ini.uzh.ch/~acardona/
More information about the ImageJ-devel
mailing list