Package gov.nih.mipav.model.algorithms
Class AlgorithmNetworkSnake.PixelGrid
java.lang.Object
gov.nih.mipav.model.algorithms.AlgorithmNetworkSnake.PixelGrid
- Enclosing class:
AlgorithmNetworkSnake
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate intprivate AlgorithmNetworkSnake.PixelGrid.PixelGridNode[][] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPixelLine(int x1, int y1, int x2, int y2) findBranches(int x, int y, int recordRate, boolean[][] visitedPixels) private voidprivate voidintintvoidloadPixels(ArrayList<AlgorithmNetworkSnake.Pixel> pixelList) private voidsetPixel(int x, int y) voidtraverseWall(AlgorithmNetworkSnake.PixelGrid.PixelGridNode sourceNode, AlgorithmNetworkSnake.PixelGrid.PixelGridNode nextNode, int recordRate, boolean[][] visitedPixels)
-
Field Details
-
pixels
-
junctions
-
edgeJunctions
-
gridWidth
private int gridWidth -
gridHeight
private int gridHeight
-
-
Constructor Details
-
PixelGrid
public PixelGrid(int width, int height)
-
-
Method Details
-
getPixels
-
setPixels
-
getJunctions
-
getEdgeJunctions
-
getGridWidth
public int getGridWidth() -
getGridHeight
public int getGridHeight() -
loadPixels
-
findJunctions
private void findJunctions() -
findEdgeJunctions
private void findEdgeJunctions() -
findBranches
-
traverseWall
private ArrayList<Point> traverseWall(AlgorithmNetworkSnake.PixelGrid.PixelGridNode sourceNode, AlgorithmNetworkSnake.PixelGrid.PixelGridNode nextNode, int recordRate, boolean[][] visitedPixels) -
addPixelLine
public void addPixelLine(int x1, int y1, int x2, int y2) -
setPixel
private void setPixel(int x, int y)
-