Package inra.ijpb.morphology.attrfilt
Class BoxDiagonalOpeningQueue
java.lang.Object
inra.ijpb.algo.AlgoStub
inra.ijpb.morphology.attrfilt.BoxDiagonalOpeningQueue
- All Implemented Interfaces:
Algo
,AreaOpening
public class BoxDiagonalOpeningQueue extends AlgoStub implements AreaOpening
Area opening using priority queue for updating each regional maxima.
- Author:
- dlegland
-
Constructor Summary
Constructors Constructor Description BoxDiagonalOpeningQueue()
-
Method Summary
Modifier and Type Method Description int
getConnectivity()
Returns the current connectivity value for this algorithm.ij.process.ImageProcessor
process(ij.process.ImageProcessor image, int minDiagonal)
Applies area opening on the input grayscale image and returns the result.void
setConnectivity(int connectivity)
Changes the connectivity of this algorithm.Methods inherited from class inra.ijpb.algo.AlgoStub
addAlgoListener, removeAlgoListener
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface inra.ijpb.algo.Algo
addAlgoListener, removeAlgoListener
-
Constructor Details
-
BoxDiagonalOpeningQueue
public BoxDiagonalOpeningQueue()
-
-
Method Details
-
setConnectivity
public void setConnectivity(int connectivity)Changes the connectivity of this algorithm.- Parameters:
connectivity
- the connectivity to use, either 4 or 8
-
getConnectivity
public int getConnectivity()Returns the current connectivity value for this algorithm.- Returns:
- the current connectivity value (either 4 or 8)
-
process
public ij.process.ImageProcessor process(ij.process.ImageProcessor image, int minDiagonal)Description copied from interface:AreaOpening
Applies area opening on the input grayscale image and returns the result.- Specified by:
process
in interfaceAreaOpening
- Parameters:
image
- the image to process.minDiagonal
- the minimal number of pixels the regions need to keep.- Returns:
- the result of area opening.
-