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 Algorithm
public long getProcessingTime()
getProcessingTime
in interface Benchmark
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 String getErrorMessage()
getErrorMessage
in interface Algorithm
Copyright © 2015–2022 ImgLib2. All rights reserved.