SourceCodePoint
Thursday, 7 July 2016
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:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment