#NEWLINE# def __init__( self , fname_gm , fname_wm , path_template , fname_warp_template2target , param = None , fname_warp_target2template = None ) : #NEWLINE# #INDENT# if ( param is None ) : #NEWLINE# #INDENT# self . param = Param ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . param = param #NEWLINE# #UNINDENT# self . im_gm = Image ( fname_gm ) #NEWLINE# self . im_wm = Image ( fname_wm ) #NEWLINE# self . path_template = sct . slash_at_the_end ( path_template , 1 ) #NEWLINE# self . im_template_gm = Image ( ( fname_gm . path_template + 'template/MNI-Poly-AMU_GM.nii.gz' ) ) #NEWLINE# self . im_template_wm = Image ( ( self . path_template + 'template/MNI-Poly-AMU_WM.nii.gz' ) ) #NEWLINE# self . fname_warp_template2target = fname_warp_template2target #NEWLINE# self . fname_warp_target2template = fname_warp_target2template #NEWLINE# self . fname_warp_template2gm = '' #NEWLINE# self . fname_wwarp_gm2template = ''