Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SchemaImageSegmentationAnnotationMaskAnnotation
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SchemaImageSegmentationAnnotationMaskAnnotation
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb
Overview
The mask based segmentation annotation.
Instance Attribute Summary collapse
-
#annotation_spec_colors ⇒ Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SchemaAnnotationSpecColor>
The mapping between color and AnnotationSpec for this Annotation.
-
#mask_gcs_uri ⇒ String
Google Cloud Storage URI that points to the mask image.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1SchemaImageSegmentationAnnotationMaskAnnotation
constructor
A new instance of GoogleCloudAiplatformV1beta1SchemaImageSegmentationAnnotationMaskAnnotation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1SchemaImageSegmentationAnnotationMaskAnnotation
Returns a new instance of GoogleCloudAiplatformV1beta1SchemaImageSegmentationAnnotationMaskAnnotation.
21125 21126 21127 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 21125 def initialize(**args) update!(**args) end |
Instance Attribute Details
#annotation_spec_colors ⇒ Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SchemaAnnotationSpecColor>
The mapping between color and AnnotationSpec for this Annotation.
Corresponds to the JSON property annotationSpecColors
21114 21115 21116 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 21114 def annotation_spec_colors @annotation_spec_colors end |
#mask_gcs_uri ⇒ String
Google Cloud Storage URI that points to the mask image. The image must be in
PNG format. It must have the same size as the DataItem's image. Each pixel in
the image mask represents the AnnotationSpec which the pixel in the image
DataItem belong to. Each color is mapped to one AnnotationSpec based on
annotation_spec_colors.
Corresponds to the JSON property maskGcsUri
21123 21124 21125 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 21123 def mask_gcs_uri @mask_gcs_uri end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
21130 21131 21132 21133 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 21130 def update!(**args) @annotation_spec_colors = args[:annotation_spec_colors] if args.key?(:annotation_spec_colors) @mask_gcs_uri = args[:mask_gcs_uri] if args.key?(:mask_gcs_uri) end |