How to align two images from different sources?

조회 수: 14 (최근 30일)
Kev
Kev 2020년 9월 20일
편집: Kev 2020년 9월 24일
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?

답변 (1개)

Sai Sri Pathuri
Sai Sri Pathuri 2020년 9월 23일
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)
  댓글 수: 1
Kev
Kev 2020년 9월 24일
편집: Kev 2020년 9월 24일
Hi Sai!
Thanks a lot for getting back to me! I have attempted above fusion, but it doesn't look very good as you can see shadows. Maybe if I can crop the images properly, maybe it will have less shadow. I am also planning to run the fusion through a different algorithm. My goal is to reduce shadows, or have no shadows at all.
Sample output image 1) https://imgur.com/zZfFaf1
Thanks a lot!!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Geometric Transformation and Image Registration에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by