Giter Site home page Giter Site logo

cimas's People

Contributors

baiwenjia avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cimas's Issues

rview binary for MIRTK

Hi @baiwenjia, nice project! I just thought I'd drop a note that users running macOS or Ubuntu may also download the MIRTK "view" binary (i.e., rview with slight changes which can read MIRTK transformation files) without need to enter their personal details. The binary, when copied to the $MIRTK_PREFIX/lib/tools/ directory of the MIRTK installation, can be executed using:

mirtk view [<image>]

Replace "prreg" by "mirtk init-dof"

The MIRTK "register" command replaces the obsolete IRTK prreg binary:

mirtk register target-landmarks.vtk source-landmarks.vtk \
    -dofout out.dof -model Rigid \
    -par "Point set correspondence" "Closest point"

However, when you have a set of landmarks, you are better off with the "mirtk init-dof" command which uses the closed form solution of the least squares problem:

mirtk init-dof out.dof -displacements target-landmarks.vtk source-landmarks.vtk
-displacements, -disp <pset1> <pset2> [<cor12>]
      Create transformation which minimizes the mean squared distance between pairs
      of fiducial point sets <pset1> and <pset2>. When a single <pset> is given,
      it creates a transformation which approximates the displacement vectors stored
      in the "vectors" point set attributes array. Option can be used multiple times.

Replace "surface_smooth" by "mirtk smooth-surface"

You can use the smooth-surface command of MIRTK to perform Laplacian smoothing of surface node positions (or scalar data...).

It appears that

os.system("surface_smooth {0} {0} 500 -relaxation 0.01".format(mesh_fit))

can be replaced by

os.system("mirtk smooth-surface {0} {0} -iterations 500 -lambda 0.01 -combinatorial -exclnode".format(mesh_fit))

(or -distance option instead of -combinatorial to use Laplacian weights inversely proportional to the distance of adjacent nodes). The option -inclnode or -exclnode can be used to specify whether the node that is smoothed itself should contribute to the average or not, respectively.

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.