InsightSoftwareConsortium / ITKElastix

An ITK Python interface to elastix, a toolbox for rigid and nonrigid registration of images
Apache License 2.0
203 stars 22 forks source link

itk.elastix_registration_method does not produce any output and reports the error message "-1073741819(0xC0000005)" #305

Open Cmcainiao opened 2 hours ago

Cmcainiao commented 2 hours ago

fixed_image = itk.imread(r'fixed_CT.nii.gz', itk.F) moving_image = itk.imread(r'moving_MR.nii.gz', itk.F)

parameter_object = itk.ParameterObject.New() parameter_object.AddParameterFile( r'F:\FDS_file\Brain_Registration\model_Elastix\parameter_txt\Par0035.RIRE.MI.ri.ASGD.txt')

result_image, result_transform_parameters = itk.elastix_registration_method( fixed_image, moving_image, parameter_object=parameter_object, log_to_console=True )

Cmcainiao commented 2 hours ago

Can run on their own computer, and print out the log, change a computer to run, there is this problem, anyone know what the reason?