Giter Site home page Giter Site logo

Comments (4)

ViktorvdValk avatar ViktorvdValk commented on May 23, 2024

Did you have a look at the example notebooks yet?
In case of masks, example 3 might be helpful.

from itkelastix.

jslalu avatar jslalu commented on May 23, 2024

Did you have a look at the example notebooks yet?
In case of masks, example 3 might be helpful.

I did refer to example 3, but the log still said both fMask and mMask were unspecified. Here's my code.

elastix_object = itk.ElastixRegistrationMethod.New(fixed_image, moving_image)
elastix_object.SetFixedMask(mask)
elastix_object.SetMovingMask(mask)
elastix_object.SetParameterObject(parameter_object)
elastix_object.SetLogToConsole(True)
elastix_object.UpdateLargestPossibleRegion()
result_image = elastix_object.GetOutput()
result_transform_parameters = elastix_object.GetTransformParameterObject()

from itkelastix.

ViktorvdValk avatar ViktorvdValk commented on May 23, 2024

Can you also show the part of the code that loads the mask?
And why would you want to use the same mask for both the fixed and the moving mask?

from itkelastix.

ntatsisk avatar ntatsisk commented on May 23, 2024

The empty BufferedRegion seems to be caused by not setting WriteResultImage to True (as reported in #157).

However, I am not sure if the masks are not read. Indeed, the log indicates:

ELASTIX version: 5.1.0
Command line options from ElastixBase:
-fMask unspecified, so no fixed mask used
-mMask unspecified, so no moving mask used

but later it also reports:

Setting the fixed masks took: 0 ms.
Setting the moving masks took: 1 ms.

So, I assume the masks are being used.. cc. @N-Dekker

from itkelastix.

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.