Comments (5)
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.
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.
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.
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.
Committed the fix to master.
from oiio.
Related Issues (20)
- Roadmap goal: Clean up color management for OIIO 3.0 HOT 3
- Feature request: improve sRGB parsing HOT 7
- [BUG] 2.5.9.0 tries to link libxml2 but it looks like cmake doesnt check for the library HOT 2
- [BUG] CMYK is being saved as RGB on export
- [BUG] glTexImage3D not in QOpenGLFunctions but in QOpenGLExtraFunctions HOT 2
- [BUG] When using ImageBuf, this file reports a divide-by-zero exception error. Please take a look HOT 2
- an example program using OIIO's batched environment lookup HOT 1
- making a stab at generated images by bending the null image plugin HOT 3
- [FEATURE REQUEST] Metadata OpenEXR HOT 2
- [BUG] Photoshop files currently dont load 16- and 32- bit files' image data HOT 2
- [BUG] Wrong data type HOT 3
- [BUG] ensure proper constexpr of string hashing fix fails to build on 32-bit archs HOT 5
- black lanes in batched texture lookup HOT 13
- [BUG] OIIO::ImageBuf::nsubimages returns zero for existing image HOT 10
- [BUILD] AOCC 4.2 build failure HOT 1
- [BUG] crash if no default fonts are found HOT 4
- [FEATURE REQUEST] OIIO::ImageBufAlgo::make_texture doesn't take an nthreads argument HOT 2
- [FEATURE REQUEST] ImageBuf "wrap" numpy array in python HOT 2
- [FEATURE REQUEST] Proxy support for EXR multipart output HOT 3
- [BUG] SIMD support does not work correctly when building with MSVC
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oiio.