imgSize = (dataWin.max.x - dataWin.min.x + 1, dataWin.max.y - dataWin.min.y + 1) # line 12
video = [np.reshape(np.frombuffer(video[i], dtype=np.float16), imgSize) for i in range(len(video))] # line 26
imgSize is incorrect if width is not equal to height. The correct imgSize should be:
In
mfile/exr
: fileexr2mat.py
:imgSize
is incorrect if width is not equal to height. The correctimgSize
should be:Otherwise, for non-square film,
displayAndSaveVideo.m
will display erroneous video.