|
From: | Halfdan Ingvarsson |
Subject: | Re: [Openexr-devel] Trouble creating deep scanline files |
Date: | Wed, 17 Apr 2013 12:57:33 -0400 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4 |
At first glance, it looks like your x
and y indices are reversed.
The outermost bracket increases fastest and should therefore be indexed by x. E.g: Imf::Array2D<unsigned int> sampleCount; sampleCount.resizeErase(yRes, xRes); ... for (int y=0; y < yRes; y++) { for (int x=0; x < xRes; x++) { sampleCount[y][x] = sampleSize; ... exrFile.writePixels(1); Hope that helps, - ½ On 13-04-17 12:33 PM, Chip Collier wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |