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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typebiopb.image.DetectionSettingsstatic enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanfloatA hint for the typical cell diameter.static DetectionSettingsstatic final com.google.protobuf.Descriptors.DescriptorfloatMinimal cell area to be consider for detection.floatMinimal detection score in order to be considered.com.google.protobuf.AnyAn opaque data structure that specify a server side model configuration.com.google.protobuf.AnyOrBuilderAn opaque data structure that specify a server side model configuration.Specify the model name for servers that support more than one model variants.com.google.protobuf.ByteStringSpecify the model name for servers that support more than one model variants.floatA threshold value for remove overlapping detections.com.google.protobuf.Parser<DetectionSettings>floatA direct suggestion for image scaling.floatThreshold for binarize segmentation logits.intbooleanA hint for the typical cell diameter.inthashCode()booleanMinimal cell area to be consider for detection.booleanMinimal detection score in order to be considered.booleanAn opaque data structure that specify a server side model configuration.booleanA threshold value for remove overlapping detections.booleanA direct suggestion for image scaling.booleanThreshold for binarize segmentation logits.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic DetectionSettings.Builderstatic DetectionSettings.BuildernewBuilder(DetectionSettings prototype) protected DetectionSettings.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static DetectionSettingsparseDelimitedFrom(InputStream input) static DetectionSettingsparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DetectionSettingsparseFrom(byte[] data) static DetectionSettingsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DetectionSettingsparseFrom(com.google.protobuf.ByteString data) static DetectionSettingsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DetectionSettingsparseFrom(com.google.protobuf.CodedInputStream input) static DetectionSettingsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DetectionSettingsparseFrom(InputStream input) static DetectionSettingsparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DetectionSettingsparseFrom(ByteBuffer data) static DetectionSettingsparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<DetectionSettings>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getResizeInfoCase
- Specified by:
getResizeInfoCasein interfaceDetectionSettingsOrBuilder
-
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:
hasMinCellAreain interfaceDetectionSettingsOrBuilder- 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:
getMinCellAreain interfaceDetectionSettingsOrBuilder- 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:
hasMinScorein interfaceDetectionSettingsOrBuilder- 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:
getMinScorein interfaceDetectionSettingsOrBuilder- Returns:
- The minScore.
-
hasSegmentationThreshold
public boolean hasSegmentationThreshold()Threshold for binarize segmentation logits. If unset, default to 0.
optional float segmentation_threshold = 3;- Specified by:
hasSegmentationThresholdin interfaceDetectionSettingsOrBuilder- 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:
getSegmentationThresholdin interfaceDetectionSettingsOrBuilder- 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:
hasNmsIouin interfaceDetectionSettingsOrBuilder- 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:
getNmsIouin interfaceDetectionSettingsOrBuilder- 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:
hasCellDiameterHintin interfaceDetectionSettingsOrBuilder- 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:
getCellDiameterHintin interfaceDetectionSettingsOrBuilder- 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:
hasScalingHintin interfaceDetectionSettingsOrBuilder- 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:
getScalingHintin interfaceDetectionSettingsOrBuilder- Returns:
- The scalingHint.
-
getModelName
Specify the model name for servers that support more than one model variants.
string model_name = 8;- Specified by:
getModelNamein interfaceDetectionSettingsOrBuilder- 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:
getModelNameBytesin interfaceDetectionSettingsOrBuilder- 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:
hasModelConfigurationin interfaceDetectionSettingsOrBuilder- 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:
getModelConfigurationin interfaceDetectionSettingsOrBuilder- 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:
getModelConfigurationOrBuilderin interfaceDetectionSettingsOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- Throws:
IOException
-
parseFrom
public static DetectionSettings parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected DetectionSettings.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-