|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiewald_CV_kit.blobdetection.BlobDetector
public final class BlobDetector
BlobDetector is the main entry class of the library.
it computates the blobs/regions/labels, and their contours found in an image/video/etc., based on the condition-interface (BLOBable).
Constructor Summary | |
---|---|
BlobDetector(int width,
int height)
define dimensions of the blob-detection. |
Method Summary | |
---|---|
void |
computeBlobPixels(boolean compute_blob_pixels)
if computeBlobPixels(true) is called, the library generates a new pixelarray for each detected blob, after each update. |
void |
computeContours(boolean compute_contours)
defines, whether the the contours (outer and inner ones) of each blob are generated. |
ArrayList<Blob> |
getBlobs()
getBlobs() returns the detected blobs after each update(). |
BoundingBox |
getDetectingArea()
returns the boundingsbox, which defines the detection-area (by reference). |
Pixel[][] |
getPixels()
getPixels() returns an 2-d array of pixels. |
void |
setBLOBable(BLOBable blobable)
set the condition (BLOBable) that defines, which pixels are part of a blob. |
void |
setDetectingArea(BoundingBox bb)
set a bounding-box to define the detection-area (by reference). |
void |
setMinMaxPixels(int min_blob_pixels,
int max_blob_pixels)
define the minimum/maximum number of pixels a blob can have. |
void |
setResolution(int pixel_jump)
defines, how many pixels are skipped on each detection. |
boolean |
update()
generate blobs/contours/etc. depending on the previous settings. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BlobDetector(int width, int height)
width
- width of the frameheight
- height of the frameMethod Detail |
---|
public final boolean update()
public final void setDetectingArea(BoundingBox bb)
bb
- bounding-box.public final BoundingBox getDetectingArea()
public final void setBLOBable(BLOBable blobable)
blobable
- the conditionpublic final void setResolution(int pixel_jump)
pixel_jump
- public final void setMinMaxPixels(int min_blob_pixels, int max_blob_pixels)
min_blob_pixels
- minimum number of pixelsmax_blob_pixels
- maximum number of pixelspublic final void computeContours(boolean compute_contours)
compute_contours
- public final void computeBlobPixels(boolean compute_blob_pixels)
compute_blob_pixels
- public final ArrayList<Blob> getBlobs()
public final Pixel[][] getPixels()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |