User Tag List

Results 1 to 9 of 9

Thread: Comparing two images

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module

    Join Date
    Sep 2006
    Location
    UK
    Posts
    842
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Comparing two images

    Hi, i am woundering if anyone knows how t compare to simular images and return a value or figure, the only way i am doing it so far is by pixels, but i cant figure away to check every pixel, and i "presume" that will be slow, so the only wayi am doing it so far is by have the X,Y Coordinates of areas i want to check are differnt then it simply checks the pixels, but i would really love to be able to do this better and even "pattern match" in images.
    Anyone know have any ideas?
    Thanks
    Andy

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Comparing two images

    If you aren't comparing often, using loops to go through the X and Y positions and check them shouldn't be too slow (unless the image is huge).
    .:::.Joshtek.:::.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleInstall Creator ProPatch Maker
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    DJFuego's Avatar
    Join Date
    Jul 2006
    Location
    UK
    Posts
    1,416
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Comparing two images

    compareing 2 images should be straight foward. You could open both images at the same time and compare the differences on the fly; that way you won't have to create unessasary data.
    Say you do a fast loop function and get to row X column Y and the colour is different then mark this as a change and or mark he difference in values. I would add an image overlay to mark where the changes are as well for a visual representation.
    Are you making some sort of authenticating system or a new picture format?

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module

    Join Date
    Sep 2006
    Location
    UK
    Posts
    842
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Comparing two images

    Hi, well im just playing with an idea for the company i work for, and at the moment yea, there are two images, and the current way they compare is by flashing two images together and "looking" for differences, so i thought there must be a nice way automating that to illinate a user staring at two flashing images. Ive never used the fastloop, are you saying, like checking every pixel in a row of that image?
    Images are very small... some only maybe 20px x 40px.

    How would i go about getting it to check a line then goto the next? Oh, im useing MMF 1.5. If i have success i do intend to buy 2.

    Thanks
    Andy

  5. #5
    No Products Registered

    Join Date
    Jun 2006
    Location
    here
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Comparing two images

    You could make active picture objects load both images, have one overlapping the other and set an XOR draw mode to the top one. Then any changes will show up in colours, whereas bits that are the same will be black. This wouldn't be a completly automatic check, but it would probably help.

    To make it completly automatic, you would need to use the overlay object - using 2 overlays, load the images then in the code add an X loop which runs a Y loop which checks each pixel of both overlays to see if they are the same. If it ever finds any that are different, break the loop and make a string object visible or something similar.
    I could possibly make an example of this if you want (and if I have enough time)

  6. #6
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module

    Join Date
    Sep 2006
    Location
    UK
    Posts
    842
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Comparing two images

    That would be really helpful if you could make a quick example, only if u find some time. But that would be great. Ill give a shot at what yu sead first to.
    Thanks, either post it up here or send it to my email, []andygilbertuk@tiscali.co.uk[/]

    Cheers
    Andy

  7. #7
    No Products Registered

    Join Date
    Jun 2006
    Location
    here
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Comparing two images


  8. #8
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module

    Join Date
    Sep 2006
    Location
    UK
    Posts
    842
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Comparing two images

    ohhh sorry dude, i only have 1.5 (sorry i mentioned it in my 2nd post shud of put it in my first), any chance of getting it into 1.5 version?
    Thanks
    Andy

  9. #9
    No Products Registered

    Join Date
    Jun 2006
    Location
    here
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Comparing two images

    Sorry, I don't have MMF 1.5 installed any more. Maybe someone else can convert it for you.

    btw, when asking questions about MMF 1.5, you should post in the Older products forums.

Similar Threads

  1. string comparing
    By felinex in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 28th April 2018, 03:38 PM
  2. Comparing INI++ Information
    By Hydra in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 6th May 2012, 08:03 AM
  3. comparing numbers
    By Zabooza in forum Multimedia Fusion 2 - Technical Support
    Replies: 21
    Last Post: 25th March 2009, 03:04 AM
  4. Comparing 2 images automatically
    By Bovril in forum File Archive
    Replies: 6
    Last Post: 16th September 2006, 01:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •