Code covered by the BSD License  

Highlights from
Diffeomorphic Log Demons Image Registration


5.0 | 4 ratings Rate this file 80 Downloads (last 30 days) File Size: 195 KB File ID: #39194
image thumbnail

Diffeomorphic Log Demons Image Registration



27 Nov 2012 (Updated )

Simple matlab code for 2D and 3D image registration using the diffeomorphic log-demons algorithm

| Watch this File

File Information

Simple matlab code for 2D and 3D image registration using the diffeomorphic log-demons algorithm
Code is provided in order to help the understanding of the Demons algorithm - Any comment or improvement is welcome

MATLAB release MATLAB 7.10 (R2010a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (9)
10 Jul 2014 Nicolas Yu

Some details should be changed for my purpose, and thanks.

28 Apr 2014 Xun Zhang

I'm running the 2D demons. I'm confused about findupdate.m. In findupdate.m, your code computes the gradient of the moving image or float image. As far as I have learnt from literature, gradient of fixed image are used in the expression for u. I'm not quite clear about this.

18 Apr 2014 Herve Lombaert

@tianyu - You are raising an interesting point - There is a difference between Displacement field != Transformation (zero displacement leads to an identity matrix)

Typically, the identity matrix is added when computing the Jacobian determinant

See also this thread (from the itk code): (code is now including additional comments, perhaps this would help others)

17 Apr 2014 tianyu fu

@Herve LomBaert: And I don't think the code is wrong.But I can't get the same result showing in the paper.This makes me very upset.

17 Apr 2014 tianyu fu

@Herve LomBaert: Thank you for your reply.I have read many papers about the diffeomorphic Log-Demons.As you know,if the registration is diffeomorphic,so the Jacobian determinant of deformation must be positive.But,running your code,I find the determinant sometimes is negative.

17 Apr 2014 Herve Lombaert

@tianyu - Indeed, this is the Log-domain Diffeomorphic version, the deformation field is defined as the exponential map of a velocity field via expfield() - (velocity field != deformation field - More details on the associated literature on the Diffeomorphic Log-Demons)

17 Apr 2014 tianyu fu

Is it Diffeomorphic Image Registration?I do not think the Jacobi determinant of the transformation field is positive.

04 Mar 2014 Ernst Schwartz

@Hg: in image registration, you have to know how to deal with the boundaries of the images. A common choice is to have them fixed. So, in order not to over-regularize nor violate the diffeomorphism, a band of zeros is added during optimization.

09 Oct 2013 Hg

May I know the purpose of the piggyback function? Where can I find the explanation for the algorithm used in the code other than the paper included in the package?

26 Dec 2012

cleanup in sample files

29 Jan 2013

Log domain

18 Apr 2014

Fix in 2D (adding comments regarding Jacobian computation)

19 Aug 2014

comment updates

Contact us