Package qupath.lib.objects


package qupath.lib.objects
Provides PathObjects, used to represent annotations and other image structures within QuPath.

There are four main object types in QuPath:

  1. Root object, one per image, at the base of the object hierarchy
  2. Annotation object, used to represent larger regions, often drawn by hand and used to define regions for analysis
  3. TMA core object, similar to annotations but specifically for representing cores within a Tissue Microarray grid
  4. Detection object, used to represent objects that may be very numerous (e.g. cell nuclei). There are further specialist subtypes of detection, including cells and tiles.
In general, the idea is that annotations (and TMA cores) should be flexible and editable, whereas detections should be compact and efficient - but typically not editable after creation.

Each object can have a parent and multiple child objects. This means that all objects associated with an image can be found by traversing this hierarchical arrangement, starting from the root object for the image.

Objects also have optional classifications and measurement lists.