Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Change Detection in two still images

Posted on 1998-09-24
1
Medium Priority
?
217 Views
Last Modified: 2010-04-27
Is it possible to do a pixel by pixel comparison between two still images of TIF file format. After comparing, can I highlight the differences in a new window so that the changes between these two images which are taken at the same spot but at a different time. How do I do this?
0
Comment
Question by:wmlim060298
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 12

Accepted Solution

by:
mark2150 earned 200 total points
ID: 1010833
I wouldn't try and do it on the files directly (you could simply do a binary file compare if it were *that* easy!). generally I think you'ld load 'em into a couple of picture frames and then compare the pixels there. You can then set the pixels in a 3rd picture frame according to the absolute value of the difference. The drawbacks are that it would be slow as mud and that it would be TOO sensitive.

Depending on the source of the images you're generally going to find too much of a delta even from consecutive video frames for pixel-by-pixel to give you much value. (I'm presuming that the original source of the data is video - correct me if i'm wrong...)

Anyway, one of the techniques to reduce the frame-by-frame noise in the image is to discard color depth. The more bits of color you have the noiser the image is going to be. Your chances of having all 2^24 colors exact between two images is slim to none. If you reduce your color depth from 24 bits to 8, 6, or even 1 bit, your comparator will be much less suscepable to "trivial" changes.

One way to measure change is to sum the absolute value of the differences and then divide by the number of pixels in the image. This will give you a "delta per pixel" figure of merit so you won't be snowed by a large change in a small area.

I could write something if you ship me a pair of images. Send to:

Mark_Lambert@ntsc.navy.mil

What are you looking at?

M

0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Moving your enterprise fax infrastructure from in-house fax machines and servers to the cloud makes sense — from both an efficiency and productivity standpoint. But does migrating to a cloud fax solution mean you will no longer be able to send or re…
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question