Functions for aligning images by rotation and translation: image_registr_MI.m
MI2 - calculating Mutual information
joint_h - calculating Joint histogram
Mutual information is calculated using joint histogram calculation between two images.
For each angle of rotation all translation parameters are checked.
NOTE - the images must have correct relative sizes with respect to each other (no resizing is incorporated in this registration)
NOTE: image1 should be smaller that image2
Function allows to crop part of the image for registration to save computational time using IMCROP function.
For more help type:
help image_registr_MI.m
For users without IP toolbox download file im_reg_mi.zip without
% cropping option and with different rotation function
Please e-mail if you have problems! |