Giter Club home page Giter Club logo

Comments (5)

lgritz avatar lgritz commented on July 17, 2024

Sorry, Soren, I'm not proud of the fact that this one fell through the cracks.

It looks like those files are no longer on Dropbox, so I can't tell for sure, but by any chance was the larger one BLACK in the top and bottom stripes that weren't present in the image with the smaller data window?

By design, idiff assumes that if the two images don't contain the same number of pixels, they can't possibly "match", since they don't contain the same data.

I can imagine two alternate behaviors for idiff (which could be used in combination):

(1) Allowing a black pixel in one image to "match" a nonexistent pixel in the other image.

(2) Having a mode in which only pixels within the "display" windows of the two images are compared, i.e. they may differ outside the display region and that's ok.

Would either or both of those be more helpful to you in the real world?

from oiio.

malcolmhumphreys avatar malcolmhumphreys commented on July 17, 2024

I would vote for option 1
On 22/04/2013 11:59 PM, "Larry Gritz" [email protected] wrote:

Sorry, Soren, I'm not proud of the fact that this one fell through the
cracks.

It looks like those files are no longer on Dropbox, so I can't tell for
sure, but by any chance was the larger one BLACK in the top and bottom
stripes that weren't present in the image with the smaller data window?

By design, idiff assumes that if the two images don't contain the same
number of pixels, they can't possibly "match", since they don't contain the
same data.

I can imagine two alternate behaviors for idiff (which could be used in
combination):

(1) Allowing a black pixel in one image to "match" a nonexistent pixel in
the other image.

(2) Having a mode in which only pixels within the "display" windows of the
two images are compared, i.e. they may differ outside the display region
and that's ok.

Would either or both of those be more helpful to you in the real world?


Reply to this email directly or view it on GitHubhttps://github.com//issues/189#issuecomment-16829325
.

from oiio.

lgritz avatar lgritz commented on July 17, 2024

As far as I can tell, although idiff fails comparisons of images with different data window sizes, oiiotool already exhibits the desired behavior:

oiiotool a.exr b.exr --diff

At least as of some recent oiiotool/ImageBufAlgo overhauls.

from oiio.

lgritz avatar lgritz commented on July 17, 2024

As I said, the requested behavior was already the case for recent oiiotool versions, and pull request #586 fixes it fully for idiff as well.

from oiio.

lgritz avatar lgritz commented on July 17, 2024

Committed the fix to master.

from oiio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.