Package gov.nih.mipav.model.algorithms
Class AlgorithmFaceAnonymizerBET.BitSetUtility
java.lang.Object
gov.nih.mipav.model.algorithms.AlgorithmFaceAnonymizerBET.BitSetUtility
- Enclosing class:
AlgorithmFaceAnonymizerBET
Private utility class for operations on BitSets
- Author:
- senseneyj
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) BitSetconnectNearNeighbors(int loc, BitSet connectingRegion, int maxNeighborDistance) Set elements of the returned BitSet meet at least one of the following criteria: Element is set inconnectingRegion. Walking up, down, right, and/or left fromlocto this element requires less than or equal tomaxNeighborDistancesteps.(package private) BitSetconnectNearNeighbors(int loc, BitSet connectingRegion, BitSet connectingRegionCopy, int maxNeighborDistance) A helper method forconnectNearNeighbors(int, BitSet, int)that allows faster copiesprivate booleanconnectNearNeighborsUtil(int loc, BitSet connectingRegion, BitSet connectingRegionCopy, int level, int dir, int levelCut) convertSetToPoints(BitSet set) (package private) intgetBoundaryCode(BitSet set, int value) (package private) BitSetgetEdgePoints(BitSet set) Finds the points of the givenBitSetwhich has at least one neighbor (not including diagonals) not in the BitSet.(package private) floatgetMinDistance(int value, BitSet set) Calculates the distance between the closest point in thisBitSetand the givenvalue.(package private) floatgetMinDistance(int value, Vector<Point3D> setPoints) Calculates the distance between the closest point in thisVectorand the givenvalue.(package private) booleanisBoundaryPoint(BitSet set, int value) (package private) booleanisInScan(int value)
-
Field Details
-
LEFT_EXP
static final int LEFT_EXP- See Also:
-
RIGHT_EXP
static final int RIGHT_EXP- See Also:
-
DOWN_EXP
static final int DOWN_EXP- See Also:
-
UP_EXP
static final int UP_EXP- See Also:
-
IN_EXP
static final int IN_EXP- See Also:
-
OUT_EXP
static final int OUT_EXP- See Also:
-
-
Constructor Details
-
BitSetUtility
private BitSetUtility()
-
-
Method Details
-
getMinDistance
Calculates the distance between the closest point in thisBitSetand the givenvalue. -
getMinDistance
Calculates the distance between the closest point in thisVectorand the givenvalue. -
getEdgePoints
Finds the points of the givenBitSetwhich has at least one neighbor (not including diagonals) not in the BitSet. -
isBoundaryPoint
-
getBoundaryCode
-
isInScan
boolean isInScan(int value) -
connectNearNeighbors
Set elements of the returned BitSet meet at least one of the following criteria:- Element is set in
connectingRegion. - Walking up, down, right, and/or left from
locto this element requires less than or equal tomaxNeighborDistancesteps.
- Element is set in
-
connectNearNeighbors
BitSet connectNearNeighbors(int loc, BitSet connectingRegion, BitSet connectingRegionCopy, int maxNeighborDistance) A helper method forconnectNearNeighbors(int, BitSet, int)that allows faster copies -
connectNearNeighborsUtil
-
convertSetToPoints
-