Class: Google::Apis::HealthcareV1beta1::ImageAnnotation

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/healthcare_v1beta1/classes.rb,
lib/google/apis/healthcare_v1beta1/representations.rb,
lib/google/apis/healthcare_v1beta1/representations.rb

Overview

Image annotation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ImageAnnotation

Returns a new instance of ImageAnnotation.



3005
3006
3007
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 3005

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#bounding_polysArray<Google::Apis::HealthcareV1beta1::BoundingPoly>

The list of polygons outlining the sensitive regions in the image. Corresponds to the JSON property boundingPolys



2997
2998
2999
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 2997

def bounding_polys
  @bounding_polys
end

#frame_indexFixnum

0-based index of the image frame. For example, an image frame in a DICOM instance. Corresponds to the JSON property frameIndex

Returns:

  • (Fixnum)


3003
3004
3005
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 3003

def frame_index
  @frame_index
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3010
3011
3012
3013
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 3010

def update!(**args)
  @bounding_polys = args[:bounding_polys] if args.key?(:bounding_polys)
  @frame_index = args[:frame_index] if args.key?(:frame_index)
end