StrokeSegLab
Loading...
Searching...
No Matches
StrokeSegLab.preprocessing.brain_extraction.BrainExtracter Class Reference

Public Member Functions

None __init__ (self, AnimaWrapper wrapper, str atlasImage, gui=None)
 
str run (self, str img_path, str prefix)
 

Public Attributes

 wrapper = wrapper
 
 atlasImage = atlasImage
 
 iccImage = os.path.join(ATLAS_DIR,"BrainMask.nrrd")
 
list pyramid_option = ["-p", "4", "-l", "1"]
 
 gui = gui
 

Detailed Description

This class handle the brain extraction during the preprocessing

Constructor & Destructor Documentation

◆ __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.

Member Function Documentation

◆ 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: