public class GuoHallThinningStrategy extends Abstract3x3NeighbourhoodThinning
m_background, m_foreground| Constructor and Description |
|---|
GuoHallThinningStrategy() |
GuoHallThinningStrategy(boolean foreground)
Create a new Guo-Hall thinning strategy.
|
| Modifier and Type | Method and Description |
|---|---|
ThinningStrategy |
copy()
Returns a seperate copy of this strategy.
|
int |
getIterationsPerCycle()
Returns the minimum number of iterations necessary for the algorithm to
run.
|
boolean |
removePixel(long[] position,
RandomAccessible<BitType> accessible,
int iteration)
This method should determine whether to keep a foreground pixel or not.
|
afterCycle, findPatternSwitches, getNeighbourhood, randomAccesspublic GuoHallThinningStrategy()
public GuoHallThinningStrategy(boolean foreground)
foreground - Value determining the boolean value of foreground pixels.public boolean removePixel(long[] position,
RandomAccessible<BitType> accessible,
int iteration)
ThinningStrategyposition - Long Array containing the current position in the image.accessible - The image to thin.iteration - The iteration number.public int getIterationsPerCycle()
ThinningStrategygetIterationsPerCycle in interface ThinningStrategygetIterationsPerCycle in class Abstract3x3NeighbourhoodThinningpublic ThinningStrategy copy()
ThinningStrategyCopyright © 2014–2022 ImageJ. All rights reserved.