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 Algorithmpublic String getErrorMessage()
getErrorMessage in interface Algorithmpublic Map<Localizable,double[]> getResult()
getResult in interface OutputAlgorithm<Map<Localizable,double[]>>public void setNumThreads()
MultiThreadedsetNumThreads in interface MultiThreadedpublic void setNumThreads(int numThreads)
MultiThreadedsetNumThreads in interface MultiThreadednumThreads - - number of threads to usepublic int getNumThreads()
MultiThreadedgetNumThreads in interface MultiThreadedpublic long getProcessingTime()
getProcessingTime in interface BenchmarkCopyright © 2015–2022 ImgLib2. All rights reserved.