View my account

The alignment produces some deviation

Comments

14 comments

  • MartyG

    The effect reminds me of colored point clouds taken of faces with the Kinect camera several years ago, which could generate some really unusual  results.  

    "Why is my face slanted??"

     

    If you try the scan without depth alignment to color but with post-processing, and then with post-processing but without depth alignment, it may help identify which of the two could be having this effect on the image (if they are responsible).  My guess would be that it is the depth alignment to color.

    0
    Comment actions Permalink
  • 1106569356

    The image above is the point cloud reconstruction result of depth alignment to color. The lines of the face are generated during the alignment process. How to eliminate them?One of the questions I asked earlier said that export_to_ply is exported. The ply file is depth and color aligned, so I don't have to do the alignment at the front?

    0
    Comment actions Permalink
  • MartyG

    Similar marks to the thick vertical line on your image got rendered onto a model in Kinect scans too.  The camera would pick up a detail on the face and translate it into"scars".  Like in the image below:

     

    In that particular case, the user removed the lines simply by repeating the scan, and they did not appear on the next attempt.  So maybe you could try the point cloud scan again and see if it gets rendered again.

    To me, the line on your image just looks like the edge detail on the face was captured in a less than ideal way on that particular scan.   It might disappear if you turn your head's angle a bit differently when taking the capture.

    0
    Comment actions Permalink
  • 1106569356

    I saw that some of the alignment was done with different resolution of depth and color. My depth and color resolution are the same, so their pixel positions are offset and need to be aligned.

    Also, how to find the position of the color image in the point cloud should also be done with the premise of alignment, right?

    0
    Comment actions Permalink
  • MartyG

    Earlier this week, using an instruction called rs2_project_color_pixel_to_depth_pixel to project the color pixels to depth pixels was discussed.

    https://support.intelrealsense.com/hc/en-us/community/posts/360033741013/comments/360008664753

    0
    Comment actions Permalink
  • 1106569356

    I know the problem, but does the depth frame have to be aligned with the color frame to find the dot ply that corresponds to the color position?Because this.ply is obtained by export_to_ply.

    0
    Comment actions Permalink
  • MartyG

    Using a ply export sample program to generate the ply and having misalignment result has been reported by somebody else.  If they exported the ply from the RealSense Viewer then the misalignment was not present.

    https://github.com/IntelRealSense/librealsense/issues/2526#issuecomment-429627236

    I think one of the Intel support team members on this forum may be able to provide input about how to move forward from here if you want to achieve better ply results with scripting.

    I see you have already posted this question on the GitHub too, so the team there may also be able to offer input.

    https://github.com/IntelRealSense/librealsense/issues/4644

    0
    Comment actions Permalink
  • MartyG

    Unless you really need to automate the export process with scripting, you can also align a 3D point cloud's color with depth in the RealSense Viewer using the instructions in the link below.

    https://forums.intel.com/s/question/0D70P000006AebbSAC

    0
    Comment actions Permalink
  • 1106569356

    Thanks for your prompt reply. I still have a question that is exported. ply is unaligned.Can the points in the color image be found corresponding to this .ply?Can deproject be completed?

    Thank you very much for your help. I have learned a lot.

    Best Regards!

    0
    Comment actions Permalink
  • MartyG

    The link below gives some advice from a RealSense team member on exporting texture with a ply using scripting.

    https://github.com/IntelRealSense/librealsense/issues/2100#issuecomment-409083580

    0
    Comment actions Permalink
  • 1106569356

    Actually, what I'm asking is, given the position of the color pixels, and ply is an unaligned color depth, how do I find the point on the color image corresponding to the point on the cloud?

    0
    Comment actions Permalink
  • 0
    Comment actions Permalink
  • 1106569356

    Thank you very much for your help. It means a lot to me. Thank you very much.

    0
    Comment actions Permalink
  • MartyG

    You are very welcome.   I'm glad that I could be of help to you!

    0
    Comment actions Permalink

Please sign in to leave a comment.