Thread: comparing bitmaps

  1. #1
    Registered User
    Join Date
    Feb 2002

    comparing bitmaps

    Hi All,

    Can anybody sugest me a way to compare two bitmaps
    and create a third bitmap showing the difference of the two.
    Alternatively, can anyone point me to a tool that would do
    this for me ?




  2. #2
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    what exactly is "the difference" When a pixel is a different color you output what? That's a strange application and I wonder what you want it for. What purpose will it serve? If you just want to know which pixels are not the same, Salem's little nexted loop is all you need to do. Then I suppose black could mean same and white could mean different. Useless though.
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  3. #3
    Code Monkey Davros's Avatar
    Join Date
    Jun 2002
    Could images be of different size?
    OS: Windows XP
    Compilers: MinGW (Code::Blocks), BCB 5

  4. #4
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Originally posted by FillYourBrain
    Useless though.
    Not quite. This method is often used in motion detectors, comparing two frames and registering changes (Changes in the pixels = movement).
    I guess there is some similar function in optical mice/stuff too.

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Drawing bitmaps efficiently
    By scwizzo in forum Windows Programming
    Replies: 28
    Last Post: 06-30-2009, 08:25 PM
  2. DX9 Not Displaying Bitmaps
    By Sentral in forum Game Programming
    Replies: 9
    Last Post: 01-31-2006, 05:35 AM
  3. MFC: Multiple clicks shows multiple bitmaps - how?
    By BrianK in forum Windows Programming
    Replies: 0
    Last Post: 06-20-2004, 07:25 PM
  4. using standard bitmaps in the toolbar editor
    By Kibble in forum Windows Programming
    Replies: 0
    Last Post: 12-23-2002, 08:43 PM
  5. comparing bitmaps
    By bigSteve in forum C++ Programming
    Replies: 1
    Last Post: 11-08-2002, 10:40 AM