Class: DefaultRecon::DicomRawSequence

Inherits:
RawSequence show all
Defined in:
lib/default_methods/recon/raw_sequence.rb

Overview

Manage a folder of Raw Dicoms for Nifti file conversion

Instance Method Summary collapse

Methods inherited from RawSequence

#initialize

Constructor Details

This class inherits a constructor from DefaultRecon::RawSequence

Instance Method Details

#prepare_and_convert_sequence(outfile) ⇒ Object Also known as: prepare

Locally copy and unzip a folder of Raw Dicoms and call convert_sequence on them



16
17
18
19
20
21
22
# File 'lib/default_methods/recon/raw_sequence.rb', line 16

def prepare_and_convert_sequence(outfile)
  scandir = File.join(@rawdir, @scan_spec['dir'])
  $Log.info "Dicom Reconstruction: #{scandir}"
  Pathname.new(scandir).all_dicoms do |dicoms|
    convert_sequence(dicoms, outfile)
  end
end