def setup(contour_sequence)
      raise ArgumentError, "Invalid argument 'contour_sequence'. Expected DICOM::Sequence, got #{contour_sequence.class}." unless contour_sequence.is_a?(DICOM::Sequence)
      contour_item = contour_sequence[0]
      # Image reference:
      sop_uid = contour_item[CONTOUR_IMAGE_SQ][0].value(REF_SOP_UID)
      @image = @frame.image(sop_uid)
      # POI coordinates:
      self.coordinate = Coordinate.new(*contour_item.value(CONTOUR_DATA).split("\\")[0..2])
    end
def setup(contour_sequence)
      raise ArgumentError, "Invalid argument 'contour_sequence'. Expected DICOM::Sequence, got #{contour_sequence.class}." unless contour_sequence.is_a?(DICOM::Sequence)
      contour_item = contour_sequence[0]
      # Image reference:
      sop_uid = contour_item[CONTOUR_IMAGE_SQ][0].value(REF_SOP_UID)
      @image = @frame.image(sop_uid)
      # POI coordinates:
      self.coordinate = Coordinate.new(*contour_item.value(CONTOUR_DATA).split("\\")[0..2])
    end
Computes a hash code for this object.

 @note Two objects with the same attributes will have the same hash code.

 @return [Fixnum] the object's hash code

 Sets up the POI image and coordinate references by processing its contour
 sequence.

 @param [DICOM::Sequence] contour_sequence a Contour Sequence