Class MorphologicalOperationWorker

java.lang.Object
javax.swing.SwingWorker<List<ROI>, Integer>
com.xinapse.multisliceimage.roi.MorphologicalOperationWorker
All Implemented Interfaces:
Runnable, Future<List<ROI>>, RunnableFuture<List<ROI>>

public class MorphologicalOperationWorker extends SwingWorker<List<ROI>, Integer>
This SwingWorker is used to perform morphological operations (dilation and erosion) on ROIs.
  • Constructor Details

    • MorphologicalOperationWorker

      public MorphologicalOperationWorker(CanAddROIToFrame f, List<ROI> rois, double radius)
      Creates a new MorphologicalOperationWorker to operate on a set of ROIs.
      Parameters:
      f - the CanAddROIToFrame that will (if non-null) be updated when this MorphologicalOperationWorker has finished.
      rois - the 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

      public List<ROI> doInBackground()
      Perform the morphological operation.
    • done

      public void done()