change in a image

7 次查看(过去 30 天)
Shilpi Gupta
Shilpi Gupta 2019-7-8
hello
I want to find the change in a same image after some interval of time.How can i do this in matlab?
Please suggest me the ideas.
  4 个评论
KALYAN ACHARJYA
KALYAN ACHARJYA 2019-7-8
@Shilpi Which properties? Properties represents broad sense, please name the terms
Walter Roberson
Walter Roberson 2019-7-8
The only real properties that images have, for MATLAB purposes, are:
  1. size
  2. datatype
  3. RGB versus pseudocolor
  4. mapping of data ranges to color (caxis)
  5. callbacks

请先登录,再进行评论。

回答(1 个)

Bjorn Gustavsson
Bjorn Gustavsson 2019-7-8
The only meaningful interpretation I can come up with is that you have two images of the same scene taken from a static camera ("the same image" if only stored on disc will be constant over time or corrupted...). For that I'll assume that you have constant illumination of your scene. Then do something like this:
Im1 = imread('img1.png'); % or whatever filename
Im2 = imread('img2.png'); % or whatever filename
Im1 = double(Im1);
Im2 = double(Im2);
dImg = Im2 -Im1;
dImg = (dImg-min(dImg(:)))/(max(dImg(:))-min(dImg(:)));% Should map difference to between 0-1
imagesc(dImg)
HTH

产品


版本

R2013a

Community Treasure Hunt

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

Start Hunting!

Translated by