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 intgetConnectivity()Returns the current connectivity value for this algorithm.ij.process.ImageProcessorprocess(ij.process.ImageProcessor image, int minDiagonal)Applies area opening on the input grayscale image and returns the result.voidsetConnectivity(int connectivity)Changes the connectivity of this algorithm.Methods inherited from class inra.ijpb.algo.AlgoStub
addAlgoListener, removeAlgoListenerMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:AreaOpeningApplies area opening on the input grayscale image and returns the result.- Specified by:
processin interfaceAreaOpening- Parameters:
image- the image to process.minDiagonal- the minimal number of pixels the regions need to keep.- Returns:
- the result of area opening.
-