On Thu, Jul 26, 2012 at 12:50 PM, Tobias Pietzsch <[email protected]>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....
_______________________________________________ ImageJ-devel mailing list [email protected] http://imagej.net/mailman/listinfo/imagej-devel
