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

Elastiz error #99

Open
Hesham3esa opened this issue Nov 26, 2021 · 1 comment
Open

Elastiz error #99

Hesham3esa opened this issue Nov 26, 2021 · 1 comment

Comments

@Hesham3esa
Copy link

Hello I am trying to run this code
#%% Aignment - resampled to autofluorescence
align the two channels

align_channels_parameter = {
#moving and reference images
"moving_image" : ws.filename('resampled', postfix='autofluorescence'),
"fixed_image" : ws.filename('resampled'),

#elastix parameter files for alignment
"affine_parameter_file" : align_channels_affine_file,
"bspline_parameter_file" : None,

#directory of the alig'/home/nicolas.renier/Documents/ClearMap_Ressources/Par0000affine.txt',nment result
"result_directory" : ws.filename('resampled_to_auto')
};

elx.align(**align_channels_parameter);

and i am getting this error:
runcell('Aignment - resampled to autofluorescence', '/home/hesham/ClearMap2/ClearMap/Scripts/CellMap.py')
Traceback (most recent call last):

File "/home/hesham/ClearMap2/ClearMap/Scripts/CellMap.py", line 143, in
elx.align(**align_channels_parameter);

File "/home/hesham/ClearMap2/ClearMap/Alignment/Elastix.py", line 552, in align
raise RuntimeError('align: failed executing: ' + cmd);

RuntimeError: align: failed executing: /home/hesham/ClearMap2/ClearMap/External/elastix/build/bin/elastix -threads 16 -m /media/hesham/Extra/1.1 final/resampled_autofluorescence.tif -f /media/hesham/Extra/1.1 final/resampled.tif -p /home/hesham/ClearMap2/ClearMap/Resources/Alignment/align_affine.txt -out /media/hesham/Extra/1.1 final/elastix_resampled_to_auto

does anyone have an idea how to fix?

@Hesham3esa
Copy link
Author

now it is saying this
ERROR: could not read fixed image.
both -f and -f0 are unspecified
Errors occurred!

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