image_pipeline icon indicating copy to clipboard operation
image_pipeline copied to clipboard

924 introduce default depth param

Open PhilippPolterauer opened this issue 1 year ago • 2 comments

this pull request attempts to fix #924

changes:

  • [x] changed the argument name range_max which was missleading to invalid_depth which captures the true meaning of the paramter
  • [x] Introduction of a parameter called invalid_depth, which is the value that will be assigned to points that are not valid according to DepthTraits<T>::valid
  • [x] small fixes regarding use of non const shared ptr references
  • [x] changed for loop from int to uint32_t avoiding many type casts

Open:

  • [ ] UB when reinterpret casting the pointcloud data?
  • [ ] introduction of a true "max_depth" or "max_range" paramter

Comment: i think the term range and depth is not always used consistently, my understanding is range meaning point to point distance, and depth point to camera plane distance

PhilippPolterauer avatar Feb 17 '24 11:02 PhilippPolterauer

in the meantime i further research the UB topic, and after watching Video i am now fairly certain, that most use of reinterpret_cast is actually UB. Should i raise a new issue dedicated to this?

PhilippPolterauer avatar Feb 18 '24 10:02 PhilippPolterauer

Yeah, go ahead and open a new issue where we can further investigate the reinterpret_cast

mikeferguson avatar Feb 18 '24 22:02 mikeferguson

Thanks for the feedback. As soon as i have time, i will implement the changes.

PhilippPolterauer avatar Feb 19 '24 09:02 PhilippPolterauer

  • [x] added invalid_depth to parameter description in the docs
  • [x] removed comment
  • [x] added the invalid_depth to the other non radial nodes as well.

If there is something more to do, please let me know!

PhilippPolterauer avatar Feb 20 '24 18:02 PhilippPolterauer

This looks good - thanks for the contribution - just waiting on the final CI to pass

mikeferguson avatar Feb 20 '24 19:02 mikeferguson

i just clicked update branch which i think was a mistake, since now the ci is waiting again. sorry for the confusion :)

PhilippPolterauer avatar Feb 20 '24 19:02 PhilippPolterauer