Solved

Change Detection in two still images

Posted on 1998-09-24
1
176 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Is it worth it to buy an Echo? In a word, yes! For me it was definitely worth it. I use mine on a daily basis. Prologue & Privacy At first, I was very skeptical about the Amazon Echo. In general, I don't like voice assistants. I don't li…
The Rasberry PI is a low cost piece of hardware that you can have a lot of fun with through experimenting and building/working on projects like media players, running a low cost computer, build data loggers etc. - see: https://www.raspberrypi.org
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now