Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. how to compare two frames of any media file in vc++

how to compare two frames of any media file in vc++

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorial
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rajniyadav1a
    wrote on last edited by
    #1

    how to compare two frames of any media file in vc++

    C C N 3 Replies Last reply
    0
    • R rajniyadav1a

      how to compare two frames of any media file in vc++

      C Offline
      C Offline
      Chris Losinger
      wrote on last edited by
      #2

      what do you mean by "compare" ?

      image processing toolkits | batch image processing

      1 Reply Last reply
      0
      • R rajniyadav1a

        how to compare two frames of any media file in vc++

        C Offline
        C Offline
        Cool_Dev
        wrote on last edited by
        #3

        it depends on how you represent the decoded frames. It can be by BITMAPINFOHEADER like structures..

        1 Reply Last reply
        0
        • R rajniyadav1a

          how to compare two frames of any media file in vc++

          N Offline
          N Offline
          normanS
          wrote on last edited by
          #4

          Assuming you mean video frames, you could do something like this:

          convert both frames to a common format (same number of rows and columns, same pixel format for example RGB15)
          pixel by pixel, compare the red, green, blue components and check that they are "close enough"
          If a "high enough" percentage of pixels match, the media frames match

          This method will fail to return a match for all sorts of reasons, for example, because one frame has been cropped or because one frame has been processed to adjust the contrast, etc. Really, what you need to do is figure out what tineye www.tineye.com[^] are doing.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups