public class ComputeMinMax<T extends Type<T> & Comparable<T>> extends Object implements Algorithm, MultiThreaded, Benchmark
| Constructor and Description |
|---|
ComputeMinMax(Image<T> image) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkInput() |
protected void |
compute(long startPos,
long loopSize,
T min,
T max) |
String |
getErrorMessage() |
T |
getMax() |
T |
getMin() |
int |
getNumThreads()
The number of threads used by the algorithm
|
long |
getProcessingTime() |
boolean |
process() |
void |
setNumThreads()
Sets the number of threads to the amount of processors available
|
void |
setNumThreads(int numThreads)
Sets the number of threads
|
public T getMin()
public T getMax()
public boolean checkInput()
checkInput in interface Algorithmpublic long getProcessingTime()
getProcessingTime in interface Benchmarkpublic 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 String getErrorMessage()
getErrorMessage in interface AlgorithmCopyright © 2015–2021 Fiji. All rights reserved.