Hi Steffi,<br><br>Your proposal is fine with me—it makes a lot of sense.<br><br>-Curtis<br><br><div class="gmail_quote">On Thu, May 12, 2011 at 8:07 AM, Stephan Preibisch <span dir="ltr"><<a href="mailto:preibisch@mpi-cbg.de">preibisch@mpi-cbg.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I think for many (n-dimensional) algorithms 1-dimensional temporary arrays<br>
of <T> are necessary in some form, as it is now for example in Gaussian<br>
Convolution and Fourier Transform. It is no overhead for any other<br>
container. If you do not want to implement it you could simply write:<br>
<br>
setPosition(long)<br>
{<br>
// call existing but maybe slower method which does the same<br>
setPosition(long,0);<br>
}<br>
<br>
But as temporary Img, where you know it is one-dimensional it gives you a<br>
clear benefit. And of course, if I make a temp 1-d Img<T> I would only use<br>
ArrayImg<T> - or CellImg<T> if a dimension is larger than<br>
Integer.MAX_VALUE/EntitiesPerPixel. It would also be fine with me if only<br>
those two do it and implement a special new interface.<br>
<br>
Steffi<br>
<br>
-----Original Message-----<br>
From: Johannes Schindelin [mailto:<a href="mailto:Johannes.Schindelin@gmx.de">Johannes.Schindelin@gmx.de</a>]<br>
Sent: Thursday, May 12, 2011 1:55 PM<br>
To: Stephan Preibisch<br>
Cc: <a href="mailto:saalfeld@mpi-cbg.de">saalfeld@mpi-cbg.de</a>; 'Tobias Pietzsch'; 'Fiji-devel'; 'Imagejdev.org<br>
Developers'<br>
Subject: Re: [ImageJ-devel] imglib positionables for dimension 0<br>
<div class="im"><br>
Hi,<br>
<br>
On Thu, 12 May 2011, Stephan Preibisch wrote:<br>
<br>
> what do you think about that:<br>
><br>
<<a href="http://pacific.mpi-cbg.de/wiki/index.php/ImgLib2_Discussion#Positionables" target="_blank">http://pacific.mpi-cbg.de/wiki/index.php/ImgLib2_Discussion#Positionables</a>><br>
> <a href="http://pacific.mpi-cbg.de/wiki/index.php/ImgLib2_Discussion#Positionables" target="_blank">http://pacific.mpi-cbg.de/wiki/index.php/ImgLib2_Discussion#Positionables</a><br>
<br>
I understand the reasoning, but wouldn't it be better to make that a new<br>
interface? For most truly n-dimensional algorithms, setPosition(long)<br>
would not be needed, and I could imagine that at least for some containers<br>
(think Hilbert-curve) setPosition(long) could be pretty complicated for no<br>
clear benefit.<br>
<br>
Ciao,<br>
Dscho<br>
<br>
<br>
</div>_______________________________________________<br>
ImageJ-devel mailing list<br>
<a href="mailto:ImageJ-devel@imagejdev.org">ImageJ-devel@imagejdev.org</a><br>
<a href="http://imagejdev.org/mailman/listinfo/imagej-devel" target="_blank">http://imagejdev.org/mailman/listinfo/imagej-devel</a><br>
</blockquote></div><br>