I am opening 16 bit 3 channel TIFFS with OpenImageIO to calculate values on the pixels. I perform some logic to grab matting information and I noticed that when I open little endian files and save them out using OpenImageIO, the images appear to be flipped around the x axis. This does not happen when working with Big Endian TIFF files. The images appear upside down. Here is my very rudimentary code to open the files. If I save this file out, then it is flipped.
Patrick ImageInput *in = ImageInput::open (argv[1]); if (!in) return -1; const ImageSpec &spec = in->spec(); int xres = spec.width; int yres = spec.height; int channels = spec.nchannels; std::vector<float> pixels (xres*yres*channels*sizeof(float)); in->read_image (TypeDesc::FLOAT, &pixels[0]); > On May 1, 2018, at 2:59 PM, Larry Gritz <l...@larrygritz.com> wrote: > > We have tagged official stable Release-1.8.11 and moved the "release" branch > marker to match. > > Also, we updated the obsolete 1.7 family to Release-1.7.17. > > Release notes are below. Both are very minor releases with mostly build issue > fixes. > > > > Release 1.8.11 (1 May 2018) -- compared to 1.8.10 > ------------------------------------------------- > * Fix to strtof, strtod for non-C locales. #1918 > * Add up-to-date Nuke versions to FindNuke.cmake. #1920 > * Allow building against ffmpeg 4.0. #1926 > > > > Release 1.7.18 (1 May 2018) -- compared to 1.7.17 > ------------------------------------------------- > * Allow building against ffmpeg 4.0. #1926 > > > -- > Larry Gritz > l...@larrygritz.com > > > > > _______________________________________________ > Oiio-dev mailing list > Oiio-dev@lists.openimageio.org > http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
_______________________________________________ Oiio-dev mailing list Oiio-dev@lists.openimageio.org http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org