marvin.image
Class MarvinImageMask

java.lang.Object
  extended by marvin.image.MarvinImageMask

public class MarvinImageMask
extends java.lang.Object

Mask indicating what pixels must be processed.


Field Summary
static MarvinImageMask NULL_MASK
           
 
Constructor Summary
MarvinImageMask()
          Constructor for null mask
MarvinImageMask(int w, int h)
          Contructor
MarvinImageMask(int maskWidth, int maskHeight, int startX, int startY, int regionWidth, int regionHeight)
           
 
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
 

Field Detail

NULL_MASK

public static MarvinImageMask NULL_MASK
Constructor Detail

MarvinImageMask

public MarvinImageMask()
Constructor for null mask


MarvinImageMask

public MarvinImageMask(int w,
                       int h)
Contructor

Parameters:
w - width of the image referenced by the mask
h - 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 mask
maskHeight - height of the image referenced by the mask
startX - start pixel of the region in x axes
startY - start pixel of the region in y axes
regionWidth - width of the region
regionHeight - height of the region
Method Detail

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 axes
startY - Start pixel of the region in y axes
regionWidth - Width of the region
regionHeight - Height of the region