public class lungSnake extends InteractiveSnake
InteractiveSnake.Candidates, InteractiveSnake.SmoothSnake, InteractiveSnake.Snake, InteractiveSnake.SnakeStack
Modifier and Type | Field and Description |
---|---|
protected float |
cenx |
protected float |
ceny |
boolean |
connectEndsForMask |
protected InteractiveSnake.Snake |
cursn |
protected Point2D[] |
cursnpts |
protected boolean |
debug |
protected boolean |
doInteractive |
protected int[][] |
endIndices |
protected Point2D[][] |
endpts |
protected boolean[] |
foundedge |
protected float |
initSearch_ptSep |
protected boolean[][][] |
lungMask |
protected float |
mmPerPixelXY |
protected int |
nfound |
protected float |
smoothNods_ptSep |
protected int |
snakeDebugSlice |
protected int |
startI |
absGradient, cur_ptSep, cur_ptShift, curEnergy_Bend, curEnergy_Pressure, curEnergy_Stretch, DoFullyManual, enableCreateMaskSaveAsDicom, filename_addon, gradientIn, gradientOut, gradientType, Label, origSelectedRoi, ProhibitInwardPoints, runAsStandAlone, saveWindows, showEdgeImg, ShowLabels, snakeAd, snakegd, snakeptviewer, snakeStack, useAdditionalDrawingAD
working_canvas
Constructor and Description |
---|
lungSnake(boolean[][][] A,
float mmppx) |
Modifier and Type | Method and Description |
---|---|
void |
clipBigPtSeps(InteractiveSnake.Snake cursn,
int sliceAt,
int leftright) |
protected void |
findBottomWallLeftLung(int sliceAt)
now find limits of outside lung wall.
|
protected void |
findBottomWallRightLung(int sliceAt) |
protected void |
findEdgePts(int d,
boolean onLeftSide)
finds edges on lungMask along radial projections from centroid.
|
protected int |
findStartingIndex(int sliceAt,
boolean onLeftSide)
define global startI used by findBottomWallLeft() and findTopWallLeft()
|
protected void |
findTopWallEnd(int sliceAt,
double maxangle,
boolean onLeftSide) |
boolean[][][] |
getMask() |
void |
go(ArrayDisplay activeAD) |
void |
go(ArrayDisplay activeAD,
ArrayDisplay alsoShowOnAD) |
void |
indentMask() |
boolean |
removeSnakePt(InteractiveSnake.Snake cursn,
int remove_pt) |
computeEdgeImage, computeEdgeImage, CreateMask, init, InitSnakeDisplay, InitSnakeDisplay, refreshScreen, run, run, run, setFilename_addon, showAbout, spaceWindowsOnScreen, toString, UpdateAttributes, UpdateScreen, UpdateSelection
adjustCurSlice, cropToObjectROI, customButFunc, customChoiceFunc, findClosestMark, get3Dview, get3DviewOfmark, getObjectMaskFromFiles, getObjectMaskFromFiles, getPtInputDirInfo, redisplay, resetwidgets, runGUI, setGUIWinLevelWidgets, setNewSlice, setNewStudy, setupImg, setupImg, setupImg, setupImg, updateMarkingPanel, UpdateSelectionImageReviewer
keyPressed, mouseDragged, mouseMoved, mousePressed, mouseReleased
protected int startI
protected boolean[][][] lungMask
protected Point2D[][] endpts
protected int[][] endIndices
protected boolean[] foundedge
protected int nfound
protected Point2D[] cursnpts
protected InteractiveSnake.Snake cursn
protected float ceny
protected float cenx
protected boolean debug
protected int snakeDebugSlice
protected boolean doInteractive
protected float mmPerPixelXY
protected float initSearch_ptSep
protected float smoothNods_ptSep
public boolean connectEndsForMask
public void go(ArrayDisplay activeAD)
public void go(ArrayDisplay activeAD, ArrayDisplay alsoShowOnAD)
protected void findEdgePts(int d, boolean onLeftSide)
public boolean removeSnakePt(InteractiveSnake.Snake cursn, int remove_pt)
protected int findStartingIndex(int sliceAt, boolean onLeftSide)
protected void findBottomWallLeftLung(int sliceAt)
protected void findBottomWallRightLung(int sliceAt)
protected void findTopWallEnd(int sliceAt, double maxangle, boolean onLeftSide)
public void clipBigPtSeps(InteractiveSnake.Snake cursn, int sliceAt, int leftright)
public void indentMask()
public boolean[][][] getMask()