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 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–2021 Fiji. All rights reserved.