|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsnakeprogram.SnakeImages
public class SnakeImages
A class for controlling the image data. Copyright (c) 2010, Lehigh University All rights reserved. see COPYING for license.
Field Summary | |
---|---|
int |
LINEWIDTH
|
Method Summary | |
---|---|
void |
addStaticMarker(double[] pt)
|
void |
clearStaticMarkers()
|
void |
drawRawSnake(ij.process.ImageProcessor improc)
This method is called by updateImagePanel() and draws the points in SnakeRawX and SnakeRawY to the screen connected by a line. |
void |
drawSnake(Snake s,
ij.process.ImageProcessor improc)
|
static void |
drawSnake(Snake s,
ij.process.ImageProcessor ip,
int frame)
This is a static version of drawSnake for use with an external program. |
void |
drawSnakes(ij.process.ImageProcessor imp)
Draws all of the snakes in SnakeStore |
double |
fromZoomX(double newX)
this method takes an X coordinates and sets it to its position in the original, un-zoomed, image |
double |
fromZoomY(double newY)
this method takes an Y coordinates and sets it to its position in the original, un-zoomed, image |
void |
getAndLoadImage()
Gets a file name via the swing file chooser dialog |
double[] |
getAutoIntensities()
|
double |
getAveragedValue(double x,
double y,
int ss)
|
int |
getCounter()
|
ij.process.ImageProcessor |
getProcessor()
|
int |
getStackSize()
|
java.lang.String |
getTitle()
|
boolean |
hasImage()
|
void |
loadImage(ij.ImagePlus implus)
|
void |
nextImage()
|
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 |
setInitializing(boolean v)
|
void |
setMarker(double[] pt)
|
void |
setRawData(java.util.ArrayList<double[]> xv)
|
void |
setSnakes(MultipleSnakesStore mss)
|
void |
setStretchFix(boolean v)
|
void |
setZoomIn(boolean v)
|
void |
setZoomInBox(boolean v)
|
void |
setZoomLocation(int x,
int y)
|
double[] |
toZoom(double[] old)
transform a 2d array |
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 final int LINEWIDTH
Method Detail |
---|
public boolean hasImage()
public void updateImagePanel()
public void setMarker(double[] pt)
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 void addStaticMarker(double[] pt)
public void clearStaticMarkers()
public void setDrawSnake(boolean v)
public void setFollow(boolean v)
public void setStretchFix(boolean v)
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 double[] toZoom(double[] old)
public void getAndLoadImage()
public int getStackSize()
public int getCounter()
public void nextImage()
public void previousImage()
public double getAveragedValue(double x, double y, int ss)
public ij.process.ImageProcessor getProcessor()
public void loadImage(ij.ImagePlus implus)
public void setInitializing(boolean v)
public void setCurrentSnake(Snake cs)
public void setSnakes(MultipleSnakesStore mss)
public double[] getAutoIntensities() throws java.lang.NullPointerException
java.lang.NullPointerException
public static void drawSnake(Snake s, ij.process.ImageProcessor ip, int frame)
public java.lang.String getTitle()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |