LiangliangNan / Easy3D

A lightweight, easy-to-use, and efficient C++ library for processing and rendering 3D data
GNU General Public License v3.0
1.36k stars 245 forks source link

Depth image problem #11

Closed LittleByLittle2 closed 5 years ago

LittleByLittle2 commented 5 years ago

Hi Liangliang,

Is there any interface of your framework can produce rendering depth image from point cloud and camera intrinsic and camera pose?

The input is camera intrinsic, camera pose and point cloud (only XYZ), and the output is the depth image (the width and height are the same as camera image, and there is depth value of some of these pixels)

Best, Yu

LiangliangNan commented 5 years ago

I will add this in the near future. You can also do this by computing a scalar field (the depth values) and assign black-to-white colors to the points.

On Wed, 24 Apr 2019 at 01:54 Yu Chen notifications@github.com wrote:

Hi Liangliang,

Is there any interface of your framework can produce rendering depth image from point cloud and camera intrinsic and camera pose?

The input is camera intrinsic, camera pose and point cloud (only XYZ), and the output is the depth image (the width and height are the same as camera image, and there is depth value of some of these pixels)

Best, Yu

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/LiangliangNan/Easy3D/issues/11, or mute the thread https://github.com/notifications/unsubscribe-auth/ADWOVCF6VOBD7ZSARGVV2E3PR6OURANCNFSM4HH7IJEQ .

-- Liangliang

LittleByLittle2 commented 5 years ago

I will add this in the near future. You can also do this by computing a scalar field (the depth values) and assign black-to-white colors to the points. On Wed, 24 Apr 2019 at 01:54 Yu Chen @.***> wrote: Hi Liangliang, Is there any interface of your framework can produce rendering depth image from point cloud and camera intrinsic and camera pose? The input is camera intrinsic, camera pose and point cloud (only XYZ), and the output is the depth image (the width and height are the same as camera image, and there is depth value of some of these pixels) Best, Yu — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#11>, or mute the thread https://github.com/notifications/unsubscribe-auth/ADWOVCF6VOBD7ZSARGVV2E3PR6OURANCNFSM4HH7IJEQ . -- Liangliang

What kind of knowledge do I need to add this? I am not familiar with OpenGL.

LiangliangNan commented 5 years ago

To make it easier, you can look at the following examples:

LiangliangNan commented 5 years ago

@LittleByLittle2 I added an example rendering 3D models as depth images. See Tutorial_305_DepthImage