public abstract class MTBTopologicalNumber2D extends MTBTopologicalNumber
MTBTopologicalNumber.PixelOffsetIterator, MTBTopologicalNumber.Point3DcoordinatesNeighborNeighbors, coordinatesNeighborNeighborsByCoord, coordinatesNeighbors, debug, dimension, maxDist, offsetsNeighborNeighbors, offsetsNeighbors, sizeNeighborhood, X| Constructor and Description |
|---|
MTBTopologicalNumber2D() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
initNeighbors()
This initializes all relevant arrays containing information on neighbors
where
maxDist defines the neighborhood, e.g. |
boolean |
topoNumberIsOne(int[][][] nbPhases3D,
int p)
Check if topological for the class
c is one in the
neighborhood nbClassess3D. |
computeN, getCoordinatesNeighborNeighbors, getMaxDist, getSizeNeighborhood, hasOneCC, iterator, iteratorOffsets, print, topoNumberIsOneprotected void initNeighbors()
maxDist defines the neighborhood, e.g. maxDist == 1 defines 4-neighbors.
Theses arrays are coordinatesNeighbors, offsetsNeighbors,
and coordinatesNeighborNeighbors.dist - All pixels within the 3x3 window around the current pixel
with euclidean distance not larger then dist are considered neighbors of
the current pixel.public boolean topoNumberIsOne(int[][][] nbPhases3D,
int p)
MTBTopologicalNumberc is one in the
neighborhood nbClassess3D. Specifically, all pixels in
nbClasses3D with equal values to c
are considered as elements of X, the rest as not in X.
nbClassess3D is a 3D volume of size 3x3x3
where the current pixel is located in the center, i.e. with coordinates (1,1,1).
Memory layout is nbClasses3D[z][y][x].
The values give the classes or phases to which the pixels belong to.
Neighborhood definitions are define in derived sub classes.
If this is a 2D neighborhood, only the z=0 slice of
nbClasses3D will be considered and accessed.
topoNumberIsOne in class MTBTopologicalNumberCopyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.