Contour (Javadocs: diewald_CV_kit)

Overview | Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## diewald_CV_kit.blobdetection
Class Contour

    java.lang.Object
      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.

Overview | Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Processing library diewald_CV_kit by Thomas Diewald. (C) 2012