def update_bin_matcher
      # Create an empty BinVolume with no ROI reference:
      staple = BinVolume.new(@bm.volumes.first.series)
      # Add BinImages to the staple volume:
      @true_segmentation.shape[0].times do |i|
        image_ref = @bm.volumes.first.bin_images[i].image
        staple.add(BinImage.new(@true_segmentation[i, true, true], image_ref))
      end
      # Set the staple volume as master volume:
      @bm.master = staple
      # Apply sensitivity & specificity score to the various volumes of the BinMatcher instance:
      @bm.volumes.each_with_index do |bin_vol, i|
        bin_vol.sensitivity = @p[i]
        bin_vol.specificity = @q[i]
      end
    end
def update_bin_matcher
      # Create an empty BinVolume with no ROI reference:
      staple = BinVolume.new(@bm.volumes.first.series)
      # Add BinImages to the staple volume:
      @true_segmentation.shape[0].times do |i|
        image_ref = @bm.volumes.first.bin_images[i].image
        staple.add(BinImage.new(@true_segmentation[i, true, true], image_ref))
      end
      # Set the staple volume as master volume:
      @bm.master = staple
      # Apply sensitivity & specificity score to the various volumes of the BinMatcher instance:
      @bm.volumes.each_with_index do |bin_vol, i|
        bin_vol.sensitivity = @p[i]
        bin_vol.specificity = @q[i]
      end
    end
Updates the BinMatcher instance with information following the completion
 of the Staple analysis.
 * Creates a BinVolume instance for the true segmentation and inserts it
 as a master volume.
 * Updates the various volumes of the BinMatcher instance with their
 determined sensitivity and specificity scores.