public class Peak_Counter_Tool extends AbstractTrackingTool implements KeyListener, ToolWithOptions
AbstractTool.KeyProxy, AbstractTool.KeyProxyIfNotConsumed, AbstractTool.MouseMotionProxy, AbstractTool.MouseMotionProxyIfNotConsumed, AbstractTool.MouseProxy, AbstractTool.MouseWheelProxy, AbstractTool.MouseWheelProxyIfNotConsumed, AbstractTool.ToolbarMouseAdapter| Modifier and Type | Field and Description |
|---|---|
protected IntArray[] |
allPeaks |
protected Map<ProfileStack,IntArray[]> |
allPeaksMap |
protected Map<ProfileStack,Integer> |
firstAdjustedSlice |
protected int |
handle |
protected ProfileStack |
image |
protected int |
maxSpeed |
protected ij.ImagePlus |
peakCountPlot |
protected double[] |
peakCountPlotLimits |
protected IntArray |
peaks |
protected int |
slice |
activeHandle, handCursor, latestCurrentSlice, map, originalCursorclearToolsIfNecessary, ijKeyProxy, keyProxy, mouseMotionProxy, mouseProxy, mouseWheelProxy, savedToolName, sliceListener, sliceObservers, toolActive, toolbar, toolbarMouseListener, toolID, toolToggleListener| Constructor and Description |
|---|
Peak_Counter_Tool() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
addPeak(int x) |
protected int |
closeToPeak(int x,
int y) |
protected int |
closeToPeak(int x,
int y,
double tolerance) |
protected boolean |
getImage(ij.ImagePlus image) |
protected boolean |
getImage(MouseEvent e) |
protected IntArray |
getPeaks(int slice) |
String |
getToolIcon()
Return the string encoding of the tool icon as it will appear in the
toolbar.
|
protected void |
initializePeaks() |
void |
initializePeaks(int slice) |
void |
initializePeaks(int slice,
int window,
double minimalSlope) |
void |
keyPressed(KeyEvent e) |
void |
keyReleased(KeyEvent e) |
void |
keyTyped(KeyEvent e) |
protected OvalRoi |
mark(int distance) |
protected OvalRoi |
mark(int distance,
Color color) |
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) |
protected int |
movePeak(int index,
int x) |
Roi |
optimizeRoi(Roi roi,
ij.process.ImageProcessor ip) |
protected int |
peakPosition(int x) |
void |
showOptionDialog()
When called, this method displays the configuration panel for the concrete
implementation of this tool.
|
void |
sliceChanged(ij.ImagePlus image) |
protected int |
snapAndAddPeak(int x) |
protected int |
snapPeak(int slice,
int x) |
protected void |
snapPeaks() |
protected void |
snapPeaks(int adjustedSlice) |
protected void |
snapPeaks(int slice,
IntArray initialPeaks) |
protected PointRoi |
toROI() |
protected void |
updatePeakCountPlot() |
protected void |
updateSlice() |
addIOButtons, clearROIs, exportToROIManager, exportToROIManager, getHandle, getROILabel, getRois, importFromROIManager, loadROIs, loadROIs, loadROIs, saveROIs, saveROIs, saveROIs, setRoiaddKeyListener, 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, windowLostFocusprotected ij.ImagePlus peakCountPlot
protected double[] peakCountPlotLimits
protected ProfileStack image
protected int slice
protected IntArray peaks
protected IntArray[] allPeaks
protected Map<ProfileStack,IntArray[]> allPeaksMap
protected int maxSpeed
protected int handle
protected Map<ProfileStack,Integer> firstAdjustedSlice
public String getToolIcon()
AbstractToolgetToolIcon in class AbstractTrackingToolprotected boolean getImage(MouseEvent e)
protected boolean getImage(ij.ImagePlus image)
protected void updateSlice()
protected IntArray getPeaks(int slice)
protected void updatePeakCountPlot()
protected int peakPosition(int x)
public void initializePeaks(int slice)
public void initializePeaks(int slice,
int window,
double minimalSlope)
protected int snapAndAddPeak(int x)
protected int snapPeak(int slice,
int x)
protected int addPeak(int x)
protected int movePeak(int index,
int x)
protected int closeToPeak(int x,
int y)
protected int closeToPeak(int x,
int y,
double tolerance)
protected PointRoi toROI()
public Roi optimizeRoi(Roi roi, ij.process.ImageProcessor ip)
optimizeRoi in class AbstractTrackingToolprotected void snapPeaks(int adjustedSlice)
protected void snapPeaks()
protected void snapPeaks(int slice,
IntArray initialPeaks)
public void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenermouseClicked in class AbstractTrackingToolpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenermousePressed in class AbstractTrackingToolpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenermouseReleased in class AbstractTrackingToolpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenermouseEntered in class AbstractTrackingToolpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenermouseExited in class AbstractTrackingToolpublic void keyPressed(KeyEvent e)
keyPressed in interface KeyListenerpublic void keyTyped(KeyEvent e)
keyTyped in interface KeyListenerpublic void keyReleased(KeyEvent e)
keyReleased in interface KeyListenerprotected OvalRoi mark(int distance)
public void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListenermouseMoved in class AbstractTrackingToolpublic void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListenermouseDragged in class AbstractTrackingToolpublic void sliceChanged(ij.ImagePlus image)
sliceChanged in interface SliceListenersliceChanged in class AbstractTrackingToolprotected void initializePeaks()
public void showOptionDialog()
ToolWithOptionsshowOptionDialog in interface ToolWithOptionsCopyright © 2015–2021 Fiji. All rights reserved.