Solved

Change Detection in two still images

Posted on 1998-09-24
1
192 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
1 Comment
 
LVL 12

Accepted Solution

by:
mark2150 earned 100 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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
WiFi hub advice for a training workshop 7 47
tv problems 3 55
Can someone tell me how I've hooked up this low-pass filter wrong? 3 62
Locked BIOS on HP laptop 9 42
In this article you will get to know about pros and cons of storage drives HDD, SSD and SSHD.
Monitor input from a computer is usually nothing special.  In this instance it prevented anyone from using the computer.  This was a preconfiguration that didn't work.

830 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