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

Preprocess Depth #1

Open
jzhzhang opened this issue Jun 17, 2022 · 0 comments
Open

Preprocess Depth #1

jzhzhang opened this issue Jun 17, 2022 · 0 comments

Comments

@jzhzhang
Copy link

jzhzhang commented Jun 17, 2022

Hi, thanks for sharing the amazing code.

I read the code carefully and find the depth part is weird. I know the range of depth from habitat-sim is from [0-1] with given min/max depth. But the code seems to not correctly transfer the depth to the actual range.

def _preprocess_depth(self, depth, min_d, max_d):

The pixel, e.g. in mask1, has an extremely large depth (>10000).

        depth[mask1] = 100.0
        depth = min_d * 100.0 + depth * max_d * 100.0

I hope my question is clear, and really appreciate any help.

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