Package qupathj

Class QuPath_Send_Overlay_to_QuPath

java.lang.Object
qupathj.QuPath_Send_Overlay_to_QuPath
All Implemented Interfaces:
PlugIn

public class QuPath_Send_Overlay_to_QuPath extends Object implements PlugIn
ImageJ plugin for sending back all the ROIs on an ImageJ overlay to QuPath. Optionally measure the ROIs first, and include the measurements as features.
  • Constructor Details

    • QuPath_Send_Overlay_to_QuPath

      public QuPath_Send_Overlay_to_QuPath()
  • Method Details

    • run

      public void run(String arg)
      Specified by:
      run in interface PlugIn
    • createObjectsFromROIs

      public static List<PathObject> createObjectsFromROIs(ImagePlus imp, Collection<? extends Roi> rois, double downsample, boolean asDetection, boolean includeMeasurements, ImagePlane plane)
      Turn an array of ImageJ ROIs into a list of QuPath PathObjects, optionally adding measurements as well.
      Parameters:
      imp -
      rois -
      downsample -
      asDetection -
      includeMeasurements -
      plane -
      Returns:
      Since:
      v0.4.0
    • createObjectsFromROIs

      public static List<PathObject> createObjectsFromROIs(ImagePlus imp, Collection<? extends Roi> rois, double downsample, Function<ROI,PathObject> creator, boolean includeMeasurements, ImagePlane plane)
      Turn an array of ImageJ ROIs into a list of QuPath PathObjects, optionally adding measurements as well.
      Parameters:
      imp - the image to use for measurements
      rois - the ROIs to convert
      downsample - the downsample factor of the image
      creator - the function to create QuPath objects from ROIs
      includeMeasurements - request to include measurements for the objects that are created
      plane - the image plane for the created objects
      Returns:
      Since:
      v0.6.0