public class DefaultMinMaxMethod<T extends Type<T> & Comparable<T>> extends AbstractMinMaxMethod<T>
MinMaxMethod
implementation that forks
net.imglib2.algorithm.stats.ComputeMinMax
.initialized
Constructor and Description |
---|
DefaultMinMaxMethod() |
Modifier and Type | Method and Description |
---|---|
boolean |
checkInput()
Verifies method inputs
|
protected void |
compute(int threadNumber,
long startPos,
long loopSize,
T min,
T max) |
String |
getErrorMessage() |
T |
getMax() |
T |
getMin() |
int |
getNumThreads() |
long |
getProcessingTime() |
void |
initialize(Img<T> img)
Sets the provided Img as the target interval for computation.
|
void |
initialize(Img<T> img,
T min,
T max)
Sets the provided Img as the target interval for computation,
as well as initial min and max values.
|
void |
initialize(IterableInterval<T> interval)
Sets the target interval for computation.
|
void |
initialize(IterableInterval<T> interval,
T min,
T max)
Sets the target interval for computation, as well as initial
min and max values.
|
void |
initialize(RandomAccessibleInterval<T> interval)
Sets the target interval for computation.
|
void |
initialize(RandomAccessibleInterval<T> interval,
T min,
T max)
Sets the target interval for computation, as well as initial
min and max values.
|
boolean |
process()
Begins searching the target interval for minimum and
maximum values.
|
void |
setNumThreads()
Sets number of threads to default
|
void |
setNumThreads(int numThreads)
Sets number of threads to use
|
initializeCheck
getInfo, getPriority, setInfo, setPriority, toString
context, getContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
public void initialize(Img<T> img, T min, T max)
MinMaxMethod
public void initialize(IterableInterval<T> interval, T min, T max)
MinMaxMethod
public void initialize(RandomAccessibleInterval<T> interval, T min, T max)
MinMaxMethod
public void initialize(Img<T> img)
MinMaxMethod
public void initialize(IterableInterval<T> interval)
MinMaxMethod
public void initialize(RandomAccessibleInterval<T> interval)
MinMaxMethod
public T getMin()
public T getMax()
public boolean process()
MinMaxMethod
MinMaxMethod.getErrorMessage()
public boolean checkInput()
MinMaxMethod
public long getProcessingTime()
public void setNumThreads()
MinMaxMethod
public void setNumThreads(int numThreads)
MinMaxMethod
public int getNumThreads()
public String getErrorMessage()
Copyright © 2014–2022 ImageJ. All rights reserved.