|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objects373.flob.Flob
public class Flob
flob is a flood-fill multi-blob detector,
tracks blobs in image streams,their centroids and bounding boxes
| Field Summary | |
|---|---|
int[] |
backgroundPixels
|
int |
blobpixmax
|
int |
blobpixmin
|
static int |
BLUE
|
static java.lang.String |
bluestr
|
int |
blur
|
int |
colormode
|
static int |
CONTINUOUS_DIFFERENCE
|
float |
continuous_ease
|
static int |
CONTINUOUS_EASE_DIFFERENCE
|
boolean |
coordsmode
|
static int |
GREEN
|
static java.lang.String |
greenstr
|
ImageBlobs |
imageblobs
|
static int |
LUMA601
|
static java.lang.String |
luma601str
|
static int |
LUMA709
|
static java.lang.String |
luma709str
|
static int |
LUMAUSER
|
float[] |
lumausercoefs
|
static java.lang.String |
lumausrstr
|
boolean |
mirrorX
|
boolean |
mirrorY
|
int |
numPixels
|
int |
om
|
int |
presence
|
int |
pvideotexmode
|
static int |
RED
|
static java.lang.String |
redstr
|
static int |
STATIC_DIFFERENCE
|
static int |
trackedBlobLifeTime
|
boolean[] |
trackfeatures
|
static java.lang.String |
VERSION
|
int |
videofade
|
processing.core.PImage |
videoimg
|
int |
videoresh
|
int |
videoresw
|
processing.core.PImage |
videotex
|
processing.core.PImage |
videotexbin
|
boolean |
videotexchange
|
processing.core.PImage |
videoteximgmotion
|
int |
videotexmode
|
processing.core.PImage |
videotexmotion
|
int |
videothresh
|
int |
worldheight
|
int |
worldwidth
|
| Constructor Summary | |
|---|---|
Flob(int srcW,
int srcH,
int dstW,
int dstH)
calling the constructor with a PApplet, srcWidth, srcHeight, dstWidth, dstHeight parameters inits the image vars yourWidth will be default coords return on flob for each blob's x pos, the same for height |
|
Flob(processing.core.PApplet theParent)
|
|
Flob(processing.core.PImage video,
int w,
int h)
calling the constructor with a PApplet, PImage, yourWidth, yourHeight parameters inits the image vars yourWidth will be default coords return on flob for each blob's x pos, the same for height |
|
Flob(processing.core.PImage video,
processing.core.PApplet theParent)
calling the constructor with a PApplet, PImage parameters inits the image vars |
|
| Method Summary | |
|---|---|
processing.core.PImage |
binarize(int[] pix)
|
processing.core.PImage |
binarize(processing.core.PImage video)
first pass of the flob engine. revised in version 001l to allow different color channel tracking. transforms the input image in a black and white only image (binary image). optionally insert a fastblur in the image. |
java.util.ArrayList<ABlob> |
calc(processing.core.PImage img)
calcs with current PImage. |
java.util.ArrayList<quadBlob> |
calcQuad(processing.core.PImage img)
calcs with current PImage. |
java.util.ArrayList<trackedBlob> |
calcsimple(processing.core.PImage img)
calcsimple is naive tracking. |
Flob |
easeBackground(processing.core.PImage video)
ease the background to compare to to this PImage |
processing.core.PImage |
fastblur(processing.core.PImage img,
int radius)
PImage img = fastblur(PImage img, int radius); Super Fast Blur v1.1 by Mario Klingemann http://incubator.quasimondo.com |
ABlob |
getABlob(int i)
getABlob returns the nth calc'ed blob of the tracker returns one ABlob element |
boolean |
getAnyFeatureActive()
getAnyFeatureActive true if any feature points on |
int[] |
getBackground()
gets the background image |
int |
getBlur()
get the blur amount on the image. |
int[] |
getBox(int i)
getBox int i. |
float[] |
getCentroid(int i)
getCentroid int i. |
float[] |
getCentroidPixelcount(int i)
getCentroidPixelcount int i. |
float[] |
getCentroids()
getCentroids. |
java.lang.String |
getColorMode()
get selected colormode |
boolean |
getCoordsMode()
get the coords mode for the blobs returns. |
float[] |
getDim(int i)
getDim int i. |
int |
getFade()
get the fade value to continuos_difference mode |
processing.core.PImage |
getImage()
getImage gets the current video image worked inside flob |
float[] |
getLumaUserCoefs()
get lumausercoefs |
int |
getMaxNumPixels()
get max numpixels to be considered a blob |
int |
getMinNumPixels()
get min numpixels to be considered a blob |
boolean[] |
getMirror()
get mirror in XY axis |
int |
getNumBlobs()
getNumBlobs. |
int |
getNumQuadBlobs()
|
int |
getNumTrackedBlobs()
|
int |
getNumTrackedSimpleBlobs()
|
int |
getOm()
get the om either CONTINUOUS_DIFFERENCE (1) or STATIC_DIFFERENCE (0) |
int |
getPresence()
getPresence. |
float |
getPresencef()
getPresencef. |
ABlob |
getPreviousABlob(int i)
getPreviousABlob returns the nth calc'ed previous blob of the tracker returns one ABlob element |
float[] |
getPreviousCentroids()
|
float[] |
getPreviousCurrentCentroid(int i)
getPreviousCurrentCentroid int i. |
float[] |
getPreviousCurrentCentroidMass(int i)
getPreviousCurrentCentroidMass int i. |
trackedBlob |
getPreviousTrackedBlob(int i)
getPreviousTrackedBlob returns the nth tracked previous blob of the tracker returns one trackedBlob element |
quadBlob |
getQuadBlob(int i)
|
float |
getSmooth()
get smooth of blob speeds |
processing.core.PImage |
getSrcImage()
returns the updated videotex (in case it needs updating) |
int |
getThresh()
get the threshold value to the image binarization |
trackedBlob |
getTrackedBlob(int i)
getTrackedBlob returns the nth tracked blob of the tracker returns the arraylist of trackedBlob elements a tracked blob holds: // pos & vel & dim results are local world coords // int tb.id; // float tb.cx; // float tb.cy; // float tb.velx; // float tb.vely; // float tb.prevelx; // float tb.prevely; // int tb.presencetime; // float tb.dimx; // float tb.dimy; // int tb.birthtime; |
float[] |
getTrackedBlobf(int i)
getTrackedBlobf returns the data of the nth tracked blob of the tracker as float[] returns the arraylist of trackedBlob elements |
int |
gettrackedBlobLifeTime()
get the max lifetime for a trackedblob |
float[] |
getTrackedSimpleBlob(int i)
|
boolean[] |
getTrackFeatures()
getTrackFeatures gets the boolean array with on/off's for searching feature points: armleft, armright, head, bottom for each blob |
float |
getTrackingMinDist()
get tracking min dist to be the same blob |
Flob |
mirrorX(boolean m)
mirror video data along X axis |
Flob |
mirrorY(boolean m)
mirror video data along Y axis |
Flob |
setBackground(processing.core.PImage video)
sets the background to compare to to this PImage |
Flob |
setBlur(int blur)
set the blur amount on the image. |
Flob |
setColorMode(int t)
set the colormode for the binarization stage. |
Flob |
setCoordsMode(boolean t)
set the coords mode for the blobs returns. |
Flob |
setFade(int t)
set the fade value to continuos_difference mode |
Flob |
setImage(int t)
setImage sets the videotex returned by flob.videotex or flob.getSrcImage |
Flob |
setLumaUserCoefs(float[] data)
set lumausercoefs |
Flob |
setMaxNumPixels(int t)
set max numpixels to be considered a blob |
Flob |
setMinNumPixels(int t)
set min numpixels to be considered a blob |
Flob |
setMirror(boolean m0,
boolean m1)
set mirror in XY axis with two booleans |
Flob |
setOm(int t)
set the om either CONTINUOUS_DIFFERENCE (1) or STATIC_DIFFERENCE (0) |
Flob |
setSmooth(float s)
set smooth of blob speeds |
Flob |
setSrcImage(int t)
setSrcImage sets the videotex returned by flob.videotex or flob.getSrcImage |
Flob |
setThresh(int t)
set the threshold value to the image binarization |
Flob |
settrackedBlobLifeTime(int t)
set the max lifetime for a trackedblob |
Flob |
setTrackFeatures(boolean[] tf)
setTrackFeatures turns on/off searching for feature points: armleft, armright, head, bottom for each blob |
Flob |
setTrackingMinDist(float s)
set tracking min dist to be the same blob |
Flob |
setTresh(int t)
set the threshold value to the image binarization. |
Flob |
setVideoTex(int t)
set the videotex returned by flob.videotex case 0: videotex = videoimg; break; case 1: videotex = videotexbin; break; case 2: videotex = videotexmotion; break; case 3: videotex = videoteximgmotion; break; |
boolean |
testPos(float x,
float y)
testPos float x, float y. |
boolean |
testPos(int x,
int y)
testPos int x, int y. |
java.util.ArrayList<trackedBlob> |
track(processing.core.PImage img)
calcs with current PImage. |
java.util.ArrayList<trackedBlob> |
tracksimple(processing.core.PImage img)
tracksimple is good tracking code, maintains id's, speed's, presencetime for each trackedBlob returns the arraylist of trackedBlob elements |
processing.core.PImage |
updateVideoTex()
|
java.lang.String |
version()
return the version of the library. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public ImageBlobs imageblobs
public processing.core.PImage videoimg
public processing.core.PImage videotex
public processing.core.PImage videotexmotion
public processing.core.PImage videotexbin
public processing.core.PImage videoteximgmotion
public int[] backgroundPixels
public int numPixels
public int videoresw
public int videoresh
public int presence
public int videotexmode
public int pvideotexmode
public boolean videotexchange
public int videothresh
public int videofade
public boolean mirrorX
public boolean mirrorY
public int worldwidth
public int worldheight
public boolean coordsmode
public int blur
public boolean[] trackfeatures
public int om
public static final int STATIC_DIFFERENCE
public static final int CONTINUOUS_DIFFERENCE
public static final int CONTINUOUS_EASE_DIFFERENCE
public float continuous_ease
public int colormode
public static final int RED
public static final int GREEN
public static final int BLUE
public static final int LUMA601
public static final int LUMA709
public static final int LUMAUSER
public float[] lumausercoefs
public int blobpixmin
public int blobpixmax
public static java.lang.String redstr
public static java.lang.String greenstr
public static java.lang.String bluestr
public static java.lang.String luma601str
public static java.lang.String luma709str
public static java.lang.String lumausrstr
public static int trackedBlobLifeTime
public static java.lang.String VERSION
| Constructor Detail |
|---|
public Flob(processing.core.PApplet theParent)
public Flob(processing.core.PImage video,
processing.core.PApplet theParent)
PApplet - , PImage
public Flob(processing.core.PImage video,
int w,
int h)
PImage - , width, height
public Flob(int srcW,
int srcH,
int dstW,
int dstH)
srcWidth - , srcHeight, dstWidth, dstHeight| Method Detail |
|---|
public processing.core.PImage binarize(int[] pix)
public processing.core.PImage binarize(processing.core.PImage video)
public processing.core.PImage getSrcImage()
public processing.core.PImage updateVideoTex()
public Flob setVideoTex(int t)
public Flob setImage(int t)
public processing.core.PImage getImage()
public Flob setSrcImage(int t)
public Flob setTrackFeatures(boolean[] tf)
public boolean[] getTrackFeatures()
public boolean getAnyFeatureActive()
public Flob setOm(int t)
public int getOm()
public Flob settrackedBlobLifeTime(int t)
public int gettrackedBlobLifeTime()
public Flob setCoordsMode(boolean t)
public boolean getCoordsMode()
public Flob setColorMode(int t)
public java.lang.String getColorMode()
public Flob setLumaUserCoefs(float[] data)
public float[] getLumaUserCoefs()
public Flob setBackground(processing.core.PImage video)
public Flob easeBackground(processing.core.PImage video)
public int[] getBackground()
public Flob setTresh(int t)
public Flob setThresh(int t)
public int getThresh()
public Flob setFade(int t)
public int getFade()
public Flob mirrorX(boolean m)
public Flob mirrorY(boolean m)
public Flob setMirror(boolean m0,
boolean m1)
public boolean[] getMirror()
public Flob setMinNumPixels(int t)
public Flob setMaxNumPixels(int t)
public int getMinNumPixels()
public int getMaxNumPixels()
public Flob setTrackingMinDist(float s)
public float getTrackingMinDist()
public Flob setSmooth(float s)
public float getSmooth()
public Flob setBlur(int blur)
public int getBlur()
public java.util.ArrayList<ABlob> calc(processing.core.PImage img)
public java.util.ArrayList<trackedBlob> track(processing.core.PImage img)
public java.util.ArrayList<trackedBlob> tracksimple(processing.core.PImage img)
public java.util.ArrayList<trackedBlob> calcsimple(processing.core.PImage img)
public java.util.ArrayList<quadBlob> calcQuad(processing.core.PImage img)
public trackedBlob getTrackedBlob(int i)
public trackedBlob getPreviousTrackedBlob(int i)
public ABlob getABlob(int i)
public quadBlob getQuadBlob(int i)
public ABlob getPreviousABlob(int i)
public float[] getTrackedSimpleBlob(int i)
public int getNumBlobs()
public int getNumTrackedBlobs()
public int getNumTrackedSimpleBlobs()
public int getNumQuadBlobs()
public float[] getTrackedBlobf(int i)
public int getPresence()
public float getPresencef()
public float[] getCentroids()
public float[] getPreviousCentroids()
public float[] getCentroid(int i)
public float[] getCentroidPixelcount(int i)
public float[] getPreviousCurrentCentroid(int i)
public float[] getPreviousCurrentCentroidMass(int i)
public float[] getDim(int i)
public int[] getBox(int i)
public boolean testPos(int x,
int y)
public boolean testPos(float x,
float y)
public processing.core.PImage fastblur(processing.core.PImage img,
int radius)
public java.lang.String version()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||