[ImageJ-devel] Local Neighborhood stuff
Jean-Yves Tinevez
jeanyves.tinevez at gmail.com
Thu Jul 26 06:11:12 CDT 2012
On Thu, Jul 26, 2012 at 12:50 PM, Tobias Pietzsch <pietzsch at mpi-cbg.de>wrote:
> Hi,
>
> >>> 2.) Neighborhood interface
>
> > setSpan(long[] span);
> > span(long[] span);
> > copyOn(RandomAccessible<T> target)
>
> I think, the "span" concept is too specialised for the interface.
>
Right: for instance, it does not work with the HyperSphere which requires a
scalar long radius.
> The assumption is that the bounding box of the neighborhood structuring
> element is 2*span[d]+1 in every dimension. The anchor point is assumed to
> be the center of this neighborhood.
>
> We should think of non-symmetric neighborhoods as well.
> I suggest that instead of a long[] span, we use an Interval to specify the
> bounding box. The anchor point is always the (0,0,...,0) of the interval.
> The above span would translate to interval.min[d] = -span[d],
> interval.max[] = span[d].
>
> What would setSpan() do? Does this change the size and shape of the
> structuring element?
>
> Just the global size, the actual meaning should be let to concrete
implementation.
But as you noted, it is too specific for the interface, until we come with
an idea that would enable to specify the dimension of a generic
neighborhood....
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://imagej.net/pipermail/imagej-devel/attachments/20120726/2165a346/attachment.html>
More information about the ImageJ-devel
mailing list