def bin_volume(options={})
      raise ArgumentError, "Need at least one dose limit parameter. Neither :min nor :max was specified." unless options[:min] or options[:max]
      volume = options[:volume] || self
      return BinVolume.from_dose(self, options[:min], options[:max], volume)
    end
def bin_volume(options={})
      raise ArgumentError, "Need at least one dose limit parameter. Neither :min nor :max was specified." unless options[:min] or options[:max]
      volume = options[:volume] || self
      return BinVolume.from_dose(self, options[:min], options[:max], volume)
    end
Creates a binary volume object consisting of a series of binary
 (dose thresholded) images, extracted from this dose volume.

 @note Even though listed as optional parameters, at least one of the :min
   and :max options must be specified in order to construct a valid binary volume.

 @param [Hash] options the options to use for creating the binary volume
 @option options [Float] :min the lower dose threshold for dose elements to be included in the resulting dose bin volume
 @option options [Float] :max the upper dose threshold for dose elements to be included in the resulting dose bin volume
 @option options [Float] :volume by default the BinVolume is created against the images of this DoseVolume, however, by setting this option, an ImageSeries used by the ROIs of this Study can be specified
 @return [BinVolume] a binary volume with binary image references equal to the number of dose images defined for this DoseVolume