public class MorphologyUtils extends Object
| Constructor and Description |
|---|
MorphologyUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> long[][] |
computeTargetImageDimensionsAndOffset(Interval source,
Shape strel)
Static util to compute the final image dimensions and required offset
when performing a full dilation with the specified strel.
|
static Neighborhood<BitType> |
getNeighborhood(Shape shape,
EuclideanSpace space) |
static String |
printNeighborhood(Shape shape,
int dimensionality)
Returns a string representation of the specified flat structuring element
(given as a
Shape), cast over the dimensionality specified by an
EuclideanSpace. |
public static final <T> long[][] computeTargetImageDimensionsAndOffset(Interval source, Shape strel)
source - the source image.strel - the strel to use for dilation.long[][]:
long[] array with the final image target
dimensions.
long[] array with the offset to apply to the
source image.
public static final Neighborhood<BitType> getNeighborhood(Shape shape, EuclideanSpace space)
public static final String printNeighborhood(Shape shape, int dimensionality)
Shape), cast over the dimensionality specified by an
EuclideanSpace.
This method only prints the first 3 dimensions of the structuring element. Dimensions above 3 are skipped.
shape - the structuring element to print.dimensionality - the dimensionality to cast it over. This is required as
Shape does not carry a dimensionality, and we need one
to generate a neighborhood to iterate.Copyright © 2015–2022 ImgLib2. All rights reserved.