|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsnakeprogram3d.SnakeModel
public class SnakeModel
Method Summary | |
---|---|
void |
addSnake()
Starts the initialize snake process where SnakeRaw? are the transient snake coordinates. |
void |
autoDetectIntensities()
Tries to determine the forground/background values automatically. |
boolean |
checkForCurrentSnake()
This is used before attempting to modify the current snake such as with a fix or deform button press. |
void |
clearCurrentSnake()
|
void |
clearScreen()
removes all snakes from the current frame |
void |
decreaseMax()
for adjusting brightness/contrast |
void |
decreaseMin()
for adjusting brightness/contrast |
void |
deformRunning()
Deforms the Current Snake. |
void |
deformSnake()
Causes the deformation of a snake to occur |
void |
deleteEndFix()
Disables UI and Deletes and end |
void |
deleteMiddleFix()
Disables the UI and begins the Delete Middle fix |
void |
deleteSnake()
deletes the current snake and selects the next one |
void |
deleteSnake(Snake s)
Delets a snake |
void |
disableUI()
stops any other input except for the MouseListener on the displayed Image |
void |
enableUI()
enables buttons |
void |
finishDisplay()
Creates volume data and submits the job to the main process. |
java.lang.String |
formatNumber(double value)
Limits the display to two decimal points, or scientific notation if the number is out of a certain range. |
void |
getAndLoadImage()
These are short access to images so the frame doesn't need to know about the SnakeImages class |
void |
getBackgroundIntensity()
Sets the flag so the next time the snake panel is clicked background intesity will be calcularted |
double[] |
getClosestSnakePoint(double x,
double y,
double z)
For getting the closest point on the current snake. |
int |
getDeformIterations()
|
int |
getDrawHeight()
short access to images so the frame doesn't need to know about the SnakeImages class |
int |
getDrawWidth()
These are short access to images so the frame doesn't need to know about the SnakeImages class |
void |
getForegroundIntensity()
Sets the flag so the next time the snake panel is clicked foreground intesity will be calcularted |
javax.swing.JFrame |
getFrame()
Gets the frame used for dialogs. |
java.awt.Image |
getImage()
short access to images so the frame doesn't need to know about the SnakeImages class |
java.lang.String |
getImageTitle()
gets the filename of the open imageplus. |
int |
getNFrames()
|
int |
getNSlices()
|
boolean |
hasImage()
After an image has been opened to make sure it has properly been loaded. |
void |
increaseMax()
for adjusting brightness/contrast |
void |
increaseMin()
for adjusting brightness/contrast |
void |
initializeZoomIn()
Disables UI and begins a zoom in routine |
void |
loadImage(ij.ImagePlus implus)
Loads an image from an existing image plus the principle useage of this function is to load an image when started through ImageJ. |
void |
loadSnake()
Loads a snake from a file and sets the constant values in the snake panel. |
void |
mouseMoved(ThreeDEvent tde)
Generated during a mouse move event, from 2d panel or the 3d views. |
void |
mousePressed(ThreeDEvent tde)
Handles all mouse events in the 3d image coordnate space. |
void |
moveDown()
Moves the YZ plane |
void |
moveUp()
Moves the YZ plane |
void |
nextFrame()
Next volume stack in time. |
void |
nextImage()
moves to the next image |
void |
previousFrame()
Previous volume stack in time. |
void |
previousImage()
moves to the previous image |
void |
reduce3D(boolean t)
Causes the model to use a reduced version of the 3d image. |
void |
saveElongationData()
Save all of the snakes elongation data |
void |
saveSnake()
Save all of the snakes data, so that they may be reloaded |
void |
selectNextSnake()
|
void |
selectSnake(java.awt.event.MouseEvent evt)
A MouseEvent version of the snake selector |
void |
selectSnake(ThreeDEvent tde)
Chooses the nearest snake. |
void |
setAlpha(double a)
|
void |
setBackgroundIntensity(double fim)
|
void |
setBeta(double b)
|
void |
setDefaultConstants()
|
void |
setDeformIterations(int di)
|
void |
setFixSnakePoints()
Sets the flag so the next click on the image pane extends the snake to the click location |
void |
setForegroundIntensity(double f)
|
void |
setGamma(double g)
|
void |
setImageSmoothing(double v)
sets the sigma of the image smoothing term. |
void |
setMaxDrawingBounds(int W,
int H)
When the view changes size this can be 800 or 400, should be scalable though. |
void |
setResolution(double res)
|
void |
setStretch(double s)
|
void |
setWeight(double w)
|
void |
setZResolution(double mon)
Sets the zresolution and refreshes the display. |
void |
snakePanelMouseMoved(java.awt.event.MouseEvent evt)
Handles two types of mouse moved events. |
void |
snakePanelMousePressed(java.awt.event.MouseEvent evt)
When the mouse is pressed over the snake panel, transforms the click to a 3d event |
void |
stopRunningNicely()
Causes a deform iterations |
void |
switchCards()
For changing the view configuration. |
void |
trackSnake()
Goes to the next frame and copies the current snake. |
void |
trackSnakeBackwards()
Goes to the previous frame and copies the current snake. |
void |
updateDisplay()
Updates both displays. |
void |
updateFrame()
|
void |
updateImagePanel()
Updates the image panel and relevant properties. |
void |
updateThreeDDisplay()
updates the snakes positions, should be called from the PROC thread. |
void |
validateSnakes()
|
void |
wipeDown()
|
void |
wipeUp()
|
void |
zoomOut()
resets the zoom to the orginal image size |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void deformRunning() throws java.lang.IllegalAccessException
java.lang.IllegalAccessException
- occurs when the snake is too short.public void snakePanelMousePressed(java.awt.event.MouseEvent evt)
evt
- the generated mouse event.public void mousePressed(ThreeDEvent tde)
tde
- Event that is handled in 3d image space.public void snakePanelMouseMoved(java.awt.event.MouseEvent evt)
evt
- mouse event.public void mouseMoved(ThreeDEvent tde)
tde
- event in image spacepublic double[] getClosestSnakePoint(double x, double y, double z)
x
- cnety
- cnetz
- cnet
public java.lang.String formatNumber(double value)
value
- number to be represented by a string
public void selectSnake(java.awt.event.MouseEvent evt)
evt
- original mouse event.public void selectSnake(ThreeDEvent tde)
tde
- image spacepublic void saveElongationData()
public void saveSnake()
public void loadSnake()
public void trackSnake()
public void trackSnakeBackwards()
public void deleteMiddleFix()
public void deleteEndFix()
public void previousImage()
public void nextImage()
public void initializeZoomIn()
public void deleteSnake()
public void deleteSnake(Snake s)
s
- the snake that will be deleted.public void clearScreen()
public void getForegroundIntensity()
public void getBackgroundIntensity()
public void zoomOut()
public void addSnake()
public void deformSnake()
public void setFixSnakePoints()
public void getAndLoadImage()
public void autoDetectIntensities()
public int getDrawHeight()
public java.awt.Image getImage()
public int getDrawWidth()
public javax.swing.JFrame getFrame()
public int getNSlices()
public int getNFrames()
public boolean hasImage()
public int getDeformIterations()
public void setDeformIterations(int di)
di
- number of iterations per deform iteration click.public void setZResolution(double mon)
mon
- zspacingpublic void setResolution(double res)
public void setBackgroundIntensity(double fim)
public void setForegroundIntensity(double f)
public void setAlpha(double a)
public void setBeta(double b)
public void setGamma(double g)
public void setWeight(double w)
public void setStretch(double s)
public void setImageSmoothing(double v)
v
- standard deviation of the gaussian filter.public void loadImage(ij.ImagePlus implus)
implus
- the ImagePlus preloaded via ImageJpublic void finishDisplay()
public void updateDisplay()
public void updateImagePanel()
public void updateThreeDDisplay()
public void disableUI()
public void enableUI()
public boolean checkForCurrentSnake()
public void stopRunningNicely()
public java.lang.String getImageTitle()
public void moveUp()
public void moveDown()
public void wipeDown()
public void wipeUp()
public void switchCards()
public void setMaxDrawingBounds(int W, int H)
W
- widthH
- heightpublic void nextFrame()
public void previousFrame()
public void increaseMax()
public void decreaseMax()
public void increaseMin()
public void decreaseMin()
public void updateFrame()
public void setDefaultConstants()
public void reduce3D(boolean t)
t
- Real resolution when false, and reduced resolution when true.public void selectNextSnake()
public void clearCurrentSnake()
public void validateSnakes()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |