Package qupath.lib.classifiers.pixel
Class PixelClassifierMetadata.Builder
java.lang.Object
qupath.lib.classifiers.pixel.PixelClassifierMetadata.Builder
- Enclosing class:
PixelClassifierMetadata
Builder to create
PixelClassifierMetadata
objects.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build a new PixelClassifierMetadata object.classificationLabels
(Map<Integer, PathClass> labels) Specify classification labels.inputPadding
(int inputPadding) Amount of padding requested for the left, right, top and bottom of the image tile being classified.inputResolution
(PixelCalibration inputResolution) Pixel size defining the resolution at which the classifier should operate.inputShape
(int width, int height) Preferred input image width and height.outputChannels
(Collection<ImageChannel> channels) Specify channels for output.outputChannels
(ImageChannel... channels) Specify channels for output.outputPixelType
(PixelType pixelType) Output pixel type.Specify the output channel type.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Build a new PixelClassifierMetadata object.- Returns:
-
inputPadding
Amount of padding requested for the left, right, top and bottom of the image tile being classified. This can be used to reduce boundary artifacts.- Parameters:
inputPadding
-- Returns:
-
setChannelType
Specify the output channel type.- Parameters:
type
-- Returns:
-
inputResolution
Pixel size defining the resolution at which the classifier should operate.- Parameters:
inputResolution
-- Returns:
-
inputShape
Preferred input image width and height. This may either be a hint or strictly enforced.- Parameters:
width
-height
-- Returns:
-
outputPixelType
Output pixel type.- Parameters:
pixelType
-- Returns:
-
outputChannels
Specify channels for output.- Parameters:
channels
-- Returns:
-
outputChannels
Specify channels for output.- Parameters:
channels
-- Returns:
-
classificationLabels
Specify classification labels. This may be used instead of outputChannels.- Parameters:
labels
-- Returns:
-