Write a MATLAB program for image subtraction


Hints: Both images have the same size and class or Second image must be a scalar double.

Code:
clear;
clc;
I=imread('d:/matimage/arithmetic/baby1.jpg');
J=imread('d:/matimage/arithmetic/nature.jpg');
K=imsubtract(I,J);
imshow(K)


Output:



No comments

Powered by Blogger.