Class ClassificationResolution

java.lang.Object
qupath.process.gui.commands.ml.ClassificationResolution

public class ClassificationResolution extends Object
Wrapper for a PixelCalibration to be used to define classifier resolution.

This makes it possible to provide a name and override toString() to return a more readable representation of the resolution.

  • Method Details

    • getName

      public String getName()
      Get the simple name for this resolution.
      Returns:
    • getPixelCalibration

      public qupath.lib.images.servers.PixelCalibration getPixelCalibration()
      Get the PixelCalibration used to apply this resolution.
      Returns:
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getDefaultResolutions

      public static List<ClassificationResolution> getDefaultResolutions(qupath.lib.images.ImageData<?> imageData, ClassificationResolution selected)
      Get a list of default resolutions to show, derived from PixelCalibration objects.
      Parameters:
      imageData -
      selected -
      Returns: