![]() | [using it] | Interface Manipulation Package v4.0 (2008-06-25) | ![]() | ©copyright | ![]() |
java.lang.Objectimp.ima.util.Momenta
imp.ima.util.Momenta.Blob
public static class Momenta.Blob
Defines these momenta from a blob from an image, a region with the blue channel above a threshold.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class imp.ima.util.Momenta |
---|
Momenta.Blob, Momenta.Filter |
Field Summary |
---|
Fields inherited from class imp.ima.util.Momenta |
---|
abscissa, bounds, g, L, m, M, n, ordinates, size, theta |
Constructor Summary | |
---|---|
Momenta.Blob(int[] val,
int width,
int height,
int threshold)
Constructs a blob. |
Method Summary | |
---|---|
boolean |
contains(int i,
int j)
Tests if a pixel is in this blob. |
void |
erode()
Clears all points in the RGB buffer, except the center the blob. |
void |
erodeAll()
Clears all points in the RGB buffer, except one point for each blob center. |
void |
set(int i,
int j)
Sets the blob at the (i, j) location. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Momenta.Blob(int[] val, int width, int height, int threshold)
val
- Image pixels buffer.width
- Image width.height
- Image height.threshold
- Image blue channel threshold.Method Detail |
---|
public boolean contains(int i, int j)
public void erode()
public void erodeAll()
public void set(int i, int j)