Mird237 Install [hot]

% Run dose calculation dose_result = mird237_calc_dose(patient.voxel_phantom, source);

Then recompile MEX files:

MIRD237 installation verification... Found required toolboxes: OK MEX files loaded: OK Test phantom loaded: OK Dose calculation completed in 4.32 seconds. All tests passed. | Error Message | Likely Cause | Solution | |---------------|--------------|----------| | Undefined function 'mexVoxelDose' | MEX files not compiled | Re-run compile_mex_files | | Out of memory | Insufficient RAM | Reduce voxel grid size via options.resolution | | DICOM library not found | DCMTK missing | Install DCMTK and set LD_LIBRARY_PATH | | Invalid MEX-file: missing symbol | Compiler mismatch | Recompile with correct MATLAB-supported compiler | Step 5: Integrating External Dependencies The base mird237 install is functional, but for full clinical capability, you should integrate ITK and DCMTK. Installing ITK for MIRD237 # Ubuntu/Debian sudo apt install libinsighttoolkit4.13-dev Set environment variable in MATLAB setenv('ITK_DIR','/usr/lib/x86_64-linux-gnu/cmake/ITK-4.13') Installing DCMTK # macOS using Homebrew brew install dcmtk Windows: Download prebuilt binaries from DCMTK.org and add to PATH mird237 install

% Remove from MATLAB path rmpath(genpath('/opt/mird237')); savepath % Delete directory (outside MATLAB) !rm -rf /opt/mird237 | Error Message | Likely Cause | Solution

clear mex compile_mex_files -with-dcmtk Once the mird237 install is validated, you can perform a real calculation. Example: Thyroid Dosimetry from I-131 % Load patient DICOM RT structure patient = mird237_load_dicom('/data/patient123/CT/'); % Define source organ (thyroid mask) thyroid_mask = patient.structures('Thyroid'); but for full clinical capability