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

fix bug in sensor.py make_images method #7

Open
ronenroi opened this issue Mar 18, 2020 · 0 comments
Open

fix bug in sensor.py make_images method #7

ronenroi opened this issue Mar 18, 2020 · 0 comments

Comments

@ronenroi
Copy link

when multichannel is false the radiance variable has wrong dimensions.
I fixed it by like that:

multiview = isinstance(projection, shdom.MultiViewProjection)
multichannel = num_channels > 1
radiance = radiance.T
if multichannel:
radiance = np.array(np.split(radiance, num_channels))

hope it was helpful

Roi

@ronenroi ronenroi changed the title fix bug in fix bug in sensor.py make_images method Mar 18, 2020
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