Code Monkey home page Code Monkey logo

concave_hull's Introduction

Concave hull generator

Description

This package can be used to create a concave hull from a set of points. These points can be in 2D or in 3D (not yet tested). Reference paper: FIXME - place title and link of paper here

Libraries/ Requirements

  • Python 3.6
  • numpy

Installation Guide

  1. pip install -r requirements.txt
  2. cd clone_dir
  3. pip install ./concave_hull

Main Functions

  1. compute for the concave hull (2D case - tested)
FIXME: what should be the main functions?

Scripts and Notebooks

  1. concave_test
Demonstration of the package's capabilities

Sample Usage

  1. Computing the concave hull of a set of 2D points
import concave_hull
"""
Generate set of data here. The package accepts a numpy array containing the data.

2D case - [nrow, 2] data format
3D case - [nrow, 3] data format

See concave_test notebook for sample toy data
"""
save_dir = 'dir_you_want_to_save_plots_for_debugging'
test = concave_hull.ConcHuller(1, data_2d, debug = True, savedir = save_dir)
# note that you only set debug to true and savedir to something valid if you want to debug (duhh)
test.compute_hull()
  1. Computing the concave hull of a set of 3D points
import concave_hull
"""
Generate set of data here. The package accepts a numpy array containing the data.

2D case - [nrow, 2] data format
3D case - [nrow, 3] data format

See concave_test notebook for sample toy data
"""
save_dir = 'dir_you_want_to_save_plots_for_debugging'
test = concave_hull.ConcHuller(1, data_3d)
# debug option is not yet available for 3D
test.compute_hull()

Test data

Please see concave_test notebook

concave_hull's People

Contributors

jcgraciosa avatar

Watchers

 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.