Commit 81a91132 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

minor

parent 250a6859
...@@ -17,7 +17,7 @@ def exr2arr(exrfile): ...@@ -17,7 +17,7 @@ def exr2arr(exrfile):
if c in channels: if c in channels:
channels_list.append(c) channels_list.append(c)
# the shape was incorrect # the shape had incorrect order
#size = (dw.max.x - dw.min.x + 1, dw.max.y - dw.min.y + 1) #size = (dw.max.x - dw.min.x + 1, dw.max.y - dw.min.y + 1)
size = (dw.max.y - dw.min.y + 1, dw.max.x - dw.min.x + 1) size = (dw.max.y - dw.min.y + 1, dw.max.x - dw.min.x + 1)
color_channels = file.channels(channels_list, Imath.PixelType(Imath.PixelType.FLOAT)) color_channels = file.channels(channels_list, Imath.PixelType(Imath.PixelType.FLOAT))
...@@ -28,7 +28,7 @@ def exr2arr(exrfile): ...@@ -28,7 +28,7 @@ def exr2arr(exrfile):
if __name__ == "__main__": if __name__ == "__main__":
fname = "depth-0001.exr" fname = "depth-0001.exr"
arr = exr_to_array(fname) arr = exr_to_array(fname)
print(arr.shape) print(arr.shape)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment