Imp
[using it]
Interface Manipulation Package v4.0 (2008-06-25) a-projector ©copyright Author


imp.ima.util
Class Momenta.Blob

java.lang.Object
  extended by imp.ima.util.Momenta
      extended by imp.ima.util.Momenta.Blob
Enclosing class:
Momenta

public static class Momenta.Blob
extends Momenta

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

Momenta.Blob

public Momenta.Blob(int[] val,
                    int width,
                    int height,
                    int threshold)
Constructs a blob.

Parameters:
val - Image pixels buffer.
width - Image width.
height - Image height.
threshold - Image blue channel threshold.
Method Detail

contains

public boolean contains(int i,
                        int j)
Tests if a pixel is in this blob.


erode

public void erode()
Clears all points in the RGB buffer, except the center the blob.


erodeAll

public void erodeAll()
Clears all points in the RGB buffer, except one point for each blob center.


set

public void set(int i,
                int j)
Sets the blob at the (i, j) location.