|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsnakeprogram3d.SnakeImages
public class SnakeImages
A class for accessing original and or smoothed image data.
Field Summary | |
---|---|
int |
FRAMES
|
double |
MAXPIXEL
|
double |
MINPIXEL
|
int |
SLICES
|
Method Summary | |
---|---|
boolean |
checkSnake()
|
void |
drawRawSnake(ij.process.ImageProcessor improc)
This method is called by updateDisplay() and draws the points in SnakeRaw to the screen connected by a line. |
void |
drawSnake(Snake s,
ij.process.ImageProcessor improc)
|
void |
drawSnakes(ij.process.ImageProcessor imp)
Draws all of the snakes in SnakeStore |
double |
fromZoomX(double newX)
this method takes an X coordinates and returns its position in the original, un-zoomed, image |
double |
fromZoomY(double newY)
this method takes an Y coordinates and returns position in the original, un-zoomed, image |
ij.ImagePlus |
getAndLoadImage(javax.swing.JFrame xx)
Gets a file name via the swing file chooser dialog |
double[] |
getAutoIntensities()
not a good function |
int |
getCurrentFrame()
|
int |
getCurrentSlice()
|
double |
getDepth()
|
java.io.File |
getFile()
|
int |
getHeight()
|
int |
getNFrames()
|
int |
getNSlices()
Returns the total number of slices |
ij.ImagePlus |
getOriginalPlus()
|
double |
getPixel(double x,
double y,
double z)
Gets the Smoothed pixel value from the image. |
java.lang.String |
getTitle()
|
int |
getWidth()
|
double |
getZResolution()
|
boolean |
hasImage()
|
double |
heightFromSlice()
finds the height using the current slice as the reference |
double |
heightFromSlice(double slice)
returns the height in PIXELS zero height corresponds to frame 1 |
void |
loadImage(ij.ImagePlus implus)
|
void |
nextFrame()
|
void |
nextImage()
|
void |
previousFrame()
|
void |
previousImage()
|
void |
resetZoom()
Sets the zoom box to be the whole image |
void |
setCurrentSnake(Snake cs)
|
void |
setDrawSnake(boolean v)
|
void |
setFollow(boolean v)
|
void |
setImageSmoothing(double v)
|
void |
setInitializing(boolean v)
|
void |
setMaxDrawingBounds(int w,
int h)
|
void |
setRawData(java.util.ArrayList<double[]> xv)
|
void |
setSnakes(MultipleSnakesStore mss)
|
void |
setZoomIn(boolean v)
|
void |
setZoomInBox(boolean v)
|
void |
setZoomLocation(int x,
int y)
|
void |
setZResolution(double value)
returns the height in PIXELS zero height corresponds to frame 1 |
double |
sliceFromHeight(double height)
returns the slice as a double, which gives the fraction between slices for interpolating. |
double |
toZoomX(double oldX)
this method takes an X coordinate on the original image and finds its new position on a zoomed image |
double |
toZoomY(double oldY)
takes an Y coordinate on the original image and finds its new position on a zoomed image |
void |
trackingZoomBox(int x,
int y)
|
void |
updateImagePanel()
|
void |
updateMousePosition(double x,
double y)
This is used for following the mouse it requres the image coordinates |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int SLICES
public int FRAMES
public double MAXPIXEL
public double MINPIXEL
Method Detail |
---|
public boolean hasImage()
public double getZResolution()
public void updateImagePanel()
public void trackingZoomBox(int x, int y)
public void setZoomInBox(boolean v)
public void setZoomIn(boolean v)
public void setRawData(java.util.ArrayList<double[]> xv)
public boolean checkSnake()
public void setDrawSnake(boolean v)
public void setFollow(boolean v)
public ij.ImagePlus getOriginalPlus()
public void updateMousePosition(double x, double y)
public void drawRawSnake(ij.process.ImageProcessor improc)
public void drawSnake(Snake s, ij.process.ImageProcessor improc)
public void drawSnakes(ij.process.ImageProcessor imp)
public void resetZoom()
public void setZoomLocation(int x, int y)
public double fromZoomX(double newX)
public double fromZoomY(double newY)
public double toZoomX(double oldX)
public double toZoomY(double oldY)
public ij.ImagePlus getAndLoadImage(javax.swing.JFrame xx)
public int getNSlices()
public int getNFrames()
public int getCurrentFrame()
public int getCurrentSlice()
public void nextImage()
public void previousImage()
public void nextFrame()
public void previousFrame()
public void loadImage(ij.ImagePlus implus)
public void setInitializing(boolean v)
public void setCurrentSnake(Snake cs)
public void setSnakes(MultipleSnakesStore mss)
public double[] getAutoIntensities()
public double heightFromSlice(double slice)
slice
- frame number starts at 1.public double heightFromSlice()
public double sliceFromHeight(double height)
public void setZResolution(double value)
value
- frame number starts at 1.public double getPixel(double x, double y, double z)
x
- cnet in pixels.y
- cnet in pixels.z
- cnet in pixels.
public int getHeight()
public int getWidth()
public double getDepth()
public java.lang.String getTitle()
public java.io.File getFile()
public void setImageSmoothing(double v)
public void setMaxDrawingBounds(int w, int h)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |