Class SegmentImageConfig.Builder
- Enclosing class:
- SegmentImageConfig
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract SegmentImageConfig.BuilderbinaryColorThreshold(Float binaryColorThreshold) Setter for binaryColorThreshold.abstract SegmentImageConfigbuild()Clears the value of binaryColorThreshold field.Clears the value of confidenceThreshold field.Clears the value of httpOptions field.Clears the value of labels field.Clears the value of maskDilation field.Clears the value of maxPredictions field.Clears the value of mode field.abstract SegmentImageConfig.BuilderconfidenceThreshold(Float confidenceThreshold) Setter for confidenceThreshold.abstract SegmentImageConfig.BuilderhttpOptions(HttpOptions httpOptions) Setter for httpOptions.httpOptions(HttpOptions.Builder httpOptionsBuilder) Setter for httpOptions builder.abstract SegmentImageConfig.BuilderSetter for labels.abstract SegmentImageConfig.BuildermaskDilation(Float maskDilation) Setter for maskDilation.abstract SegmentImageConfig.BuildermaxPredictions(Integer maxPredictions) Setter for maxPredictions.abstract SegmentImageConfig.Buildermode(SegmentMode mode) Setter for mode.mode(SegmentMode.Known knownType) Setter for mode given a known enum.Setter for mode given a string.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
httpOptions
Setter for httpOptions.httpOptions: Used to override HTTP request options.
-
httpOptions
@CanIgnoreReturnValue public SegmentImageConfig.Builder httpOptions(HttpOptions.Builder httpOptionsBuilder) Setter for httpOptions builder.httpOptions: Used to override HTTP request options.
-
clearHttpOptions
Clears the value of httpOptions field. -
mode
Setter for mode.mode: The segmentation mode to use.
-
clearMode
Clears the value of mode field. -
mode
Setter for mode given a known enum.mode: The segmentation mode to use.
-
mode
Setter for mode given a string.mode: The segmentation mode to use.
-
maxPredictions
Setter for maxPredictions.maxPredictions: The maximum number of predictions to return up to, by top confidence score.
-
clearMaxPredictions
Clears the value of maxPredictions field. -
confidenceThreshold
Setter for confidenceThreshold.confidenceThreshold: The confidence score threshold for the detections as a decimal value. Only predictions with a confidence score higher than this threshold will be returned.
-
clearConfidenceThreshold
Clears the value of confidenceThreshold field. -
maskDilation
Setter for maskDilation.maskDilation: A decimal value representing how much dilation to apply to the masks. 0 for no dilation. 1.0 means the masked area covers the whole image.
-
clearMaskDilation
Clears the value of maskDilation field. -
binaryColorThreshold
Setter for binaryColorThreshold.binaryColorThreshold: The binary color threshold to apply to the masks. The threshold can be set to a decimal value between 0 and 255 non-inclusive. Set to -1 for no binary color thresholding.
-
clearBinaryColorThreshold
Clears the value of binaryColorThreshold field. -
labels
Setter for labels.labels: User specified labels to track billing usage.
-
clearLabels
Clears the value of labels field. -
build
-