|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hypermedia.video.Blob
public class Blob
A storage object containing a blob detected by OpenCV.
Returned by blobs()
method.
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 |
int[] |
pixels
A list of color int, containing the image pixels created by loadPixels() |
java.awt.Point[] |
points
The list of points defining the shape of the blob |
java.awt.Rectangle |
rectangle
The containing rectangle of the blob |
Constructor Summary | |
---|---|
protected |
Blob()
Create a new Blob with the default properties. |
protected |
Blob(float area,
float length,
java.awt.Point centroid,
java.awt.Rectangle rect,
java.awt.Point[] points,
boolean isHole)
Create a new Blob with the given properties. |
Method Summary | |
---|---|
processing.core.PImage |
image()
Returns blob's image as PImage. |
void |
loadPixels()
Generates an image from the current blob shape, using the current frame for pixel content. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public float area
public float length
public java.awt.Point centroid
public java.awt.Rectangle rectangle
public java.awt.Point[] points
public boolean isHole
public int[] pixels
loadPixels()
Constructor Detail |
---|
protected Blob()
protected Blob(float area, float length, java.awt.Point centroid, java.awt.Rectangle rect, java.awt.Point[] points, boolean isHole)
area
- the shape arealength
- the contour lengthcentroid
- the shape barycentre pointrect
- the shape rectanglepoints
- the contour pointsisHole
- true whether this blob is completly inside a bigger oneMethod Detail |
---|
public void loadPixels()
loadPixels()
call, pixels can by accessed via the pixels
variable.
This method should be called directly after the blob detection process to retrieve the correct data values.
! NOT YET IMPLEMENTED
pixels
public processing.core.PImage image()
! NOT IMPLEMENTED YET
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |