Class SegmentImageConfig.Builder
-
- All Implemented Interfaces:
public abstract class SegmentImageConfig.BuilderBuilder for SegmentImageConfig.
-
-
Constructor Summary
Constructors Constructor Description SegmentImageConfig.Builder()
-
Method Summary
Modifier and Type Method Description abstract SegmentImageConfig.BuilderhttpOptions(HttpOptions httpOptions)Setter for httpOptions. SegmentImageConfig.BuilderhttpOptions(HttpOptions.Builder httpOptionsBuilder)Setter for httpOptions builder. SegmentImageConfig.BuilderclearHttpOptions()Clears the value of httpOptions field. abstract SegmentImageConfig.Buildermode(SegmentMode mode)Setter for mode. SegmentImageConfig.BuilderclearMode()Clears the value of mode field. SegmentImageConfig.Buildermode(SegmentMode.Known knownType)Setter for mode given a known enum. SegmentImageConfig.Buildermode(String mode)Setter for mode given a string. abstract SegmentImageConfig.BuildermaxPredictions(Integer maxPredictions)Setter for maxPredictions. SegmentImageConfig.BuilderclearMaxPredictions()Clears the value of maxPredictions field. abstract SegmentImageConfig.BuilderconfidenceThreshold(Float confidenceThreshold)Setter for confidenceThreshold. SegmentImageConfig.BuilderclearConfidenceThreshold()Clears the value of confidenceThreshold field. abstract SegmentImageConfig.BuildermaskDilation(Float maskDilation)Setter for maskDilation. SegmentImageConfig.BuilderclearMaskDilation()Clears the value of maskDilation field. abstract SegmentImageConfig.BuilderbinaryColorThreshold(Float binaryColorThreshold)Setter for binaryColorThreshold. SegmentImageConfig.BuilderclearBinaryColorThreshold()Clears the value of binaryColorThreshold field. abstract SegmentImageConfig.Builderlabels(Map<String, String> labels)Setter for labels. SegmentImageConfig.BuilderclearLabels()Clears the value of labels field. abstract SegmentImageConfigbuild()-
-
Method Detail
-
httpOptions
abstract SegmentImageConfig.Builder httpOptions(HttpOptions httpOptions)
Setter for httpOptions.
httpOptions: Used to override HTTP request options.
-
httpOptions
@CanIgnoreReturnValue() SegmentImageConfig.Builder httpOptions(HttpOptions.Builder httpOptionsBuilder)
Setter for httpOptions builder.
httpOptions: Used to override HTTP request options.
-
clearHttpOptions
@CanIgnoreReturnValue() SegmentImageConfig.Builder clearHttpOptions()
Clears the value of httpOptions field.
-
mode
abstract SegmentImageConfig.Builder mode(SegmentMode mode)
Setter for mode.
mode: The segmentation mode to use.
-
clearMode
@CanIgnoreReturnValue() SegmentImageConfig.Builder clearMode()
Clears the value of mode field.
-
mode
@CanIgnoreReturnValue() SegmentImageConfig.Builder mode(SegmentMode.Known knownType)
Setter for mode given a known enum.
mode: The segmentation mode to use.
-
mode
@CanIgnoreReturnValue() SegmentImageConfig.Builder mode(String mode)
Setter for mode given a string.
mode: The segmentation mode to use.
-
maxPredictions
abstract SegmentImageConfig.Builder maxPredictions(Integer maxPredictions)
Setter for maxPredictions.
maxPredictions: The maximum number of predictions to return up to, by top confidence score.
-
clearMaxPredictions
@CanIgnoreReturnValue() SegmentImageConfig.Builder clearMaxPredictions()
Clears the value of maxPredictions field.
-
confidenceThreshold
abstract SegmentImageConfig.Builder confidenceThreshold(Float 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
@CanIgnoreReturnValue() SegmentImageConfig.Builder clearConfidenceThreshold()
Clears the value of confidenceThreshold field.
-
maskDilation
abstract SegmentImageConfig.Builder maskDilation(Float 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
@CanIgnoreReturnValue() SegmentImageConfig.Builder clearMaskDilation()
Clears the value of maskDilation field.
-
binaryColorThreshold
abstract SegmentImageConfig.Builder binaryColorThreshold(Float 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
@CanIgnoreReturnValue() SegmentImageConfig.Builder clearBinaryColorThreshold()
Clears the value of binaryColorThreshold field.
-
labels
abstract SegmentImageConfig.Builder labels(Map<String, String> labels)
Setter for labels.
labels: User specified labels to track billing usage.
-
clearLabels
@CanIgnoreReturnValue() SegmentImageConfig.Builder clearLabels()
Clears the value of labels field.
-
build
abstract SegmentImageConfig build()
-
-
-
-