OpenImageIO/oiio — Issue #189: idiff fails on similar EXRs with different dataWindows
Author: sorenr
Created: 2011-11-02 18:38:51+00:00
State: open

I'm working in a studio where we're using displayWindow to describe the size of the image and dataWindow to describe the DOD for image data. It's common for our element renders to have a dataWindow smaller than the displayWindow, defining the bounds of the rendered element.

idiff is failing with "Images do not match in size" when the dataWindows don't match, even when the displayWindows are the same size and the pixels outside the dataWindow are black. This might be OIIO's error, or it might be ours: the OpenEXR documentation is a bit vague about what those windows actually mean.

Example images which produce this failure:

http://dl.dropbox.com/u/17507118/111004-150627.exr dataWindow (type box2i): (0 0) - (511 388)
http://dl.dropbox.com/u/17507118/111102-104031.exr dataWindow (type box2i): (0 90) - (511 328)

I've tested this on the current oiio 0.11.0, last commit was 31c7f3236945fa7d84f97309ace168c3fd8f34b0 on Mon Oct 31 14:25:08.