public class DownSample<T extends RealType<T>> extends Object implements MultiThreaded, OutputAlgorithm<T>, Benchmark
Constructor and Description |
---|
DownSample(Image<T> image,
float downSamplingFactor) |
DownSample(Image<T> image,
int[] newSize,
float sourceSigma,
float targetSigma) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkInput() |
String |
getErrorMessage() |
Image<T> |
getInputImage() |
int[] |
getNewSize() |
int |
getNumThreads()
The number of threads used by the algorithm
|
long |
getProcessingTime() |
Image<T> |
getResult() |
float |
getSourceSigma() |
float |
getTargetSigma() |
boolean |
process() |
void |
setDownSamplingFactor(float factor) |
void |
setInputImage(Image<T> image) |
void |
setNewSize(int[] newSize) |
void |
setNumThreads()
Sets the number of threads to the amount of processors available
|
void |
setNumThreads(int numThreads)
Sets the number of threads
|
void |
setSourceSigma(float sourceSigma) |
void |
setTargetSigma(float targetSigma) |
public void setSourceSigma(float sourceSigma)
public void setTargetSigma(float targetSigma)
public void setDownSamplingFactor(float factor)
public void setNewSize(int[] newSize)
public float getSourceSigma()
public float getTargetSigma()
public int[] getNewSize()
public boolean checkInput()
checkInput
in interface Algorithm
public String getErrorMessage()
getErrorMessage
in interface Algorithm
public Image<T> getResult()
getResult
in interface OutputAlgorithm<T extends RealType<T>>
public long getProcessingTime()
getProcessingTime
in interface Benchmark
public int getNumThreads()
MultiThreaded
getNumThreads
in interface MultiThreaded
public void setNumThreads()
MultiThreaded
setNumThreads
in interface MultiThreaded
public void setNumThreads(int numThreads)
MultiThreaded
setNumThreads
in interface MultiThreaded
numThreads
- - number of threads to useCopyright © 2015–2021 Fiji. All rights reserved.