GithubHelp home page GithubHelp logo

perklab / depthimagetopointcloud Goto Github PK

View Code? Open in Web Editor NEW
3.0 6.0 0.0 58 KB

This repo contains a slicer module for generating point clouds from static or streamed depth images.

CMake 16.00% Python 84.00%

depthimagetopointcloud's Introduction

DepthImageToPointCloud

This repo contains a slicer module for generating point clouds from static or streamed depth images.

Note that depth images can be streamed into 3D Slicer using the PLUS toolkit.

Determining Intel RealSense Intrinsic Parameters

This module requires the focal length and principle point (x and y coordinates) of the depth camera. To determine these values for the Intel RealSense, you can use the rs-sensor-control.exe tool included in the Intel RealSense SDK 2.0.

To use rs-sensor-control.exe:

  1. Start by installing the SDK.
  2. Navigate to the installation folder, open the "tools" folder and run "rs-sensor-control.exe"(on Windows 10, the full path was "C:\Program Files (x86)\Intel RealSense SDK 2.0\tools\rs-sensor-control.exe").
  3. Ensure the camera is connected, and select the correct device number from the first menu.
  4. Input 0 for "Stereo Module" from the next menu, then input 2 for "Show stream instrinsics".
  5. From the list of stream profiles, select the Depth stream that corresponds with the resolution and framerate you intend to use with the module.

Note that this module assumes the focal length is identical in the x and y axes.

Point Cloud Parameters

  • Lower / Upper Depth Threshold: Limits the maximum / minimum depth values; pixels that fall outside these bounds will not be included in the point cloud.

  • Depth Scaling Factor: Used to increase or decrease the scale of the resulting point cloud.

  • Point Cloud Density: Used to modify the proportion of pixels included in the generated point cloud.

    • Default value is 1, which produces a single point for all pixels in the depth image
    • Increasing this value will decrease the density of the point cloud; this will improve the refresh rate for streaming.

depthimagetopointcloud's People

Contributors

coltonbarr avatar lassoan avatar markasselin avatar sunderlandkyl avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

depthimagetopointcloud's Issues

I can not connect the realsense?

<Device
  Id="VideoDevice"
  Type="IntelRealSense"
  UseRealSenseColorizer="TRUE"
  AlignDepthStream="TRUE">
  <DataSources>
    <DataSource Type="Video" Id="VideoRGB" FrameType="RGB" FrameSize="640 480" FrameRate="10" PortUsImageOrientation="UN" />
    <DataSource Type="Video" Id="VideoDEPTH" FrameType="DEPTH" FrameSize="640 480" FrameRate="10" PortUsImageOrientation="UN" />
  </DataSources>
  <OutputChannels>
    <OutputChannel Id="VideoStreamRGB" VideoDataSourceId="VideoRGB" />
    <OutputChannel Id="VideoStreamDEPTH" VideoDataSourceId="VideoDEPTH" />
  </OutputChannels>
</Device>




















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.