|
|
| wrapper = wrapper |
| |
|
| atlasImage = atlasImage |
| |
|
| iccImage = os.path.join(ATLAS_DIR,"BrainMask.nrrd") |
| |
|
list | pyramid_option = ["-p", "4", "-l", "1"] |
| |
|
| gui = gui |
| |
This class handle the brain extraction during the preprocessing
◆ __init__()
| None StrokeSegLab.preprocessing.brain_extraction.BrainExtracter.__init__ |
( |
| self, |
|
|
AnimaWrapper | wrapper, |
|
|
str | atlasImage, |
|
|
| gui = None ) |
Initialize the brain extracter class
Args:
wrapper (AnimaWrapper): a wrapper to simplify the use of anima executables
atlasImage (str): _description_
gui (GUIMain, optional): _description_. Defaults to None.
◆ run()
| str StrokeSegLab.preprocessing.brain_extraction.BrainExtracter.run |
( |
| self, |
|
|
str | img_path, |
|
|
str | prefix ) |
Performs the brain extraction on 3D image. Composed by a sequence of anima commands. Store all intermediate results in the temporary directory
Args:
img_path (str): Input path
prefix (str): Composed of the temporary folder path and the input file’s base name without its extension
Returns:
str: The output, the brain extracted image
The documentation for this class was generated from the following file:
- /home/ymahe/Desktop/StrokeSeg/StrokeSegLab/preprocessing/brain_extraction.py