public static final class DetectionPreview.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
DetectionPreview.Builder |
axisLabel(String axisLabel)
Sets the axis label to appear on the histogram.
|
DetectionPreview.Builder |
detectionSettingsSupplier(Supplier<Map<String,Object>> detectionSettingsSupplier)
Sets the supplier function that will return the detector settings to
use for the preview.
|
DetectionPreview.Builder |
detectorFactory(SpotDetectorFactoryBase<?> detectorFactory)
Sets the detector factory to use for the preview.
|
DetectionPreview.Builder |
frameSupplier(Supplier<Integer> frameSupplier)
Sets the supplier function that will return the frame to run the
preview on.
|
DetectionPreview |
get() |
DetectionPreview.Builder |
model(Model model)
Sets the model to update with the preview action.
|
DetectionPreview.Builder |
settings(Settings settings)
Sets the
Settings object to use for preview. |
DetectionPreview.Builder |
thresholdKey(String thresholdKey)
Sets the key to the parameters that thresholds the quality values
displayed on the histogram.
|
DetectionPreview.Builder |
thresholdTextField(JFormattedTextField ftf)
Sets the
JFormattedTextField to update when the user changes
the threshold value on the quality histogram. |
DetectionPreview.Builder |
thresholdUpdater(DoubleConsumer thresholdUpdater)
Sets the consumer function that will be called with the threshold
value sets by the user on the quality histogram.
|
public DetectionPreview.Builder model(Model model)
The spots field of the specified model will be updated
with the spots found by the preview action and the model will be
notified.
model - the model to update. If null, the preview
will run but won't update a model.public DetectionPreview.Builder settings(Settings settings)
Settings object to use for preview.
Only the Settings.imp field and the ROI methods will be used
to generate the preview. Settings.imp cannot be
null.
settings - the settings to use. Cannot be null.public DetectionPreview.Builder detectorFactory(SpotDetectorFactoryBase<?> detectorFactory)
settings(Settings).detectorFactory - the detector factory to use for the preview. Cannot be
null.public DetectionPreview.Builder frameSupplier(Supplier<Integer> frameSupplier)
By default, the current frame is read from the image in the
settings field using:
() -> ( settings.imp.getFrame() - 1 )
frameSupplier - the frame supplier function. Cannot be null.
Must return a valid frame number.public DetectionPreview.Builder detectionSettingsSupplier(Supplier<Map<String,Object>> detectionSettingsSupplier)
detectionSettingsSupplier - the supplier function that will return the detector
settings to use for the preview. Cannot be
null. Must return a settings map valid for
the detector set by
detectorFactory(SpotDetectorFactoryBase).public DetectionPreview.Builder thresholdUpdater(DoubleConsumer thresholdUpdater)
null makes the histogram non-interactive.thresholdUpdater - the consumer function called with the threshold value sets
by the user on the quality histogram. If null
then the histogram plot won't be interactive.thresholdTextField(JFormattedTextField)public DetectionPreview.Builder thresholdTextField(JFormattedTextField ftf)
JFormattedTextField to update when the user changes
the threshold value on the quality histogram.ftf - the consumer formatted field that will be updated when the
user sets the threshold value on the quality histogram.thresholdUpdaterpublic DetectionPreview.Builder axisLabel(String axisLabel)
axisLabel - the axis label to appear on the histogrampublic DetectionPreview.Builder thresholdKey(String thresholdKey)
null and if this key
can be found in the detector settings, then the quality histogram
will display all quality values for all spots, and show the
value above threshold with a marker.
By default it is DetectorKeys.KEY_THRESHOLD. Can be tuned to
another value for detectors that threshold quality using another
parameter. If the key does not exist in the detector settings, this
is simply ignored.
thresholdKey - the parameter key to use for thresholding.public DetectionPreview get()
Copyright © 2010–2024 TrackMate. All rights reserved.