Package qupath.lib.classifiers.pixel
Class PixelClassifierMetadata
java.lang.Object
qupath.lib.classifiers.pixel.PixelClassifierMetadata
Metadata to control the behavior of a pixel classifier.
- Author:
- Pete Bankhead
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionMap between integer labels and classifications.int
Requested height of input image, or -1 if the classifier is not fussyint
Requested number of channels in input image; default is 3 (consistent with assuming RGB)int
Requested input padding (above, below, left and right).Requested pixel size for input.int
Requested width of input image, or -1 if the classifier is not fussyList representing the names & display colors for each output channel, or for the output classifications ifoutputType == OutputType.Classification
Pixel type of output; default is null indicating the pixel type is unknown.Channel type of output; default isImageServerMetadata.ChannelType.CLASSIFICATION
-
Method Details
-
getInputResolution
Requested pixel size for input.- Returns:
-
getInputPadding
public int getInputPadding()Requested input padding (above, below, left and right).- Returns:
-
getInputWidth
public int getInputWidth()Requested width of input image, or -1 if the classifier is not fussy- Returns:
-
getInputHeight
public int getInputHeight()Requested height of input image, or -1 if the classifier is not fussy- Returns:
-
getInputNumChannels
public int getInputNumChannels()Requested number of channels in input image; default is 3 (consistent with assuming RGB)- Returns:
-
getOutputType
Channel type of output; default isImageServerMetadata.ChannelType.CLASSIFICATION
- Returns:
-
getOutputPixelType
Pixel type of output; default is null indicating the pixel type is unknown.- Returns:
-
getOutputChannels
List representing the names & display colors for each output channel, or for the output classifications ifoutputType == OutputType.Classification
- Returns:
-
getClassificationLabels
Map between integer labels and classifications. For a labelled image (output type is CLASSIFICATION) then the labels correspond to pixel values. Otherwise they correspond to channel numbers.- Returns:
-