public class ComputeMinMax<T extends Type<T> & Comparable<T>> extends Object implements Algorithm, MultiThreaded, Benchmark
| Constructor and Description |
|---|
ComputeMinMax(IterableInterval<T> interval,
T min,
T max) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkInput() |
protected void |
compute(long startPos,
long loopSize,
T min,
T max) |
static <T extends Comparable<T> & Type<T>> |
computeMinMax(RandomAccessibleInterval<T> interval,
T min,
T max)
Computes minimal and maximal value in a given interval
|
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 ComputeMinMax(IterableInterval<T> interval, T min, T max)
public static final <T extends Comparable<T> & Type<T>> void computeMinMax(RandomAccessibleInterval<T> interval, T min, T max)
interval - min - max - 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–2022 ImgLib2. All rights reserved.