public class HeartSegm extends InteractiveSnake implements ij.plugin.PlugIn
InteractiveSnake.Candidates, InteractiveSnake.SmoothSnake, InteractiveSnake.Snake, InteractiveSnake.SnakeStack
Modifier and Type | Field and Description |
---|---|
protected float |
con_ptSep |
protected ContourFit |
confit |
InteractiveSnake.SnakeStack[][][] |
conSnakeStacks |
protected float[][][][] |
contourPts |
protected boolean |
contoursOnly |
protected int |
curEndoEpi |
protected int |
curMyoIntensity |
protected int |
curSeries |
protected int |
curSlice |
protected int |
curTime |
protected boolean[] |
didAllCons |
protected boolean |
doingConsVsTags |
protected java.lang.String[] |
endepichoices |
protected int |
firstSAconIndex |
Image3Dinfo[] |
heartMR3Dinfo |
protected ImageRegistrationPS |
imreg |
protected boolean[] |
isLA |
protected ij.gui.TruncatedEllipseRoi[] |
LAselectedRoi |
protected int |
maxImgHeight |
protected int |
maxImgWidth |
protected int |
maxSlices |
protected int |
maxTimes |
protected int[][] |
nConPts |
protected int |
nProcessTimes |
protected int |
nSeries |
protected int[] |
nSlices |
protected java.lang.String |
patientDir |
protected java.lang.String |
patientOutputDir |
protected int[] |
PSfitOrder |
protected Point3Dviewer |
ptviewer |
protected ij.gui.OvalRoi[] |
SAselectedRoi |
protected SeriesImagesClass[] |
seriesImages |
protected java.lang.String[] |
SeriesNames |
protected boolean |
showingTagsVsFilled |
protected SimTagImageInfo[] |
simTagInfo |
protected java.lang.String[][] |
SliceNames |
protected float[][] |
tagBMfitCoeffs |
protected float[][][] |
tagPSfitCoeffs |
protected java.awt.Rectangle[] |
tagSearchRect |
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 |
---|
HeartSegm() |
Modifier and Type | Method and Description |
---|---|
short[][] |
computeEdgeImage(byte[][] A) |
short[][][] |
computeEdgeImage(byte[][][] A) |
short[][] |
computeEdgeImage(short[][] A) |
short[][][] |
computeEdgeImage(short[][][] A) |
void |
convertConSnakePtsToArray() |
boolean |
didAllCurSeriesCons() |
boolean |
didAllSeriesCons(int seriesAt) |
byte[][][] |
fillInTags(byte[][][] A,
boolean is45,
float tagWidth) |
byte[][] |
fillInTags(byte[][] A,
boolean is45,
float tagWidth) |
short[][][] |
fillInTags(short[][][] A,
boolean is45,
float tagWidth) |
short[][] |
fillInTags(short[][] A,
boolean is45,
float tagWidth) |
protected boolean |
getHeartLAparams() |
java.lang.String |
getTagFilenameAddon(int tagat,
int tfr) |
void |
GetTagParams(short[][] shortImg,
int seriesAt) |
void |
GetTagParams(short[][] shortImg,
int seriesAt,
float initGuessAngle,
float initGuessSpacing,
float initGuessWidth) |
byte[][] |
getTestTagImg(byte[][] tagimg,
float normangle,
float tagspacing,
float tagwidth,
float tagoffset) |
void |
init(ij.ImagePlus passedimp)
snakestack == null is flag for interactiveSnake running as a stand-alone program
|
void |
initSnackStacks() |
float[] |
optOver2Params(short[][] selectedOrigImg,
float fixedAngle,
float tagSpacing,
float fixedWidth,
float tagOffset) |
float[] |
optOver3Params(short[][] selectedOrigImg,
float fixedAngle,
float tagSpacing,
float tagWidth,
float tagOffset) |
float[] |
optOver4Params(short[][] selectedOrigImg,
float tagAngle,
float tagSpacing,
float tagWidth,
float tagOffset) |
void |
optTagWarp(int timeAt) |
void |
readIn_allImages() |
protected boolean |
readInAllHeartLAinfo() |
void |
readInAllImagesAtTime(int timeAt) |
boolean |
readStudyInfo() |
void |
refreshScreen() |
void |
resetwidgets() |
void |
run(ij.ImagePlus passedimp) |
void |
run(java.lang.String arg)
This method is called when the plugin is loaded.
|
void |
run(java.lang.String arg,
ij.ImagePlus passedimp) |
void |
setNewEndoEpi() |
void |
setNewSeries() |
void |
setNewSlice() |
void |
setNewTime() |
void |
showAbout() |
void |
sortFilesIntoSliceFolders() |
void |
spaceWindowsOnScreen() |
void |
syncCurrentStack() |
void |
updateSnakeStacksForNewSlice(int curser,
int cursl,
ArrayDisplay curAd) |
void |
veryFirstReadInAllImages() |
boolean |
writeAllHeartLAinfo() |
boolean |
writeStudyInfo() |
CreateMask, InitSnakeDisplay, InitSnakeDisplay, setFilename_addon, toString, UpdateAttributes, UpdateScreen, UpdateSelection
adjustCurSlice, cropToObjectROI, customButFunc, customChoiceFunc, findClosestMark, get3Dview, get3DviewOfmark, getObjectMaskFromFiles, getObjectMaskFromFiles, getPtInputDirInfo, redisplay, runGUI, setGUIWinLevelWidgets, setNewStudy, setupImg, setupImg, setupImg, setupImg, updateMarkingPanel, UpdateSelectionImageReviewer
keyPressed, mouseDragged, mouseMoved, mousePressed, mouseReleased
protected java.lang.String[] endepichoices
protected int nSeries
protected int maxImgWidth
protected int maxImgHeight
protected boolean[] isLA
protected java.lang.String[] SeriesNames
protected java.lang.String[][] SliceNames
public Image3Dinfo[] heartMR3Dinfo
protected SeriesImagesClass[] seriesImages
protected int curSeries
protected int curSlice
protected int maxSlices
protected int curEndoEpi
protected int curMyoIntensity
protected int curTime
protected int maxTimes
protected int[] nSlices
protected int nProcessTimes
protected boolean contoursOnly
public InteractiveSnake.SnakeStack[][][] conSnakeStacks
protected ij.gui.OvalRoi[] SAselectedRoi
protected ij.gui.TruncatedEllipseRoi[] LAselectedRoi
protected java.lang.String patientDir
protected java.lang.String patientOutputDir
protected int firstSAconIndex
protected SimTagImageInfo[] simTagInfo
protected java.awt.Rectangle[] tagSearchRect
protected ImageRegistrationPS imreg
protected float[][] tagBMfitCoeffs
protected float[][][] tagPSfitCoeffs
protected int[] PSfitOrder
protected float con_ptSep
protected boolean doingConsVsTags
protected boolean showingTagsVsFilled
protected boolean[] didAllCons
protected Point3Dviewer ptviewer
protected ContourFit confit
protected int[][] nConPts
protected float[][][][] contourPts
public void showAbout()
showAbout
in class InteractiveSnake
public void init(ij.ImagePlus passedimp)
InteractiveSnake
init
in class InteractiveSnake
public boolean didAllSeriesCons(int seriesAt)
public boolean didAllCurSeriesCons()
public void run(ij.ImagePlus passedimp)
run
in class InteractiveSnake
public void run(java.lang.String arg)
ij.plugin.PlugIn
run
in interface ij.plugin.PlugIn
run
in class InteractiveSnake
public void run(java.lang.String arg, ij.ImagePlus passedimp)
run
in class InteractiveSnake
public void setNewSeries()
public void setNewSlice()
setNewSlice
in class ImageReviewer
public void setNewEndoEpi()
public void setNewTime()
public void syncCurrentStack()
public void updateSnakeStacksForNewSlice(int curser, int cursl, ArrayDisplay curAd)
public short[][][] computeEdgeImage(byte[][][] A)
computeEdgeImage
in class InteractiveSnake
public short[][] computeEdgeImage(byte[][] A)
public short[][][] computeEdgeImage(short[][][] A)
computeEdgeImage
in class InteractiveSnake
public short[][] computeEdgeImage(short[][] A)
public void readInAllImagesAtTime(int timeAt)
public void optTagWarp(int timeAt)
public boolean writeAllHeartLAinfo()
protected boolean readInAllHeartLAinfo()
protected boolean getHeartLAparams()
public java.lang.String getTagFilenameAddon(int tagat, int tfr)
public byte[][] getTestTagImg(byte[][] tagimg, float normangle, float tagspacing, float tagwidth, float tagoffset)
public float[] optOver2Params(short[][] selectedOrigImg, float fixedAngle, float tagSpacing, float fixedWidth, float tagOffset)
public float[] optOver3Params(short[][] selectedOrigImg, float fixedAngle, float tagSpacing, float tagWidth, float tagOffset)
public float[] optOver4Params(short[][] selectedOrigImg, float tagAngle, float tagSpacing, float tagWidth, float tagOffset)
public void GetTagParams(short[][] shortImg, int seriesAt)
public void GetTagParams(short[][] shortImg, int seriesAt, float initGuessAngle, float initGuessSpacing, float initGuessWidth)
public byte[][] fillInTags(byte[][] A, boolean is45, float tagWidth)
public byte[][][] fillInTags(byte[][][] A, boolean is45, float tagWidth)
public short[][] fillInTags(short[][] A, boolean is45, float tagWidth)
public short[][][] fillInTags(short[][][] A, boolean is45, float tagWidth)
public void resetwidgets()
resetwidgets
in class ImageReviewer
public void spaceWindowsOnScreen()
spaceWindowsOnScreen
in class InteractiveSnake
public void refreshScreen()
refreshScreen
in class InteractiveSnake
public void sortFilesIntoSliceFolders()
public void veryFirstReadInAllImages()
public void readIn_allImages()
public void initSnackStacks()
public void convertConSnakePtsToArray()
public boolean writeStudyInfo()
public boolean readStudyInfo() throws java.io.IOException
java.io.IOException