Giter Club home page Giter Club logo

beziercurve_matlab's Introduction

Bezier Curves

A matlab package for ND bezier curves operations

A bezier curve is parametrized by controlPts - which is [N x dim] for N control points of dimension dim. Note that we use matlab matrix ordering, so the first dimension will be treated as 'y' in the 2D case.

Current function support:

  • bezier.eval evaluate the curve at many points
  • bezier.draw draw the curve in a image or volume
  • bezier.view visualize 2D or 3D bezier curves (even multiple curves in the same figure)
  • bezier.explore explore 2D bezier curves interactively

Papers

If you find this code useful, please cite the following paper, for which the code was developed:

Adrian V. Dalca, Giovanna Danagoulian, Ron Kikinis, Ehud Schmidt, Polina Golland
Segmentation of nerve bundles and ganglia in spine MRI using particle filters
MICCAI 2011

@inproceedings{dalca2011segmentation,
  title={Segmentation of nerve bundles and ganglia in spine MRI using particle filters},
  author={Dalca, Adrian and Danagoulian, Giovanna and Kikinis, Ron and Schmidt, Ehud and Golland, Polina},
  booktitle={International Conference on Medical Image Computing and Computer-Assisted Intervention},
  pages={537--545},
  year={2011},
  organization={Springer}
}

Usage

Each method has several helpful options, run help +bezier for more help.
Run beziertest for thorough examples and to see the extent of possibilities.

Usage - Quick Start

For quick use try the following:

  • plot of a 2D bezier curve:
t = bezier.eval([1, 2; 5, 5; 7, 4]);
plot(t(:, 1), t(:, 2));

github:can't display screenshot

  • draw a 2D bezier curve in an image:
vol = bezier.draw([1, 2; 50, 50; 70, 40]);
imagesc(vol); colormap gray;

github:can't display screenshot

  • visualize a 2D curve directly:
bezier.view([1, 2; 70, 70; 70, 130]);

github:can't display screenshot

  • visualize a 3D curve directly:
bezier.view([1, 2, 7; 5, 5, 9; 9, 9, 9]);

github:can't display screenshot

  • explore the curves:
bezier.explore;

github:can't display screenshot

Contact

Adrian Dalca

beziercurve_matlab's People

Contributors

adalca 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.