Package qupath.lib.images.servers
Class PixelCalibration.Builder
java.lang.Object
qupath.lib.images.servers.PixelCalibration.Builder
- Enclosing class:
PixelCalibration
Builder class for
PixelCalibration
objects.-
Constructor Summary
ConstructorDescriptionBuilder()
Create a new builder with default (uncalibrated) values.Builder
(PixelCalibration cal) Create a new builder, initialized values of an existingPixelCalibration
. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
BuildPixelCalibration
object.pixelSizeMicrons
(Number pixelWidthMicrons, Number pixelHeightMicrons) Specify the pixel width and height in microns (the most common calibration value).timepoints
(TimeUnit timeUnit, double... timepoints) Specify timepoints and units.zSpacingMicrons
(Number zSpacingMicrons) Specify spacing between z-slices, in microns.
-
Constructor Details
-
Builder
public Builder()Create a new builder with default (uncalibrated) values. -
Builder
Create a new builder, initialized values of an existingPixelCalibration
.- 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
Specify timepoints and units.- Parameters:
timeUnit
-timepoints
-- Returns:
-
zSpacingMicrons
Specify spacing between z-slices, in microns.- Parameters:
zSpacingMicrons
-- Returns:
-
build
BuildPixelCalibration
object.- Returns:
-