public class ThresholdDetector<T extends RealType<T> & NativeType<T>> extends Object implements SpotDetector<T>, MultiThreaded
Modifier and Type | Field and Description |
---|---|
protected String |
baseErrorMessage |
protected double[] |
calibration |
protected String |
errorMessage |
protected RandomAccessible<T> |
input
The mask.
|
protected Interval |
interval |
protected int |
numThreads |
protected long |
processingTime
The processing time in ms.
|
protected boolean |
simplify
If
true , the contours will be smoothed and simplified. |
protected List<Spot> |
spots
The list of
Spot that will be populated by this detector. |
protected double |
threshold |
Constructor and Description |
---|
ThresholdDetector(RandomAccessible<T> input,
Interval interval,
double[] calibration,
double threshold,
boolean simplify) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkInput() |
String |
getErrorMessage() |
int |
getNumThreads() |
long |
getProcessingTime() |
List<Spot> |
getResult() |
boolean |
process() |
void |
setNumThreads() |
void |
setNumThreads(int numThreads) |
protected RandomAccessible<T extends RealType<T> & NativeType<T>> input
protected String baseErrorMessage
protected String errorMessage
protected long processingTime
protected int numThreads
protected final Interval interval
protected final double[] calibration
protected final double threshold
protected final boolean simplify
true
, the contours will be smoothed and simplified.public ThresholdDetector(RandomAccessible<T> input, Interval interval, double[] calibration, double threshold, boolean simplify)
public List<Spot> getResult()
getResult
in interface OutputAlgorithm<List<Spot>>
public boolean checkInput()
checkInput
in interface Algorithm
public String getErrorMessage()
getErrorMessage
in interface Algorithm
public long getProcessingTime()
getProcessingTime
in interface Benchmark
public void setNumThreads()
setNumThreads
in interface MultiThreaded
public void setNumThreads(int numThreads)
setNumThreads
in interface MultiThreaded
public int getNumThreads()
getNumThreads
in interface MultiThreaded
Copyright © 2015–2021 Fiji. All rights reserved.