Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.exr file converter small bug #11

Open
Enigmatisms opened this issue Dec 19, 2022 · 0 comments
Open

.exr file converter small bug #11

Enigmatisms opened this issue Dec 19, 2022 · 0 comments

Comments

@Enigmatisms
Copy link

In mfile/exr: file exr2mat.py:

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:

imgSize = (dataWin.max.y - dataWin.min.y + 1, dataWin.max.x - dataWin.min.x + 1)
# row then column

Otherwise, for non-square film, displayAndSaveVideo.m will display erroneous video.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant