Package inra.ijpb.morphology.attrfilt
Class AreaOpeningQueue
java.lang.Object
inra.ijpb.algo.AlgoStub
inra.ijpb.morphology.attrfilt.AreaOpeningQueue
- All Implemented Interfaces:
Algo,AreaOpening
public class AreaOpeningQueue extends AlgoStub implements AreaOpening
Area opening using priority queue for updating each regional maxima.
- Author:
- dlegland
-
Constructor Summary
Constructors Constructor Description AreaOpeningQueue() -
Method Summary
Modifier and Type Method Description intgetConnectivity()Returns the current connectivity value for this algorithm.ij.process.ImageProcessorprocess(ij.process.ImageProcessor image, int minArea)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
-
AreaOpeningQueue
public AreaOpeningQueue()
-
-
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 minArea)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.minArea- the minimal number of pixels the regions need to keep.- Returns:
- the result of area opening.
-