Hi, i want to process a stream of gray level images periodically captured by the cameras. can any one tell me where should i start .I'm new to image processing toolbox .,kindly help me
Show older comments
i have to design an algorithm for temporal correlation. create a program in MATLAB in which any random images are coming from the cameras. i have to set the threshold or time limit let say 10 min or 5 min after every 10 min check image if image is same as it is in the first image then don't send signal to the sink or destination only send signal or information to sink when images coming from the camera nodes are different .
e.g if image 1 -image 2=0 then don't send image or signal but if image1-image2= some value then send this information to sink .
Accepted Answer
More Answers (1)
Image Analyst
on 9 Nov 2012
You can cast the image from getsnapshot() to single, then subtract them and take the absolute values of the pixels and sum them. If that value is more than some value that you declare defines "different enough" then send your signal or email.
lastImageSnapped = single(getsnapshot());
% Subtract from the last image. twoImagesAgo must already be assigned.
differenceImage = abs(lastImageSnapped - twoImagesAgo);
differenceValue = sum(differenceImage (:));
if differenceValue > minAllowableDifference
% They are too different. Send the signal
else
% They are basically the same.
end
% Prepare for next time through:
twoImagesAgo = lastImageSnapped;
1 Comment
Mehreen Hussain
on 11 Nov 2012
Edited: Mehreen Hussain
on 11 Nov 2012
Categories
Find more on Signal Generation, Manipulation, and Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!