def bin_image(source_image=@image)
      raise "Referenced ROI Slice Image is missing from the dataset. Unable to construct image." unless @image
      bin_img = BinImage.new(NArray.byte(source_image.columns, source_image.rows), source_image)
      # Delineate and fill for each contour, then create the final image:
      @contours.each_with_index do |contour, i|
        x, y, z = contour.coords
        bin_img.add(source_image.binary_image(x, y, z))
      end
      return bin_img
    end
def bin_image(source_image=@image)
      raise "Referenced ROI Slice Image is missing from the dataset. Unable to construct image." unless @image
      bin_img = BinImage.new(NArray.byte(source_image.columns, source_image.rows), source_image)
      # Delineate and fill for each contour, then create the final image:
      @contours.each_with_index do |contour, i|
        x, y, z = contour.coords
        bin_img.add(source_image.binary_image(x, y, z))
      end
      return bin_img
    end
Creates a binary segmented image, from the contours defined for this
 slice, applied to the referenced Image instance.

 @param [Image] source_image the image on which the binary image will be applied (defaults to the referenced (anatomical) image, but may be e.g. a dose image)
 @return [BinImage] the derived binary image instance (with dimensions equal to that of the source image)