|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.grelf.image.ByteMask
public class ByteMask
holding a byte array, eg for use as a binary mask over an image, in segmentation.
| Field Summary | |
|---|---|
protected byte[][] |
data
|
static byte |
MASK_CLEAR
|
static byte |
MASK_SET
For the blob detection mechanism to work, thresholding/segmentation must set value 3 at all detected pixels and 0 at all others. |
| Constructor Summary | |
|---|---|
ByteMask(byte[][] mask)
Construct with a reference to an external byte array. |
|
ByteMask(int width,
int height)
Construct an empty mask of the given dimensions. |
|
| Method Summary | |
|---|---|
void |
dilate()
Operation on mask. |
void |
erode()
Operation on mask. |
byte[][] |
getData()
Get a reference to the mask array itself. |
void |
setData(byte[][] aMask)
Set the mask array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final byte MASK_SET
public static final byte MASK_CLEAR
protected byte[][] data
| Constructor Detail |
|---|
public ByteMask(int width,
int height)
public ByteMask(byte[][] mask)
| Method Detail |
|---|
public byte[][] getData()
public void setData(byte[][] aMask)
public void dilate()
public void erode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||