Giter Site home page Giter Site logo

songxiao-tt / nonrigidimageregistrationmarkovrandomfields Goto Github PK

View Code? Open in Web Editor NEW

This project forked from francoisdavid/nonrigidimageregistrationmarkovrandomfields

0.0 0.0 0.0 2.09 MB

Algorithm using a MRF for (medical) image registration.

MATLAB 100.00%

nonrigidimageregistrationmarkovrandomfields's Introduction

NonRigidImageRegistrationMarkovRandomFields

Algorithm using a MRF for image registration.

How to use the algorithm.

Read the first image. For a Dicom file which will become Image I.

infoI = dicominfo('thorac.dcm');
I=dicomread(infoI); % image that will be transformed.

Read the second image. For a Dicom file which will become Image J.

infoJ = dicominfo('thorac2.dcm');
J=dicomread(infoJ); % image that will model the transformation.

Running the algorithm. The variable IT will become the registered image, the 3rd parameter is the number of iterations that will be performed, we recommend between 25 and 30 iterations.

IT = MRF(I,J,30);

Then, in order to calculate the Sum Absolute Difference between the 2 original images, we run:

IJSAD = SAD(I,J);

To calculate the Sum Absolute Difference between the registered image and the target images, we run:

ITJSAD = SAD(IT,J);

To plot the 3 different images. The image I, the transformed image and the target image J.

subplot(3,1,1)
imshow(I,[]);
title("Image I");

subplot(3,1,2)
imshow(IT, []) ;
title("Transformed Image");

subplot(3,1,3)
imshow(J,[]);
title("Image J");

More images used can be found in the bin.zip file.

nonrigidimageregistrationmarkovrandomfields's People

Contributors

francoisdavid avatar steveiaco 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.