public class PeakFinder
extends java.lang.Object
implements ij.plugin.filter.ExtendedPlugInFilter, ij.gui.DialogListener
CONVERT_TO_FLOAT, DOES_16, DOES_32, DOES_8C, DOES_8G, DOES_ALL, DOES_RGB, DOES_STACKS, DONE, FINAL_PROCESSING, KEEP_THRESHOLD, NO_CHANGES, NO_IMAGE_REQUIRED, NO_UNDO, PARALLELIZE_IMAGES, PARALLELIZE_STACKS, ROI_REQUIRED, SNAPSHOT, STACK_REQUIRED, SUPPORTS_MASKING
Constructor and Description |
---|
PeakFinder()
Instantiates a new peak finder.
|
PeakFinder(boolean useDiscoidalAveraging,
DiscoidalAveragingFilter filter,
double threshold,
double thresholdValue,
int minimumDistance)
Instantiates a new peak finder.
|
PeakFinder(boolean b,
DiscoidalAveragingFilter filter,
java.lang.String SNR_THRESHOLD,
java.lang.String INTENSITY_THRESHOLD,
java.lang.String DISTANCE_BETWEEN_PEAKS)
Instantiates a new peak finder.
|
Modifier and Type | Method and Description |
---|---|
boolean |
dialogItemChanged(ij.gui.GenericDialog dialog,
java.awt.AWTEvent e)
Dialog item changed.
|
java.util.ArrayList<java.awt.Point> |
findPeaks(ij.process.ImageProcessor ip)
Find peaks.
|
ij.plugin.frame.RoiManager |
getROIManager()
Gets the ROI manager.
|
void |
run(ij.ImagePlus imp)
Run.
|
void |
run(ij.process.ImageProcessor ip)
Run.
|
void |
setNPasses(int n)
Sets the n passes.
|
int |
setup(java.lang.String arg,
ij.ImagePlus imp)
Setup.
|
int |
showDialog(ij.ImagePlus imp,
java.lang.String arg,
ij.plugin.filter.PlugInFilterRunner pfr)
Show dialog.
|
public PeakFinder()
public PeakFinder(boolean useDiscoidalAveraging, DiscoidalAveragingFilter filter, double threshold, double thresholdValue, int minimumDistance)
useDiscoidalAveraging
- the use discoidal averagingfilter
- the filterthreshold
- the thresholdthresholdValue
- the threshold valueminimumDistance
- the minimum distancepublic PeakFinder(boolean b, DiscoidalAveragingFilter filter, java.lang.String SNR_THRESHOLD, java.lang.String INTENSITY_THRESHOLD, java.lang.String DISTANCE_BETWEEN_PEAKS)
b
- the bfilter
- the filterSNR_THRESHOLD
- the snr thresholdINTENSITY_THRESHOLD
- the intensity thresholdDISTANCE_BETWEEN_PEAKS
- the distance between peakspublic ij.plugin.frame.RoiManager getROIManager()
public void run(ij.ImagePlus imp)
imp
- the imppublic void run(ij.process.ImageProcessor ip)
run
in interface ij.plugin.filter.PlugInFilter
ip
- the ippublic java.util.ArrayList<java.awt.Point> findPeaks(ij.process.ImageProcessor ip)
ip
- the ippublic int setup(java.lang.String arg, ij.ImagePlus imp)
setup
in interface ij.plugin.filter.PlugInFilter
arg
- the argimp
- the imppublic void setNPasses(int n)
setNPasses
in interface ij.plugin.filter.ExtendedPlugInFilter
n
- the new n passespublic int showDialog(ij.ImagePlus imp, java.lang.String arg, ij.plugin.filter.PlugInFilterRunner pfr)
showDialog
in interface ij.plugin.filter.ExtendedPlugInFilter
imp
- the imparg
- the argpfr
- the pfrpublic boolean dialogItemChanged(ij.gui.GenericDialog dialog, java.awt.AWTEvent e)
dialogItemChanged
in interface ij.gui.DialogListener
dialog
- the dialoge
- the e