diewald_CV_kit.blobdetection
Interface BLOBable


public interface BLOBable

the interface Blobable can be seen as a "function pointer".
the method "isBLOBable()" is called for each pixel of an image, to check if it belongs to a blob or not.
so this should be a convenient way, to make your own conditions for blobs.

Author:
thomas diewald (c) 2011

Method Summary
 void init()
          init() is called when assigning a BLOBable-instance to a blobdetection.
 boolean isBLOBable(int pixel_index, int x, int y)
          checks the current pixel-index for beeing part of the blob or not.
 void updateOnFrame(int width, int height)
          updateOnFrame() is called every time, before the blobdetection starts to analyse.
 

Method Detail

isBLOBable

boolean isBLOBable(int pixel_index,
                   int x,
                   int y)
checks the current pixel-index for beeing part of the blob or not. isBLOBable() is called for every pixel!

Parameters:
pixel_index - the current pixelindex which is checked.
x - current x-position of the detection (column).
y - current x-position of the detection (row).
Returns:
true, if the pixel is part of the blob. false if not.

updateOnFrame

void updateOnFrame(int width,
                   int height)
updateOnFrame() is called every time, before the blobdetection starts to analyse.

Parameters:
width - width of the whole frame (video, image, etc.)
height - height of the whole frame (video, image, etc.)

init

void init()
init() is called when assigning a BLOBable-instance to a blobdetection.



Processing library diewald_CV_kit by Thomas Diewald. (C) 2012