Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re^5: Matching Images

by BrowserUk (Pope)
on Nov 22, 2010 at 14:40 UTC ( #872977=note: print w/replies, xml ) Need Help??

in reply to Re^4: Matching Images
in thread Matching Images

my point

If information is "lost" through a lossy conversion, the images are different, and the code I posted will detect those differences.

Note well: The OP didn't ask to find images that "looked the same" or were "substantially similar", or any other form of fuzzy comparison.

He asked for:

I would like my script to compare two images and tell me if even one single pixel is slightly different in one of them.

Which is exactly what the code I posted--as opposed to your theory--does.

Hence, your "point" is pointless.

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^6: Matching Images
by LanX (Bishop) on Nov 22, 2010 at 14:47 UTC
    Funny, this subthread is a good example for aggressiv arguments. =)

    Cheers Rolf

    PS: BTW I'm off ... 8)


    > He asked for:

    > I would like my script to compare two images and tell me if even one single pixel is slightly different in one of them.

    Indeed! But he didn't talk about different image formats either, leaving much place for interpretations and clarifications.

      If by that you mean direct, forthright and accurate. Then yes, guilty as charged.

      Of course, such directness wouldn't be necessary if:

      1. people read the questions, that the answers they challenge are addressed to, before challenging them.
      2. made some attempt to verify their theories before posting them.
      3. didn't continue to argue in favour of those theories long after they have been disproved.
        BUK (honestly in your own interest!) if I were you, I would consider having long talks to people in RL or even visiting a therapist from time to time!

        Or at least regularly taking long walks in the forest to relax.

        Your emotional reactions are close to paranoia.

        Cheers Rolf

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://872977]
[Corion]: Meh. SQL window functions would even make pagination easy/trivial (but not performant), as rank() over (partition by user order by timestamp) / 10 as page would give me a page number for each item, with 10 items per page.
[Corion]: Of course, the query performance for "all items on page 10" is likely worse than rank() between 100 and 109 , but if that means I can write 15 lines of SQL instead of needing to think about how to partition things and how to encode the page size...
[Corion]: ... that would be nice. But alas, I'm currently tied to SQLite as minimum implementation, and it doesn't implement window functions :-(
[Corion]: And I'm not aware of any other serverless SQL implementation that even reaches the capability of SQLite, not to mention surpasses it

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (10)
As of 2018-03-22 12:21 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (274 votes). Check out past polls.