Package biopb.image

Class DetectionSettings

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
biopb.image.DetectionSettings
All Implemented Interfaces:
DetectionSettingsOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

public final class DetectionSettings extends com.google.protobuf.GeneratedMessageV3 implements DetectionSettingsOrBuilder
Protobuf type biopb.image.DetectionSettings
See Also:
  • Field Details

    • MIN_CELL_AREA_FIELD_NUMBER

      public static final int MIN_CELL_AREA_FIELD_NUMBER
      See Also:
    • MIN_SCORE_FIELD_NUMBER

      public static final int MIN_SCORE_FIELD_NUMBER
      See Also:
    • SEGMENTATION_THRESHOLD_FIELD_NUMBER

      public static final int SEGMENTATION_THRESHOLD_FIELD_NUMBER
      See Also:
    • NMS_IOU_FIELD_NUMBER

      public static final int NMS_IOU_FIELD_NUMBER
      See Also:
    • CELL_DIAMETER_HINT_FIELD_NUMBER

      public static final int CELL_DIAMETER_HINT_FIELD_NUMBER
      See Also:
    • SCALING_HINT_FIELD_NUMBER

      public static final int SCALING_HINT_FIELD_NUMBER
      See Also:
    • MODEL_NAME_FIELD_NUMBER

      public static final int MODEL_NAME_FIELD_NUMBER
      See Also:
    • MODEL_CONFIGURATION_FIELD_NUMBER

      public static final int MODEL_CONFIGURATION_FIELD_NUMBER
      See Also:
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • getResizeInfoCase

      public DetectionSettings.ResizeInfoCase getResizeInfoCase()
      Specified by:
      getResizeInfoCase in interface DetectionSettingsOrBuilder
    • hasMinCellArea

      public boolean hasMinCellArea()
       Minimal cell area to be consider for detection. The unit is decided by
       the physical unit of the image, i.e., if the physical pixel size unit is
       "nm", then the unit here is nm^2 (2D) or nm^3 (3D). However, if the
       physical pixel size field is not set, then the unit here is `pixels`.
       
      optional float min_cell_area = 1;
      Specified by:
      hasMinCellArea in interface DetectionSettingsOrBuilder
      Returns:
      Whether the minCellArea field is set.
    • getMinCellArea

      public float getMinCellArea()
       Minimal cell area to be consider for detection. The unit is decided by
       the physical unit of the image, i.e., if the physical pixel size unit is
       "nm", then the unit here is nm^2 (2D) or nm^3 (3D). However, if the
       physical pixel size field is not set, then the unit here is `pixels`.
       
      optional float min_cell_area = 1;
      Specified by:
      getMinCellArea in interface DetectionSettingsOrBuilder
      Returns:
      The minCellArea.
    • hasMinScore

      public boolean hasMinScore()
       Minimal detection score in order to be considered. If unset, the default
       value is chosen server-side.
       
      optional float min_score = 2;
      Specified by:
      hasMinScore in interface DetectionSettingsOrBuilder
      Returns:
      Whether the minScore field is set.
    • getMinScore

      public float getMinScore()
       Minimal detection score in order to be considered. If unset, the default
       value is chosen server-side.
       
      optional float min_score = 2;
      Specified by:
      getMinScore in interface DetectionSettingsOrBuilder
      Returns:
      The minScore.
    • hasSegmentationThreshold

      public boolean hasSegmentationThreshold()
       Threshold for binarize segmentation logits. If unset, default to 0.
       
      optional float segmentation_threshold = 3;
      Specified by:
      hasSegmentationThreshold in interface DetectionSettingsOrBuilder
      Returns:
      Whether the segmentationThreshold field is set.
    • getSegmentationThreshold

      public float getSegmentationThreshold()
       Threshold for binarize segmentation logits. If unset, default to 0.
       
      optional float segmentation_threshold = 3;
      Specified by:
      getSegmentationThreshold in interface DetectionSettingsOrBuilder
      Returns:
      The segmentationThreshold.
    • hasNmsIou

      public boolean hasNmsIou()
       A threshold value for remove overlapping detections. If two detection has
       an IOU > this threshold, the one with the lower score will be eliminated
       from the detection list. Nothing will be removed if the field is not set.
       
      optional float nms_iou = 4;
      Specified by:
      hasNmsIou in interface DetectionSettingsOrBuilder
      Returns:
      Whether the nmsIou field is set.
    • getNmsIou

      public float getNmsIou()
       A threshold value for remove overlapping detections. If two detection has
       an IOU > this threshold, the one with the lower score will be eliminated
       from the detection list. Nothing will be removed if the field is not set.
       
      optional float nms_iou = 4;
      Specified by:
      getNmsIou in interface DetectionSettingsOrBuilder
      Returns:
      The nmsIou.
    • hasCellDiameterHint

      public boolean hasCellDiameterHint()
       A hint for the typical cell diameter. If the physical pixel size is
       known, the value takes the same physical unit. Otherwise, the unit is
       pixel.
       
      float cell_diameter_hint = 6;
      Specified by:
      hasCellDiameterHint in interface DetectionSettingsOrBuilder
      Returns:
      Whether the cellDiameterHint field is set.
    • getCellDiameterHint

      public float getCellDiameterHint()
       A hint for the typical cell diameter. If the physical pixel size is
       known, the value takes the same physical unit. Otherwise, the unit is
       pixel.
       
      float cell_diameter_hint = 6;
      Specified by:
      getCellDiameterHint in interface DetectionSettingsOrBuilder
      Returns:
      The cellDiameterHint.
    • hasScalingHint

      public boolean hasScalingHint()
       A direct suggestion for image scaling. A nonnegative value. However,
       requesting a very large scaling factor will likely be refused by the
       server due to the potential out-of-memory problem.
       
      float scaling_hint = 7;
      Specified by:
      hasScalingHint in interface DetectionSettingsOrBuilder
      Returns:
      Whether the scalingHint field is set.
    • getScalingHint

      public float getScalingHint()
       A direct suggestion for image scaling. A nonnegative value. However,
       requesting a very large scaling factor will likely be refused by the
       server due to the potential out-of-memory problem.
       
      float scaling_hint = 7;
      Specified by:
      getScalingHint in interface DetectionSettingsOrBuilder
      Returns:
      The scalingHint.
    • getModelName

      public String getModelName()
       Specify the model name for servers that support more than one model
       variants.
       
      string model_name = 8;
      Specified by:
      getModelName in interface DetectionSettingsOrBuilder
      Returns:
      The modelName.
    • getModelNameBytes

      public com.google.protobuf.ByteString getModelNameBytes()
       Specify the model name for servers that support more than one model
       variants.
       
      string model_name = 8;
      Specified by:
      getModelNameBytes in interface DetectionSettingsOrBuilder
      Returns:
      The bytes for modelName.
    • hasModelConfiguration

      public boolean hasModelConfiguration()
       An opaque data structure that specify a server side model configuration.
       An important use case is to perform few-shot model adaptations. The model
       adaptation call returns a new model configuration. This stucture should
       be included in all new inference requests, so that the server understand
       that it should perform computation using the adapted model.
       
      .google.protobuf.Any model_configuration = 9;
      Specified by:
      hasModelConfiguration in interface DetectionSettingsOrBuilder
      Returns:
      Whether the modelConfiguration field is set.
    • getModelConfiguration

      public com.google.protobuf.Any getModelConfiguration()
       An opaque data structure that specify a server side model configuration.
       An important use case is to perform few-shot model adaptations. The model
       adaptation call returns a new model configuration. This stucture should
       be included in all new inference requests, so that the server understand
       that it should perform computation using the adapted model.
       
      .google.protobuf.Any model_configuration = 9;
      Specified by:
      getModelConfiguration in interface DetectionSettingsOrBuilder
      Returns:
      The modelConfiguration.
    • getModelConfigurationOrBuilder

      public com.google.protobuf.AnyOrBuilder getModelConfigurationOrBuilder()
       An opaque data structure that specify a server side model configuration.
       An important use case is to perform few-shot model adaptations. The model
       adaptation call returns a new model configuration. This stucture should
       be included in all new inference requests, so that the server understand
       that it should perform computation using the adapted model.
       
      .google.protobuf.Any model_configuration = 9;
      Specified by:
      getModelConfigurationOrBuilder in interface DetectionSettingsOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static DetectionSettings parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DetectionSettings parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DetectionSettings parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DetectionSettings parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DetectionSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DetectionSettings parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static DetectionSettings parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DetectionSettings parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static DetectionSettings parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static DetectionSettings parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DetectionSettings parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static DetectionSettings parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public DetectionSettings.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static DetectionSettings.Builder newBuilder()
    • newBuilder

      public static DetectionSettings.Builder newBuilder(DetectionSettings prototype)
    • toBuilder

      public DetectionSettings.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected DetectionSettings.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static DetectionSettings getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<DetectionSettings> parser()
    • getParserForType

      public com.google.protobuf.Parser<DetectionSettings> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public DetectionSettings getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder