This is a package that uses High-Order Markov Random Field (HOMRF) to construct energy functions, and uses MCMC algorithm to optimize it.
For 2D images, please start with the script file /2D_example/registration_2D.m
For 3D images, please start with the scirpt file /3D_example/registration_3D.m