[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Openexr-devel] Sample image t14.exr has wrong display window?
From: |
Brendan Bolles |
Subject: |
Re: [Openexr-devel] Sample image t14.exr has wrong display window? |
Date: |
Fri, 27 Jun 2014 12:14:46 -0700 |
On Jun 27, 2014, at 9:04 AM, Gonzalo Garramuno wrote:
> x y x2 y2 w h x y x2 y2 w h
> displayWindow=(-100,-100 - -100,-100) [0-0] dataWindow=(0,0 - 399,299)
> [399-299]
>
> and thus no pixel or image at all.
>
> Also t01.exr says it should have the same display window as the data window.
> However, the display window for that image is:
>
> displayWindow=(0,0 - 0,0) [0-0] dataWindow=(0,0 - 399,299) [399-299]
The dataWindow and displayWindow coordinates are inclusive, so to get the
width/height you need to add a +1 to your measurements.
t14.exr actually has a displayWindow of [-100, -100, 0, 0], so that's 101x101
pixels. The dataWindow is 400x300 [0, 0, 399, 299], as are all the files in
that folder. What the README says is that the two "have only one pixel in
common." So you should have a 101x101 image with just one yellow pixel down in
the lower right corner. The exrdisplay program will show you how it's done.
In every t01.exr I've ever seen, the displayWindow matches that dataWindow. I
just checked the one on the GitHub repository to verify.
Brendan