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
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 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- theCanAddROIToFramethat will (if non-null) be updated when thisMorphologicalOperationWorkerhas 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:
doInBackgroundin classSwingWorker<List<ROI>,Integer>
-
done
public void done()- Overrides:
donein classSwingWorker<List<ROI>,Integer>
-
process
- Overrides:
processin classSwingWorker<List<ROI>,Integer>
-