marvin.image
Class MarvinImageMask
java.lang.Object
marvin.image.MarvinImageMask
public class MarvinImageMask
- extends java.lang.Object
Mask indicating what pixels must be processed.
|
Method Summary |
void |
addRectRegion(int startX,
int startY,
int regionWidth,
int regionHeight)
|
void |
clear()
Clear the mask for a new selection |
boolean[][] |
getMaskArray()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NULL_MASK
public static MarvinImageMask NULL_MASK
MarvinImageMask
public MarvinImageMask()
- Constructor for null mask
MarvinImageMask
public MarvinImageMask(int w,
int h)
- Contructor
- Parameters:
w - width of the image referenced by the maskh - height of the image referenced by the mask
MarvinImageMask
public MarvinImageMask(int maskWidth,
int maskHeight,
int startX,
int startY,
int regionWidth,
int regionHeight)
- Parameters:
maskWidth - width of the image referenced by the maskmaskHeight - height of the image referenced by the maskstartX - start pixel of the region in x axesstartY - start pixel of the region in y axesregionWidth - width of the regionregionHeight - height of the region
clear
public void clear()
- Clear the mask for a new selection
getMaskArray
public boolean[][] getMaskArray()
- Returns:
- Mask Array.
addRectRegion
public void addRectRegion(int startX,
int startY,
int regionWidth,
int regionHeight)
- Parameters:
startX - Start pixel of the region in x axesstartY - Start pixel of the region in y axesregionWidth - Width of the regionregionHeight - Height of the region