public class BooleanImage
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
(package private) int |
height |
(package private) boolean[] |
pixels |
(package private) int |
width |
Constructor and Description |
---|
BooleanImage(int width,
int height)
Creates a background image.
|
BooleanImage(int width,
int height,
boolean[] pixels)
Creates a BooleanImage from a binary pixel array.
|
Modifier and Type | Method and Description |
---|---|
void |
and(BooleanImage imp)
Unary intersection operator.
|
protected BooleanImage |
clone() |
BooleanImage |
duplicate()
Returns a deep copy of BooleanImage object.
|
ij.process.ByteProcessor |
getByteProcessor()
Returns a 8-bit grayscale image.
|
int |
getHeight()
Returns the height of the image.
|
boolean[] |
getPixels()
Returns the binary pixel array.
|
int |
getWidth()
Returns the width of the image.
|
void |
not(BooleanImage imp)
Unary subtraction operator.
|
void |
or(BooleanImage imp)
Unary union operator.
|
void |
remove(BaseBlob blob)
Sets to background covered area of blob.
|
void |
xor(BooleanImage imp)
Unary 'exclusive or' operator.
|
public BooleanImage(int width, int height)
width
- image widthheight
- image heightpublic BooleanImage(int width, int height, boolean[] pixels)
width
- image widthheight
- image heightpixels
- binary pixel arraypublic int getWidth()
public int getHeight()
public boolean[] getPixels()
public ij.process.ByteProcessor getByteProcessor()
public void remove(BaseBlob blob)
blob
- protected BooleanImage clone()
clone
in class java.lang.Object
public BooleanImage duplicate()
public void and(BooleanImage imp)
imp
- public void or(BooleanImage imp)
imp
- public void not(BooleanImage imp)
imp
- public void xor(BooleanImage imp)
imp
-