Invoke N4ITK Bias Correction Programmatically

Hello All,

Is there a way to programmatically invoke the N4ITKBiasCorrection module through the python interpreter? I was trying to figure out what parameters as well as their types I need to provide by looking at the source code here but I am not very familiar with C++ code. I assume it should be something like slicer.modules.n4itkbiasfieldcorrection.something (but I could not find a function that sets the input) or using SlicerExecutionModule. More generally this question would be how to figure out the input parameters and their types that should be provided to other built-in modules and how to invoke them through the python interpreter. Any help would be greatly appreciated!

Hi - This info should be what you need:

1 Like

Thank you for your prompt reply!