gab.opencv
Class Contour

java.lang.Object
  extended by gab.opencv.Contour

public class Contour
extends Object


Field Summary
 MatOfPoint pointMat
           
 
Constructor Summary
Contour(PApplet parent, MatOfPoint mat)
           
Contour(PApplet parent, MatOfPoint2f mat)
           
 
Method Summary
 float area()
           
 void draw()
           
 Rectangle getBoundingBox()
           
 Contour getConvexHull()
           
 ArrayList<PVector> getPoints()
           
 Contour getPolygonApproximation()
           
 double getPolygonApproximationFactor()
           
 void loadPoints(Point[] pts)
           
 int numPoints()
           
 void setPolygonApproximationFactor(double polygonApproximationFactor)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pointMat

public MatOfPoint pointMat
Constructor Detail

Contour

public Contour(PApplet parent,
               MatOfPoint mat)

Contour

public Contour(PApplet parent,
               MatOfPoint2f mat)
Method Detail

loadPoints

public void loadPoints(Point[] pts)

setPolygonApproximationFactor

public void setPolygonApproximationFactor(double polygonApproximationFactor)

getPolygonApproximationFactor

public double getPolygonApproximationFactor()

getPolygonApproximation

public Contour getPolygonApproximation()

getConvexHull

public Contour getConvexHull()

draw

public void draw()

getPoints

public ArrayList<PVector> getPoints()

numPoints

public int numPoints()

getBoundingBox

public Rectangle getBoundingBox()

area

public float area()


Processing library opencv_processing by Greg Borenstein. (c) 2013