Coder Social home page Coder Social logo

Comments (5)

jmmanley avatar jmmanley commented on July 18, 2024

Hi,
Christoph should know better, but this error could be caused if you are not giving the proper output path in your alignment parameters. What are you using for RegistrationAlignmentParameter["resultDirectory"]?

This error could be due to no path given after the -out flag when it tries to run the Elastix command (lines 455-461 in Alignment/Elastix.py):
cmd = ElastixBinary + ' -threads 16 -m ' + movingImage + ' -f ' + fixedImage + ' -p ' + affineParameterFile + ' -out ' + resultDirectory

from clearmap.

vzickus avatar vzickus commented on July 18, 2024

I can see that the resultsDirectory is successfully created, but empty. I'll have to search for other hard-coded paths that I might have missed in the tutorial. I'll keep you updated.

from clearmap.

vzickus avatar vzickus commented on July 18, 2024

I could not find any hard-coded bits, and when I print out "RegistrationAlignmentParameter", the paths seem correct. I wonder if it has something with the fact that the bottom of the images look crazy ( https://www.dropbox.com/s/6shi2gubb3uujds/autofluo_for_cfos_resampled-single.tif?dl=0 ) and I have not cropped them...

from clearmap.

vzickus avatar vzickus commented on July 18, 2024

I tested elastix separately (that is, just elastix on its own from terminal) on the same images, and it worked without issues. Updated: I think the cause was simply a space " " in the directory structure (probably required a r"path\to\folder with\space"). Closing, and thanks for your help.

from clearmap.

auesro avatar auesro commented on July 18, 2024

For future users:
The folders' names, inside the downloaded ClearMap Resources folder, are separated by spaces while the code looks for names in which the spaces have been replaced by underscores "_".

from clearmap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.