Skip to content

Using SimpleITK filters

aditiiyer edited this page May 25, 2022 · 9 revisions

CERR provides a wrapper to extend access to image filters in the SimpleITK package.

Requirements

  • CERR
  • Python
  • Compatible SimpleITK package

Usage

  • Specify path to Python installation prior to launching Matlab
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:path/to/python
"sitkLibPath": "path/to/python/Lib/site-packages/"
  • Define JSON configurations for texture calculation. Supported filters include: GradientImageFilter, HistogramMatchingImageFilter, LaplacianRecursiveGaussianImageFilter, N4BiasFieldCorrectionImageFilter, and N4BiasAndHistogramCorrectionImageFilter.
global planC
strNum = 1;
configFilePath = '/path/to/config.json';
planC = generateTextureMapFromPlanC(planC,strNum,configFilePath );
Clone this wiki locally