]> Write configuration files

Write Configuration Files for tMCimg and tFDimg

Given SD and Medium structures, write out configuration files in a format suitable for use by either tFDimg or tMCimg. For any but the simplest configuration files, some amount of hand tuning may still be required. In particular, there is no way to assign optical properties to the different segmented tissue types.

Function Summary

Syntax: PMItoMC(SD, Medium, basename, nPh, segfile);
Inputs: SD SD structure
Medium Medium structure
basename Base filename; source, detector, wavelength, and frequency will be appended automatically
nPh Number of photons to be run
segfile Name of the tissue segmentation file to use
Outputs: None (writes files to disk)
Syntax: PMItoFD(SD, Medium, basename, nPh, segfile);
Inputs: SD SD structure
Medium Medium structure
basename Base filename; source, detector, wavelength, and frequency will be appended automatically
nPh Number of photons to be run (dummy parameter, ignored)
segfile Name of the tissue segmentation file to use
Outputs: None (writes files to disk)

Detailed Descriptions

See the tMCimg webpage for more information about tMCimg and its configuration file format. The tFDimg finite-difference software (available locally) uses the same format for its configuration files.

One file is generated for each unique source:detector:wavelength:frequency combination; the measurement is not used. The different parameters used are encoded in the filename (e.g., basefileD1F2L3.cfg is the configuration file for detector 1, modulation frequency, and wavelength [or optical properties] 3).