Image subtraction in infrared images

2 views (last 30 days)
How to subctract images in a sequence of images in RGB colors?
I need to enhance a sequence of thermographyc images and I would like to subtract the first capture from the all others.

Accepted Answer

Shadaab Siddiqie
Shadaab Siddiqie on 27 Apr 2021
From my understanding you want to substract two images. You can simply do
a = imread('image1.jpg');
b = imread('image2.jpg');
SubImage = double(a) - double(b);
imshow(SubImage, []);
If in case you want to substract with all the images just do it using a for loop.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!