public class DetectionPreview extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DetectionPreview.Builder |
| Modifier | Constructor and Description |
|---|---|
protected |
DetectionPreview(Model model,
Settings settings,
SpotDetectorFactoryBase<?> detectorFactory,
Supplier<Map<String,Object>> detectionSettingsSupplier,
Supplier<Integer> currentFrameSupplier,
DoubleConsumer thresholdUpdater,
String axisLabel,
String thresholdKey) |
| Modifier and Type | Method and Description |
|---|---|
static DetectionPreview.Builder |
create() |
Logger |
getLogger() |
DetectionPreviewPanel |
getPanel() |
protected void |
preview(Model model,
Settings settings,
SpotDetectorFactoryBase<?> detectorFactory,
Map<String,Object> detectorSettings,
int frame,
String thresholdKey) |
protected Pair<Model,Double> |
runPreviewDetection(Settings settings,
int frame,
SpotDetectorFactoryBase<?> detectorFactory,
Map<String,Object> detectorSettings,
String thresholdKey)
Runs the preview with the specified parameters.
|
protected void |
updateModelAndHistogram(Model targetModel,
Model sourceModel,
int frame,
double threshold) |
public DetectionPreviewPanel getPanel()
public Logger getLogger()
protected void preview(Model model, Settings settings, SpotDetectorFactoryBase<?> detectorFactory, Map<String,Object> detectorSettings, int frame, String thresholdKey)
protected Pair<Model,Double> runPreviewDetection(Settings settings, int frame, SpotDetectorFactoryBase<?> detectorFactory, Map<String,Object> detectorSettings, String thresholdKey)
settings - the settings object to use as preview. Will be used for its
image and ROI fields.frame - the frame in which to perform the preview.detectorFactory - the detector to use for the preview.detectorSettings - suitable detection settings for the detector.thresholdKey - a key to a parameter that is used by the detector to threshold
spots based on their quality. This will be used to configure
the preview so that the generated histogram is interactive. If
null or not used by the detector, this is simply
ignored.thresholdKey
parameter is used. This threshold value is to be used with the
updateModelAndHistogram(Model, Model, int, double)
method to properly display the quality histogram.protected void updateModelAndHistogram(Model targetModel, Model sourceModel, int frame, double threshold)
public static DetectionPreview.Builder create()
Copyright © 2010–2024 TrackMate. All rights reserved.