How to align two images from different sources?
8 views (last 30 days)
Show older comments
Hi!
I am working on a project to fuse two images, RGB + Infrared (1 Channel). I noticed the images from RGB source has a slightly wider angle than IR source. Both image souces have different resolution as well. RGB 1800x1600pixels, whereas IR source 640x512 pixels. I have tried to manually crop and then feed new image into fusion algorithm, but I would not consider my croping to be as good. Is there an optimal way to align two images, so that they can be fed into an algorithm?
RGB image: https://imgur.com/PUMY2ap
IR image: https://imgur.com/bOmhlcY
0 Comments
Answers (1)
Sai Sri Pathuri
on 23 Sep 2020
You may use imfuse function. Link to documentation: https://www.mathworks.com/help/images/ref/imfuse.html
First resize the RGB image and then apply imfuse
a = imread('RGBImage.jpg');
a = imresize(a,[512,640]);
b = imread('IRImage.jpg');
c = imfuse(a,b);
imshow(c)
See Also
Categories
Find more on Geometric Transformation and Image Registration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!