Class PathDetectionObject

All Implemented Interfaces:
Externalizable, Serializable
Direct Known Subclasses:
PathCellObject, PathTileObject

public class PathDetectionObject extends PathROIObject
A detection PathObject.

Detections tend to be very numerous (e.g. millions of nuclei, each one a detection), and so need to be represented and displayed very efficiently.

Author:
Pete Bankhead
See Also:
  • Constructor Details

    • PathDetectionObject

      public PathDetectionObject()
      Default constructor. Should not be used directly, instead use PathObjects.createDetectionObject(ROI).
    • PathDetectionObject

      protected PathDetectionObject(ROI pathROI, PathClass pathClass)
      Create a new PathDetectionObject with a float measurement list.
      Parameters:
      pathROI -
      pathClass -
  • Method Details

    • isEditable

      public boolean isEditable()
      Always returns false - detection objects shouldn't be edited.
      Overrides:
      isEditable in class PathROIObject
      Returns:
    • createEmptyMeasurementList

      protected MeasurementList createEmptyMeasurementList()
      Default to a simple, float measurement list.
      Overrides:
      createEmptyMeasurementList in class PathObject
      Returns:
    • getMetadata

      public Map<String,String> getMetadata()
      Get a map of metadata values. Note that, for detection objects, this map is unmodifiable to avoid excessive memory use.
      Overrides:
      getMetadata in class PathObject
      Returns:
      Since:
      v0.5.0