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

Scaling of output in GridMapRosConverter::addLayerFromImage #49

Closed
solosuper opened this issue Mar 11, 2016 · 3 comments
Closed

Scaling of output in GridMapRosConverter::addLayerFromImage #49

solosuper opened this issue Mar 11, 2016 · 3 comments

Comments

@solosuper
Copy link

Hi everyone,
When scaling the height in addLayerFromImage, shouldn't the denominator be depth - 1?

@pfankhauser
Copy link
Member

Thanks for pointing this out, I think you are right. Is the issue that you experience that full black or white values are not exactly mapped to the specified lower/upper value? What do you think @martiwer?

@martiwer
Copy link
Contributor

Yes, I think the denominator should be depth - 1.

@pfankhauser
Copy link
Member

This has been resolved in #50.

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

3 participants