Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Elastix Error During Registration #140

Open
Stuff25 opened this issue Apr 2, 2024 · 0 comments
Open

Elastix Error During Registration #140

Stuff25 opened this issue Apr 2, 2024 · 0 comments

Comments

@Stuff25
Copy link

Stuff25 commented Apr 2, 2024

Hello,

I get the following two errors when running the atlast registration step during alignment after resampling:

Running elastix with parameter file 0: "/User/anaconda3/envs/ClearMapUi39/lib/python3.9/site-packages/ClearMap2-2.1.0-py3.9-linux-x86_64.egg/ClearMap/Resources/Alignment/align_affine.txt".

Current time: Sun Mar 31 18:43:28 2024.
Reading the elastix parameters from file ...

Installing all components.
InstallingComponents was successful.

ELASTIX version: 4.900
Command line options from ElastixBase:
-f       /User/Images/resampled.tif
-m        /User/Images/resampled_autofluorescence.tif
-fMask    unspecified, so no fixed mask used
-mMask    unspecified, so no moving mask used
-out      /User/Images/elastix_resampled_to_auto/
-p        /User/anaconda3/envs/ClearMapUi39/lib/python3.9/site-packages/ClearMap2-2.1.0-py3.9-linux-x86_64.egg/ClearMap/Resources/Alignment/align_affine.txt
-threads  8
WARNING: The parameter "UseDirectionCosines", requested at entry number 0, does not exist at all.
  The default value "true" is used instead.

WARNING: The option "UseDirectionCosines" was not found in your parameter file.
  From elastix 4.8 it defaults to true!
This may change the behavior of your registrations considerably.

Command line options from TransformBase:
-t0       unspecified, so no initial transform used

Reading images...

itk::ExceptionObject (0x2ed9200)
Location: "unknown" 
File: /home/ckirst/Programs/InsightToolkit-4.13.0/ITK/Modules/Core/Common/include/itkImportImageContainer.hxx
Line: 199
Description: Failed to allocate memory for image.
Error occurred while reading the image described as Moving Image, with file name /User/Images/resampled_autofluorescence.tif



Errors occurred!

elastix is started at Sun Mar 31 18:44:08 2024.

which elastix:   /User/anaconda3/envs/ClearMapUi39/lib/python3.9/site-packages/ClearMap2-2.1.0-py3.9-linux-x86_64.egg/ClearMap/External/elastix/build/bin/elastix
elastix runs at: labuser-MacPro
  Linux 5.4.0-150-generic (x64), #167~18.04.1-Ubuntu SMP Wed May 24 00:51:42 UTC 2023
  with 62299 MB memory, and 8 cores @ 2397 MHz.
-------------------------------------------------------------------------

Running elastix with parameter file 0: "/User/anaconda3/envs/ClearMapUi39/lib/python3.9/site-packages/ClearMap2-2.1.0-py3.9-linux-x86_64.egg/ClearMap/Resources/Alignment/align_affine.txt".

Current time: Sun Mar 31 18:44:08 2024.
Reading the elastix parameters from file ...

ERROR: problem defining moving image dimension.
  The parameter file says:      3
  The moving image header says: 2
  Note that from elastix 4.6 the parameter file definition "MovingImageDimension" is not needed anymore.
  Please remove this entry from your parameter file.
Errors occurred!

Is there any solution to carry on past this step? I would like to reach the vasculature graphing but I have been stuck at the alignment and unable to progress.

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant