Class MorphologicalOperationWorker
java.lang.Object
javax.swing.SwingWorker<List<ROI>, Integer>
com.xinapse.multisliceimage.roi.MorphologicalOperationWorker
This SwingWorker is used to perform morphological operations (dilation and erosion) on ROIs.
-
Nested Class Summary
Nested classes/interfaces inherited from class SwingWorker
SwingWorker.StateValueNested classes/interfaces inherited from interface Future
Future.State -
Constructor Summary
ConstructorsConstructorDescriptionMorphologicalOperationWorker(CanAddROIToFrame f, List<ROI> rois, double radius) Creates a new MorphologicalOperationWorker to operate on a set of ROIs. -
Method Summary
Methods inherited from class SwingWorker
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, removePropertyChangeListener, runMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Future
exceptionNow, resultNow, state
-
Constructor Details
-
MorphologicalOperationWorker
Creates a new MorphologicalOperationWorker to operate on a set of ROIs.- Parameters:
f- theCanAddROIToFramethat will (if non-null) be updated when thisMorphologicalOperationWorkerhas finished.rois- theList<ROI>of ROIs to be operated on.radius- the distance by which the perimeter of the ROIs is dilated. A negative radius indicated that an erosion should be performed.
-
-
Method Details
-
doInBackground
-
done
public void done()
-