Package inra.ijpb.morphology.attrfilt
Class AreaOpeningNaive
java.lang.Object
inra.ijpb.algo.AlgoStub
inra.ijpb.morphology.attrfilt.AreaOpeningNaive
- All Implemented Interfaces:
Algo,AreaOpening
public class AreaOpeningNaive extends AlgoStub implements AreaOpening
Computes area opening using naive algorithm. Iterate over the list of
thresholds, compute binary image, apply binary area opening, and concatenate
the results.
- Author:
- dlegland
-
Constructor Summary
Constructors Constructor Description AreaOpeningNaive() -
Method Summary
Modifier and Type Method Description ij.process.ImageProcessorprocess(ij.process.ImageProcessor image, int minArea)Applies area opening on the input grayscale image and returns the result.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
-
AreaOpeningNaive
public AreaOpeningNaive()
-
-
Method Details
-
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.
-