stereolabs / zed-sdk

⚡️The spatial perception framework for rapidly building smart robots and spaces
https://stereolabs.com
MIT License
788 stars 458 forks source link

Depth Colorization #520

Open AlexanderKhazatsky opened 1 year ago

AlexanderKhazatsky commented 1 year ago

Preliminary Checks

Proposal

I would like a built in procedure for turning depth readings into a color map. This is a useful feature on its own, but it also makes compression much easier. Ideally, this transformation would also be invertible as to recover the depth readings for a point cloud creation :)

Use-Case

No response

Anything else?

No response

P-yver commented 10 months ago

Hi, actually you can retrieve the depth as Usigned short, MEASURE::DEPTH_U16_MM. Then you can save it as png file (the depth is stored in millimeter as unsigned short). Do you have example of your proposed format ?