Giter VIP home page Giter VIP logo

realsens_code_cpp's Introduction

RealSense SDK 2 Sample Program

I modified part of the Align sample code made by Tsukasa SUGIURA. The goal was to output RGB, depths, color depths, and the XYZ matrix in order to use the camera on a rover and detect obstacles or objects of interest. The issue with the raw output was that the depths frame is not aligned with the RGB frame. Also, once both aligned, depths frame would show holes inside. I used a smoothing function from the realsens library to fill these holes up.

The XYZ matrix link a pixel from the RGB frame to a position in space. I made this matrix using the dist_3d function from the intel real sens library. I only constructed this matrix for validation. It is not supposed to be used in real time as it may reduce highly the speed.

The XYZ matrix corresponds to a 3D RGB matrix with:

  • R = x distance in the x-direction with respect to the camera center.
  • G = y ...
  • B = z ...

To not show the XYZ matrix:

  • comment the drawXYW function
  • comment the showXYZ function

Reference

realsens_code_cpp's People

Contributors

airgross avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.