sj.opencv
Class Blob

java.lang.Object
  extended by sj.opencv.Blob

public class Blob
extends java.lang.Object

A storage object containing a blob detected by OpenCV. Returned by blobs() method.

See Also:
OpenCV#blobs( int, int, int, boolean ), OpenCV#blobs( int, int, int, boolean, int )

Field Summary
 float area
          The area of the blob in pixels
 java.awt.Point centroid
          The centroid or barycenter of the blob
 boolean isHole
          Is this blob a hole inside of another blob?
 float length
          The length of the perimeter in pixels
 float major_axis_angle
          The angle of the axis of the first moment of the blob
 float major_axis_length
          Length of the axis of the first moment of the blob
 float minor_axis_length
          Length of the axis of the second moment of the blob
 java.awt.Point[] points
          The list of points defining the shape of the blob
 java.awt.Rectangle rectangle
          The containing rectangle of the blob
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

area

public float area
The area of the blob in pixels


length

public float length
The length of the perimeter in pixels


centroid

public java.awt.Point centroid
The centroid or barycenter of the blob


rectangle

public java.awt.Rectangle rectangle
The containing rectangle of the blob


points

public java.awt.Point[] points
The list of points defining the shape of the blob


isHole

public boolean isHole
Is this blob a hole inside of another blob?


major_axis_length

public float major_axis_length
Length of the axis of the first moment of the blob


minor_axis_length

public float minor_axis_length
Length of the axis of the second moment of the blob


major_axis_angle

public float major_axis_angle
The angle of the axis of the first moment of the blob