GithubHelp home page GithubHelp logo

iindovina / pyntcloud Goto Github PK

View Code? Open in Web Editor NEW

This project forked from daavoo/pyntcloud

0.0 1.0 0.0 11.68 MB

pyntcloud is a Python library for working with 3D point clouds.

Home Page: http://pyntcloud.readthedocs.io

License: Other

Python 76.84% JavaScript 17.91% HTML 5.25%

pyntcloud's Introduction

Making point clouds fun again

Travis Build Status

/docs/images/pyntcloud_logo.png

pyntcloud is a Python (3, because we are not in 2008) library for working with 3D point clouds.

Documentation

๐Ÿ“– ๐Ÿ“–

Home
Introduction
Basic Installation
Setting up a Jupyter Enviroment
PyntCloud
Points
Filters // Filters - Dev
I/O // I/O - Dev
Samplers // Samplers - Dev

Overview

Concise API

You can access most of pyntcloud's functionallity from it's core class: PyntCloud.

With PyntCloud you can penform complex 3D processing operations with minimum lines of code. For example you can:

  • Load a point cloud from disk.
  • Add 3 new sacalar fields by converting RGB to HSV.
  • Build a grid of voxels from the point cloud.
  • Build a new point cloud keeping only the nearest point to each occupied voxel center.
  • Save the new point cloud.

With the following concise code:

from pyntcloud import PyntCloud

cloud = PyntCloud.from_file("some_file.ply")

cloud.add_scalar_field("hsv")

voxelgrid_id = cloud.add_structure("voxelgrid", x_y_z=[32, 32, 32])

points = cloud.get_sample("voxelgrid_nearest", voxelgrid=voxelgrid_id)

new_cloud = PyntCloud(points)

new_cloud.to_file("out_file.ply")

Lightweigth visualizer

Every PyntCloud can be visualized using the plot method.

This will create a stand-alone html visualizer. The cool thing about this is that you can open it in any browser and if you call it from inside a Jupyter Notebook, the visualizer will be embedded as an IFrame:

/docs/images/plot1.gif

The plot function has many options.

For example you can use any scalar field as color with a custom colormap:

/docs/images/plot2.gif

Or, if it exists, visualize the mesh associated with the point cloud:

/docs/images/plot3.gif

General pourpuse

Even though point clouds obtained from different sources present some variance in terms of the kind of information it contains, we encourage a source-agnostic vision of point clouds.

pyntcloud provides tools for source-agnostic 3D processing operations but it also provides building blocks for easily implementing something that covers your specific needs.

Easy to use and extend

Because Python.

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.