|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.jhu.tmaj.beans.masks.data.MaskUtil
public final class MaskUtil
Contains utilties for handling mask arrays, which are representing as a boolean array where true values are said to be inside the mask, and false values are outside the mask.
Method Summary | |
---|---|
static boolean[] |
getAllExclusiveMask(int pixelCount)
Gets an all-exclusive mask of the supplied size |
static boolean[] |
getAllInclusiveMask(int pixels)
Gets a boolean[] mask where all elements are included. |
static java.util.Map<java.lang.Boolean,java.lang.Integer> |
getMaskHisto(boolean[] mask)
|
static int |
getNumberOfLassoMasks(java.util.List<Mask> maskList)
|
static int[] |
getOnlyValuesInMask(int[] pixels,
boolean[] mask)
Returns an int array of pixels where only pixels inside the mask are included. |
static int |
getSizeOfMask(boolean[] mask)
Returns the number of pixels that are INSIDE the mask. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static int getSizeOfMask(boolean[] mask)
public static int[] getOnlyValuesInMask(int[] pixels, boolean[] mask)
public static boolean[] getAllInclusiveMask(int pixels)
public static boolean[] getAllExclusiveMask(int pixelCount)
public static int getNumberOfLassoMasks(java.util.List<Mask> maskList)
public static java.util.Map<java.lang.Boolean,java.lang.Integer> getMaskHisto(boolean[] mask)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |