.bag file extraction and processing
I've got the.bag file and I'm going to use the depth and the color frame sequence, but first I'm going to align it, and then I'm going to use those frames, should I extract all the depth and color frames and align it?
-
Hello 1106569356,
Thank you for your interest in the Intel RealSense Technology.
Could you please be more specific in regards to your project? Alignment between RGB and Depth can be performed in RealSense Viewer, on 3D View, when selecting Texture Source: Intel RealSense * Color and after that saving the file as .ply.
Is this what you are looking to accomplish?
Thank you and best regards,
Eliza
-
Hello 1106569356,
How do you want to save the depth and color frames? What should be the format?
Intel RealSense SDK 2.0 has a tool named rs-convert which will save color and depth frames from a bag file as .png - https://github.com/IntelRealSense/librealsense/tree/master/tools/convert
Best regards,
Eliza
-
Hello 1106569356,
The rs-convert Tool can save the files as .ply, as you can see in the "Command Line Parameters" line. If you have recorded both depth and color streams in your bag file, the .ply file generated will be the alignment between them.
Please let me know if this works for your project!
Thank you,
Eliza
-
Hi Eliza,
Thank you very much for your help. It was very helpful to me.If the rs-convert.exe converted.ply file is aligned, I will attempt to use rs-convert.exe for my related processing.Except that if my.bag file takes about two minutes to record, the rs-convert.exe conversion to the.ply file is time consuming.
Thank you again for your answers to my repeated questions.
Thank you!
Nevyn_wong
-
Hi Eliza,
I saw that the aligned point cloud was a bunch of scattered points, not arranged according to the 640*480 of the image, and the number of points was not the same, and some points were missing.How do I get the original size color image and point cloud sequence?
Because I need the original size color image and point cloud frame sequence to do some processing.
Thank you !
Please sign in to leave a comment.
Comments
7 comments