openexr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Openexr-devel] Trouble creating deep scanline files


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:
Good morning folks!


I'm trying to convert deep rat images into OpenEXR deep scanline images using the current 2.0.0 release on openexr.com.

At this point I haven't been able to create a valid file and I am at a loss to understand why. 

Here is a super simple test based on the documentation and it doesn't create a valid file: http://hastebin.com/webasetiyo.cpp


Does anyone see anything blatantly wrong with this? Any advice would be helpful!


Thanks,

Chip


_______________________________________________
Openexr-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/openexr-devel


reply via email to

[Prev in Thread] Current Thread [Next in Thread]