Image subtraction in infrared images

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

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!