View my account

D415 - Crop images / reduce FOV for closer range?

Comments

3 comments

  • MartyG

    Another Python user recently asked the same question.  It is somewhat difficult but may be possible by creating a 'bounding box' and then occluding data outside of that bounding box, as described in the link below.

    https://github.com/IntelRealSense/librealsense/issues/2016#issuecomment-403804157 

    The linked example is for a point cloud and so may not be directly adaptable if you are using a 2D image.  It is the best reference I know of though for demonstrating the viability of using a bounding box for cropping the image.

    0
    Comment actions Permalink
  • Janderwolf

    Thank you, but the other post unfortunately does not solve my problem, the image is cropped only in Z direction and after it comes out of the cameras internal processing, whereas I need cropping in X and Y BEFORE depth reconstruction

    0
    Comment actions Permalink
  • MartyG

    The bounding box discussed in the linked post crops the image not only in Z depth but in X and Y too.  In that particular case, the user found though that they didn't need to crop the XY of the image after all and could manage with min and max Z depth-clamp values.

    The link below has another possible method for cropping a RealSense image by manipulating the XYZ coordinates manually.

    https://github.com/IntelRealSense/librealsense/issues/3894#issuecomment-491714494

    To be honest, the difficulty of this task means that it may be better to stick with reducing the camera's minimum distance by the methods you are already using (disparity shift or reducing resolution).

    0
    Comment actions Permalink

Please sign in to leave a comment.