Items with no label
3338 ディスカッション

convert depth image to point cloud

fwang22
ビギナー
14,042件の閲覧回数

How to convert depth frame to point cloud using Matlab? I know one way is if we know the camera parameters,we can obtain point cloud .But what are the parameters ?or Is there any other way to do it in Matlab?

0 件の賞賛
51 返答(返信)
fwang22
ビギナー
1,268件の閲覧回数

Hello MartyG,

when I run the rs-convert.exe .there has an error,

the rs-convert.exe was build from version 2.16.1,but I don't know how to solve it.

MartyG
名誉コントリビューター III
1,268件の閲覧回数

I haven't encountered this particular error with the convert tool, but there was a previous case where there was problems with it. This related to the path instructions provided to the program.

Looking at your image, I would recommend trying one conversion at a time, instead of both -i and -l. For example, to convert the bag to ply:

rs-convert.exe -l F:\pointcloud\pointcloud\samples\expression\4\anger

fwang22
ビギナー
1,268件の閲覧回数

Hello MartyG,

I installed SDK version 2.16.1, and I use the version 2.16.1 source code to build rs-convert.exe, but the same error was showed as above, I want to know Rosbag fixes were added in RealSense SDK version 2.16.1.,Do I need to rebuild rs-convert.exe to obtain full frames by version 2.16.1 source code ?

MartyG
名誉コントリビューター III
1,268件の閲覧回数

As the rs-convert tool's source code is separate from the SDK package, you likely do not have to recompile it when upgrading SDK version.

fwang22
ビギナー
1,268件の閲覧回数

In other words, the problem of missing frames has been solved in new SDK, we don't need to recompile re-convert to convert the .bag files.

MartyG
名誉コントリビューター III
1,268件の閲覧回数

I suggest giving it a try and letting us know what the results are in 2.16.1. Thanks!

fwang22
ビギナー
1,268件の閲覧回数

I tried some data and the results were as follows:

Some samples lose frames,most do not.

MartyG
名誉コントリビューター III
1,268件の閲覧回数

Thanks for the quick response. Are you satisfied with these results, please?

fwang22
ビギナー
1,268件の閲覧回数

unfortunately, when I change the viewer resolution and FPS, the results are not satisfied.

the resolution is 848*480, FPS is 60.

MartyG
名誉コントリビューター III
1,268件の閲覧回数

I would recommend posting your results on the open discussion about rs-convert frame drop problems on the GitHub.

https://github.com/IntelRealSense/librealsense/issues/1919 problems in rs_convert · Issue # 1919 · IntelRealSense/librealsense · GitHub

返信