public class PeakFitter<T extends RealType<T>> extends Object implements MultiThreaded, OutputAlgorithm<Map<Localizable,double[]>>, Benchmark
Constructor and Description |
---|
PeakFitter(RandomAccessibleInterval<T> image,
Collection<Localizable> peaks,
FunctionFitter fitter,
FitFunction peakFunction,
StartPointEstimator estimator) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkInput() |
String |
getErrorMessage() |
int |
getNumThreads()
The number of threads used by the algorithm
|
long |
getProcessingTime() |
Map<Localizable,double[]> |
getResult() |
boolean |
process() |
void |
setNumThreads()
Sets the number of threads to the amount of processors available
|
void |
setNumThreads(int numThreads)
Sets the number of threads
|
String |
toString() |
public PeakFitter(RandomAccessibleInterval<T> image, Collection<Localizable> peaks, FunctionFitter fitter, FitFunction peakFunction, StartPointEstimator estimator)
image
- the image to operate on.public boolean checkInput()
checkInput
in interface Algorithm
public String getErrorMessage()
getErrorMessage
in interface Algorithm
public Map<Localizable,double[]> getResult()
getResult
in interface OutputAlgorithm<Map<Localizable,double[]>>
public void setNumThreads()
MultiThreaded
setNumThreads
in interface MultiThreaded
public void setNumThreads(int numThreads)
MultiThreaded
setNumThreads
in interface MultiThreaded
numThreads
- - number of threads to usepublic int getNumThreads()
MultiThreaded
getNumThreads
in interface MultiThreaded
public long getProcessingTime()
getProcessingTime
in interface Benchmark
Copyright © 2015–2022 ImgLib2. All rights reserved.