public abstract class MTBTopologicalNumber2D extends MTBTopologicalNumber
|Constructor and Description|
|Modifier and Type||Method and Description|
This initializes all relevant arrays containing information on neighbors where
Check if topological for the class
computeN, getCoordinatesNeighborNeighbors, getMaxDist, getSizeNeighborhood, hasOneCC, iterator, iteratorOffsets, print, topoNumberIsOne
protected void initNeighbors()
maxDistdefines the neighborhood, e.g.
maxDist== 1 defines 4-neighbors. Theses arrays are
dist- All pixels within the 3x3 window around the current pixel with euclidean distance not larger then
distare considered neighbors of the current pixel.
public boolean topoNumberIsOne(int nbPhases3D, int p)
cis one in the neighborhood
nbClassess3D. Specifically, all pixels in
nbClasses3Dwith equal values to
care 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
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.
Copyright © 2010–2016 Martin Luther University Halle-Wittenberg. All rights reserved.