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, originalCursor
clearToolsIfNecessary, 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, 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 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()
AbstractTool
getToolIcon
in class AbstractTrackingTool
protected 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 AbstractTrackingTool
protected void snapPeaks(int adjustedSlice)
protected void snapPeaks()
protected void snapPeaks(int slice, IntArray initialPeaks)
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 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
protected OvalRoi mark(int distance)
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 sliceChanged(ij.ImagePlus image)
sliceChanged
in interface SliceListener
sliceChanged
in class AbstractTrackingTool
protected void initializePeaks()
public void showOptionDialog()
ToolWithOptions
showOptionDialog
in interface ToolWithOptions
Copyright © 2015–2021 Fiji. All rights reserved.