Package com.xinapse.multisliceimage.roi
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 javax.swing.SwingWorker
SwingWorker.StateValue
-
Constructor Summary
ConstructorDescriptionMorphologicalOperationWorker
(CanAddROIToFrame f, List<ROI> rois, double radius) Creates a new MorphologicalOperationWorker to operate on a set of ROIs. -
Method Summary
Methods inherited from class javax.swing.SwingWorker
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, publish, removePropertyChangeListener, run, setProgress
-
Constructor Details
-
MorphologicalOperationWorker
Creates a new MorphologicalOperationWorker to operate on a set of ROIs.- Parameters:
f
- theCanAddROIToFrame
that will (if non-null) be updated when thisMorphologicalOperationWorker
has finished.rois
- thejava.util.List<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
Perform the morphological operation.- Specified by:
doInBackground
in classSwingWorker<List<ROI>,
Integer>
-
done
public void done()- Overrides:
done
in classSwingWorker<List<ROI>,
Integer>
-
process
- Overrides:
process
in classSwingWorker<List<ROI>,
Integer>
-