diewald_CV_kit.blobdetection
Class Contour

java.lang.Object
  extended by diewald_CV_kit.blobdetection.Contour

public final class Contour
extends Object

the class Contour calculates a closed polyline of a blob.
a blob can have only ONE outer contour, and endless inner contours.
for example the letter "B" as an image, would have one outer contour, and two inner contours.

Author:
thomas diewald (c) 2011

Method Summary
 boolean clockWise()
          returns true if the contour has clockwise-rotation.
 BoundingBox getBoundingBox()
          returns the bounding-box of the contour.
 ArrayList<Pixel> getPixels()
          returns a list of contour-pixels.
 int ID()
          returns the ID of the contour.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPixels

public final ArrayList<Pixel> getPixels()
returns a list of contour-pixels.

Returns:
a list of contour-pixels.

getBoundingBox

public final BoundingBox getBoundingBox()
returns the bounding-box of the contour.

Returns:
the bounding-box of the contour.

clockWise

public final boolean clockWise()
returns true if the contour has clockwise-rotation.

Returns:
true if the contour has clockwise-rotation.

ID

public final int ID()
returns the ID of the contour.

Returns:
the ID of the contour.


Processing library diewald_CV_kit by Thomas Diewald. (C) 2012