Coder Social home page Coder Social logo

luckylara / matlab_elastix Goto Github PK

View Code? Open in Web Editor NEW

This project forked from raacampbell/matlab_elastix

0.0 1.0 0.0 1 MB

MATLAB Elastix wrapper

Home Page: http://www.mathworks.com/matlabcentral/fileexchange/52982-matlab-elastix

MATLAB 100.00%

matlab_elastix's Introduction

MelastiX

Transformix Results

What is it?

MelastiX is a collection of MATLAB wrappers for the open source image registration suite Elastix. Elastix is cross-platform and is normally called from the system command-line (no GUI). MelastiX allows the elastix and transformix binaries to be called from within MATLAB as though they are native MATLAB commands.

What does it do?

  1. The user can feed in MATLAB matrices instead of image file names and get a MATLAB matrix back as a result.
  2. Parameters can be passed in as Elastix text files or as an MelastiX YAML file. The latter provides some error-checking options as the type and possible values of the parameters can be checked.
  3. Parameter files can be modified by passing an optional structure as a command-line argument. This makes it easy to explore how changing parameters affects registration accuracy.
  4. A function and example are provided to handle inverse transforms.
  5. Transforms sparse points.
  6. Handles both 2D and 3D data. Examples are only 2D, though.

What does it not do?

At the moment MelastiX does not provide tools to:

  1. Handle the mask option, thread option, and priority arguments for the elastix binary.
  2. Handle multiple fixed and moving image in one elastix call.
  3. Analyse transform parameters.

Getting started

  1. Place the Elastix binaries in your system path. If you don't know how to do that, there's information here for Windows and Linux.
  2. Add the MelastiX code directory to your MATLAB path.
  3. Add yamlmatlab to your MATLAB path.
  4. Run the examples in MelastiX_examples.

What to do if the transform fails?

If you get unexpected results, first check whether the transform parameter file was written properly. If you are providing an Elastix parameter file and not modifying it then you should be fine. However, if you use the .yml approach or modify a parameter file using a structure then it's possible you've found a bug in the writing of the paramater file. To diagnose this, look at the written parameter file by calling elastix.m with a user-defined output path (so the files produced are not deleted) or use the verbose option in elastix_paramStruct2txt. If you're still getting unexpected results then probably you have an issue with Elastix itself: please go the Elastix website for documentation or ask on their forum.

Related projects

  1. ElastixFromMatlab toolbox
  2. Elastix MATLAB interface

matlab_elastix's People

Contributors

raacampbell avatar laurentiush avatar

Watchers

 avatar

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.