[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Openexr-devel] OpenEXR single scanline read
From: |
Charles Henrich |
Subject: |
[Openexr-devel] OpenEXR single scanline read |
Date: |
Thu, 17 Apr 2003 09:40:59 -0700 |
User-agent: |
Mutt/1.2.5i |
Im having a devil of a time reading a float exr that has a databox and display
box aligned at -98,-98,2147,1652.
It dumps core in readPixels no matter what I try and do.
Something like this should work for reading a single scanline (exrY) out of
the file yeah?
float pixels[datawin.max.x-datawin.min.x+1];
fbuf.insert(channelname,
Imf::Slice(Imf::FLOAT, (char *)pixels-datawin.min.x,
sizeof(float), 0));
inputfile->setFrameBuffer(fbuf);
inputfile->readPixels(exrY);
The only thing I can figure is somehow the calculation is wrong for the buffer
space? Are there any other tools available that will read float images?
-Crh
Charles Henrich address@hidden
http://www.sigbus.com/~henrich
- [Openexr-devel] OpenEXR single scanline read,
Charles Henrich <=