public class LOI_Interpolator_Tool extends AbstractTrackingTool implements KeyListener, ToolToggleListener, ToolWithOptions, MouseWheelListener
AbstractTool.KeyProxy, AbstractTool.KeyProxyIfNotConsumed, AbstractTool.MouseMotionProxy, AbstractTool.MouseMotionProxyIfNotConsumed, AbstractTool.MouseProxy, AbstractTool.MouseWheelProxy, AbstractTool.MouseWheelProxyIfNotConsumed, AbstractTool.ToolbarMouseAdapter
Modifier and Type | Field and Description |
---|---|
protected boolean |
constructing |
protected boolean |
moving |
protected PolygonRoiPublic |
roi |
protected int |
x |
protected int |
y |
activeHandle, handCursor, latestCurrentSlice, map, originalCursor
clearToolsIfNecessary, ijKeyProxy, keyProxy, mouseMotionProxy, mouseProxy, mouseWheelProxy, savedToolName, sliceListener, sliceObservers, toolActive, toolbar, toolbarMouseListener, toolID, toolToggleListener
Constructor and Description |
---|
LOI_Interpolator_Tool() |
Modifier and Type | Method and Description |
---|---|
protected ij.ImagePlus |
doRegistration(ij.ImagePlus image,
boolean showSpreadsheet) |
protected void |
exportToROIManager(ij.ImagePlus image) |
protected static Polygon |
getPolygon(Roi[] rois,
int sliceIndex) |
protected ij.ImagePlus |
getStraightenedStack(ij.ImagePlus image) |
protected static ij.ImagePlus |
getStraightenedStack(ij.ImagePlus image,
int lineWidth,
Roi[] rois) |
String |
getToolIcon()
Return the string encoding of the tool icon as it will appear in the
toolbar.
|
protected void |
importFromROIManager() |
protected void |
interpolateFrom(Roi[] rois,
int currentSlice) |
protected static void |
interpolateROIs(Roi[] rois) |
protected static void |
interpolateROIs(Roi[] rois,
int from,
int to) |
void |
keyPressed(KeyEvent e) |
void |
keyReleased(KeyEvent e) |
void |
keyTyped(KeyEvent e) |
protected void |
loadROIs(ij.ImagePlus image,
String path) |
void |
mouseClicked(MouseEvent e) |
void |
mouseDragged(MouseEvent e) |
void |
mouseEntered(MouseEvent e) |
void |
mouseExited(MouseEvent e) |
void |
mouseMoved(MouseEvent e) |
void |
mousePressed(MouseEvent e) |
void |
mouseReleased(MouseEvent e) |
void |
mouseWheelMoved(MouseWheelEvent e) |
protected static void |
normalizePointCounts(Polygon poly1,
Polygon poly2) |
Roi |
optimizeRoi(Roi roi,
ij.process.ImageProcessor ip) |
protected static void |
resamplePolygon(Polygon polygon,
int npoints) |
protected void |
saveROIs(Roi[] rois,
String path) |
protected static ij.ImagePlus |
showKymograph(ij.ImagePlus image,
PolygonRoi[] rois,
int lineWidth,
boolean showSpreadsheet,
boolean useFullLineWidth) |
void |
showOptionDialog()
When called, this method displays the configuration panel for the concrete
implementation of this tool.
|
void |
showPeaks(ij.ImagePlus image) |
void |
showPeaks(ij.ImagePlus image,
PolygonRoi[] rois) |
void |
showPeaks(ij.ImagePlus image,
Roi[] rois) |
protected void |
showStraightenedStack(ij.ImagePlus image) |
void |
sliceChanged(ij.ImagePlus image) |
protected static boolean |
specifiedByUser(Roi roi) |
void |
toolToggled(boolean enabled) |
protected PolygonRoi[] |
toPolygonRois(Roi[] rois) |
protected boolean |
updateROI(ij.ImagePlus image) |
addIOButtons, clearROIs, exportToROIManager, getHandle, getROILabel, getRois, loadROIs, loadROIs, saveROIs, saveROIs, setRoi
addKeyListener, addMouseMotionListener, addMouseWheelListener, getImageCanvas, getImagePlus, getImageWindow, getOffscreenX, getOffscreenXDouble, getOffscreenY, getOffscreenYDouble, getToolID, getToolName, imageClosed, imageOpened, imageUpdated, isThisTool, maybeUnregister, registerTool, registerTool, registerTool, run, unregisterTool, unregisterTool, unregisterTool, wasToolbarCleared, windowGainedFocus, windowLostFocus
protected int x
protected int y
protected boolean moving
protected boolean constructing
protected PolygonRoiPublic roi
public String getToolIcon()
AbstractTool
getToolIcon
in class AbstractTrackingTool
public Roi optimizeRoi(Roi roi, ij.process.ImageProcessor ip)
optimizeRoi
in class AbstractTrackingTool
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
mouseClicked
in class AbstractTrackingTool
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
mousePressed
in class AbstractTrackingTool
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
mouseReleased
in class AbstractTrackingTool
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
mouseEntered
in class AbstractTrackingTool
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
mouseExited
in class AbstractTrackingTool
public void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
mouseMoved
in class AbstractTrackingTool
public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
mouseDragged
in class AbstractTrackingTool
public void mouseWheelMoved(MouseWheelEvent e)
mouseWheelMoved
in interface MouseWheelListener
public void keyPressed(KeyEvent e)
keyPressed
in interface KeyListener
public void keyTyped(KeyEvent e)
keyTyped
in interface KeyListener
public void keyReleased(KeyEvent e)
keyReleased
in interface KeyListener
public void sliceChanged(ij.ImagePlus image)
sliceChanged
in interface SliceListener
sliceChanged
in class AbstractTrackingTool
public void showOptionDialog()
ToolWithOptions
showOptionDialog
in interface ToolWithOptions
public void toolToggled(boolean enabled)
toolToggled
in interface ToolToggleListener
protected boolean updateROI(ij.ImagePlus image)
protected static boolean specifiedByUser(Roi roi)
protected void interpolateFrom(Roi[] rois, int currentSlice)
protected static void interpolateROIs(Roi[] rois)
protected static void interpolateROIs(Roi[] rois, int from, int to)
protected static void resamplePolygon(Polygon polygon, int npoints)
protected ij.ImagePlus doRegistration(ij.ImagePlus image, boolean showSpreadsheet)
protected static ij.ImagePlus showKymograph(ij.ImagePlus image, PolygonRoi[] rois, int lineWidth, boolean showSpreadsheet, boolean useFullLineWidth)
protected void exportToROIManager(ij.ImagePlus image)
exportToROIManager
in class AbstractTrackingTool
protected void importFromROIManager()
importFromROIManager
in class AbstractTrackingTool
protected void saveROIs(Roi[] rois, String path)
saveROIs
in class AbstractTrackingTool
protected void loadROIs(ij.ImagePlus image, String path)
loadROIs
in class AbstractTrackingTool
protected void showStraightenedStack(ij.ImagePlus image)
protected ij.ImagePlus getStraightenedStack(ij.ImagePlus image)
protected static ij.ImagePlus getStraightenedStack(ij.ImagePlus image, int lineWidth, Roi[] rois)
public void showPeaks(ij.ImagePlus image)
public void showPeaks(ij.ImagePlus image, Roi[] rois)
public void showPeaks(ij.ImagePlus image, PolygonRoi[] rois)
protected PolygonRoi[] toPolygonRois(Roi[] rois)
Copyright © 2015–2021 Fiji. All rights reserved.