public class HilditchThinningStrategy extends Abstract3x3NeighbourhoodThinning
m_background, m_foreground
Constructor and Description |
---|
HilditchThinningStrategy() |
HilditchThinningStrategy(boolean foreground)
Create a new hilditch strategy.
|
Modifier and Type | Method and Description |
---|---|
ThinningStrategy |
copy()
Returns a seperate copy of this strategy.
|
boolean |
removePixel(long[] position,
RandomAccessible<BitType> accessible,
int iteration)
This method should determine whether to keep a foreground pixel or not.
|
afterCycle, findPatternSwitches, getIterationsPerCycle, getNeighbourhood, randomAccess
public HilditchThinningStrategy()
public HilditchThinningStrategy(boolean foreground)
foreground
- Value determining the boolean value of foreground pixels.public boolean removePixel(long[] position, RandomAccessible<BitType> accessible, int iteration)
ThinningStrategy
position
- Long Array containing the current position in the image.accessible
- The image to thin.iteration
- The iteration number.public ThinningStrategy copy()
ThinningStrategy
Copyright © 2014–2022 ImageJ. All rights reserved.