Functions for aligning images by rotation and translation:
MI2 - calculating Mutual information
joint_h - calculating Joint histogram
Mutual information is calculated using joint histogram calculation between two images.
rotate_image.m function by Ohad Gal is used. DO NOT FORGET DOWNLOAD THE FILE:http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=4071&objectType=FILE
Users having access to IP toolbox can download image_registr_MI.zip which uses IMROTATE function and has an option to crop the image to save computation time.
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)
Please e-mail if you have problems!
Kateryna Artyushkova (2021). Automatic Image Registration (https://www.mathworks.com/matlabcentral/fileexchange/4534-automatic-image-registration), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired by: Rotate Image
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!