Class PixelCalibration.Builder

java.lang.Object
qupath.lib.images.servers.PixelCalibration.Builder
Enclosing class:
PixelCalibration

public static class PixelCalibration.Builder extends Object
Builder class for PixelCalibration objects.
  • Constructor Details

    • Builder

      public Builder()
      Create a new builder with default (uncalibrated) values.
    • Builder

      public Builder(PixelCalibration cal)
      Create a new builder, initialized values of an existing PixelCalibration.
      Parameters:
      cal -
  • Method Details

    • pixelSizeMicrons

      public PixelCalibration.Builder pixelSizeMicrons(Number pixelWidthMicrons, Number pixelHeightMicrons)
      Specify the pixel width and height in microns (the most common calibration value).
      Parameters:
      pixelWidthMicrons -
      pixelHeightMicrons -
      Returns:
    • timepoints

      public PixelCalibration.Builder timepoints(TimeUnit timeUnit, double... timepoints)
      Specify timepoints and units.
      Parameters:
      timeUnit -
      timepoints -
      Returns:
    • zSpacingMicrons

      public PixelCalibration.Builder zSpacingMicrons(Number zSpacingMicrons)
      Specify spacing between z-slices, in microns.
      Parameters:
      zSpacingMicrons -
      Returns:
    • build

      public PixelCalibration build()
      Build PixelCalibration object.
      Returns: