vsnnlab / AMaSiNe

14 stars 8 forks source link

Error using invertElastixTransform (STEP 5) #10

Closed linhtruong-ns closed 1 year ago

linhtruong-ns commented 1 year ago

Dear all, Thanks so much for providing this amazing and useful package. I am trying the package with their DEMO images but during step 5, I got this issue:

Transform Failed! WARNING! Argument labis only required once. Arguments lab 326\AppData\Local\Temp\elastixTMP_230205174033_97300098\elastixTMP_230205174033_97300098_moving.mhdare ignored WARNING! Argument labis only required once. Arguments lab 326\AppData\Local\Temp\elastixTMP_230205174033_97300098are ignored WARNING! Argument labis only required once. Arguments lab 326\AppData\Local\Temp\elastixTMP_230205174033_97300098\init_TransformParameters.1.txtare ignored WARNING! Argument labis only required once. Arguments lab 326\AppData\Local\Temp\elastixTMP_230205174033_97300098\warping_parameters_Affine.txtare ignored WARNING! Argument labis only required once. Arguments lab 326\AppData\Local\Temp\elastixTMP_230205174033_97300098\warping_parameters_BSpline.txtare ignored

elastix is started at Sun Feb 5 17:40:35 2023.

which elastix: elastix elastix runs at: DESKTOP-74RRD92 Windows Personal (x64), (Build 9200) with 98078 MB memory, and 8 cores @ 3066 MHz.

Running elastix with parameter file 0: "C:\Users\Ip".

Current time: Sun Feb 5 17:40:35 2023. Reading the elastix parameters from file ...

ERROR: when reading the parameter file:

itk::ExceptionObject (0000003E430FF4C0) Location: "unknown" File: F:\X\Src\elx\elastix\Common\ParameterFileParser\itkParameterFileParser.cxx Line: 159 Description: itk::ERROR: ParameterFileParser(000002058C9AF2E0): ERROR: the file C:\Users\Ip is a directory.

ERROR: Something went wrong during initialization of the configuration object. ERROR: The configuration object has not been initialized. Errors occurred!

You may want to check out the Elastix FAQ: https://github.com/SuperElastix/elastix/wiki/FAQ

Keeping temporary directory C:\Users\Ip lab 326\AppData\Local\Temp\elastixTMP_230205174033_97300098 for debugging purposes Deleting temporary directory C:\Users\Ip lab 326\AppData\Local\Temp\elastixTMP_230205174033_97300098 Error using invertElastixTransform (line 143) Unable to perform assignment because brace indexing is not supported for variables of this type.

Error in STEP_5_Transform_and_ROI_drawing (line 66) parfor img_ID=1:length(img_AP)


Can someone inform me why I got this message and how can I fix this issue? Thank you