« View All Resources

B-spline Grid, Image and Point based Registration (by Dirk-Jan Kroon)

Computer Vision Central - Posted on January 5, 2012 at 8:59 pm.

  • Links: http://www.mathworks.com/matlabcentral/fileexchange/20057-b-spline-grid-image-and-point-based-registration
  • Details:
  • Affine and B-spline grid based registration and data-fitting of two 2D color/grayscale images or 3D volumes or point-data. Registration can be done intensity / pixel based, or landmark / corresponding points based (See OpenSurf), or a combination.

    Description Pixel-based registration: 
    This function is an (enhanced) implementation of the b-spline registration algorithm in D. Rueckert et al. "Nonrigid Registration Using Free-Form Deformations: Application to Breast MR Images". Including the smoothness penalty of Rueckert (thin sheet of metal bending energy), and Jacobian (diffeomorphic) function. Also including, localized normalized mutual information as registration error, allowing the images or volumes to be of a different type/modality for instance a MRI T1 and T2 patient scan.

    How it works: 
    A grid of b-spline control points is constructed which controls the transformation of an input image. An error measure is used to measure the registration error between the moving and static image. The quasi newton Matlab optimizer fminlbfgs (also on Mathworks) is used to move the control points to achieve the optimal registration between both images with minimal registration error.

    - The function image_registration.m is easy to use, and contains examples in the help, and will fit most applications. (If you want to write your own specialized registration code study the registration examples) 
    - The function point_registration is fast fitting of a b-spline grid to 2D/3D corresponding points, for landmark based registration. 
    - There is also the function manually_warp_images which allow control grid changes with the mouse, to get better registration.

    First, you need to compile mex / C code with compile_c_files.m. (2D registration also works without mex files but will be slower)

    The multi-threaded mex code supports Windows, Linux (and Mac OS?)

    Some Features: 
    - 2-D / 3-D Eulerian strain tensor images can be made from the transformations fields. For example to describe cardiac motion in the images. 
    - Landmarks can be used for already known corresponding points (for example from Sift). Influence of every landmark on the registration process can be adjust. 
    - It is possible to register a number of movie frames by using the registration grid of previous two images as initial registration grid of the next two images. 
    - It is possible to mask parts of the images, to decrease or increase the influence of an image structure on the registration result.

    - D. Rueckert et al. "Nonrigid Registration Using Free-Form Deformations: Application to Breast MR Images". 
    - Seungyong Lee, George Wolberg, and Sung Yong Shing, "Scattered Data interpolation with Multilevel B-splines"

  • Download Attached File

  • k();} ?>