Hey, I tried reading the RGB images from the .tiffs generated by the managed code. They look fine but the stencil looks weird. I'm reading it using the code provided in the generate_bboxes.py and get the following result if I display the image. (I looked at ImageUtils.WriteToTiff() and it just writes byte[], so should be straight forward to read. I logged the sizes of these byte arrays and got the following
The stencil is an exact 1080 by 1920, but when I read it in python using the code below I get the following image. It seems to be shifted/read in sideways? somehow but the color images read perfectly fine.
edit:
Also my depth data is messed up, I get the following warnings when trying to load them in python:
TIFFReadDirectory: Warning, Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples..
TIFFReadDirectory: Warning, Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples..
LZWDecode: Not enough data at scanline 0 (short 4608000 bytes).
depth.min(): nan depth.max(): nan
I split the color from the depth and stencil image to see if that made a difference but no luck so far...
Hey, I tried reading the RGB images from the .tiffs generated by the managed code. They look fine but the stencil looks weird. I'm reading it using the code provided in the generate_bboxes.py and get the following result if I display the image. (I looked at
ImageUtils.WriteToTiff()
and it just writes byte[], so should be straight forward to read. I logged the sizes of these byte arrays and got the followingThe stencil is an exact 1080 by 1920, but when I read it in python using the code below I get the following image. It seems to be shifted/read in sideways? somehow but the color images read perfectly fine.
What did I mess up? Can you help me? Code used:
edit: Also my depth data is messed up, I get the following warnings when trying to load them in python:
I split the color from the depth and stencil image to see if that made a difference but no luck so far...
SOLVED: Enabled MSAA + VSYNC, enabled mod and disable MSAA and vsync again. Now everything looks fine! Thanks to Cuky88