Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Compare two images for similarity
Forum Updated to NodeBB v4.3 + New Features

Compare two images for similarity

Scheduled Pinned Locked Moved Unsolved General and Desktop
imageimage processin
6 Posts 4 Posters 2.3k 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.
  • S Offline
    S Offline
    sush
    wrote on last edited by
    #1

    Hello everyone,

    I need to compare and check if the given set of images are similar to the reference image or not. How can it be done in QT?

    Thanks in advance,

    Do not wait to innovate.

    m.sueM 1 Reply Last reply
    0
    • S sush

      Hello everyone,

      I need to compare and check if the given set of images are similar to the reference image or not. How can it be done in QT?

      Thanks in advance,

      m.sueM Offline
      m.sueM Offline
      m.sue
      wrote on last edited by
      #2

      Hi @sush

      Please define what you mean by "similar".

      -Michael.

      1 Reply Last reply
      2
      • S Offline
        S Offline
        sush
        wrote on last edited by
        #3

        Hi @m-sue

        Suppose the reference image contains a black coloured circle then to check if the set of images to be compared have the circles of same diameter or different diameter.

        Thanks,

        Do not wait to innovate.

        joeQJ m.sueM raven-worxR 3 Replies Last reply
        0
        • S sush

          Hi @m-sue

          Suppose the reference image contains a black coloured circle then to check if the set of images to be compared have the circles of same diameter or different diameter.

          Thanks,

          joeQJ Offline
          joeQJ Offline
          joeQ
          wrote on last edited by
          #4

          @sush Hi,friend,welcome.

          did you know Hough Circle of OpenCV ? May be it can help you.

          Hough Circle Transform

          Just do it!

          1 Reply Last reply
          2
          • S sush

            Hi @m-sue

            Suppose the reference image contains a black coloured circle then to check if the set of images to be compared have the circles of same diameter or different diameter.

            Thanks,

            m.sueM Offline
            m.sueM Offline
            m.sue
            wrote on last edited by
            #5

            Hi @sush

            If all the images just have black circles on a white background you could just count the black voxels and define a tolerance you are willing to accept.

            -Michael.

            1 Reply Last reply
            0
            • S sush

              Hi @m-sue

              Suppose the reference image contains a black coloured circle then to check if the set of images to be compared have the circles of same diameter or different diameter.

              Thanks,

              raven-worxR Offline
              raven-worxR Offline
              raven-worx
              Moderators
              wrote on last edited by
              #6

              @sush
              this is actually outside of the scope of Qt.
              You should use a graphics processing library (like OpenCV - i don't know if it offers such functionality) to do such stuff. Or you need to implement an appropriate algorithmn yourself which uses the Qt API to access the pixel data.

              This is by far a complicated topic.

              You may want to read the following links:
              Overview
              Perceptual Image Diff lib
              QGoImageComapre

              --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
              If you have a question please use the forum so others can benefit from the solution in the future

              1 Reply Last reply
              2

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved