public class ImageConverter<S extends Type<S>,T extends Type<T>> extends Object implements OutputAlgorithm<T>, MultiThreaded, Benchmark
Constructor and Description |
---|
ImageConverter(Image<S> image,
Image<T> output,
Converter<S,T> converter) |
ImageConverter(Image<S> image,
ImageFactory<T> factory,
Converter<S,T> converter) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkInput() |
protected void |
computeAdvanced(long startPos,
long loopSize) |
protected void |
computeSimple(long startPos,
long loopSize) |
protected static <T extends Type<T>> |
createImageFromFactory(ImageFactory<T> factory,
int[] size) |
String |
getErrorMessage() |
int |
getNumThreads()
The number of threads used by the algorithm
|
long |
getProcessingTime() |
Image<T> |
getResult() |
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 Image<T> getResult()
getResult
in interface OutputAlgorithm<T extends Type<T>>
public boolean checkInput()
checkInput
in interface Algorithm
protected void computeSimple(long startPos, long loopSize)
protected void computeAdvanced(long startPos, long loopSize)
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
public long getProcessingTime()
getProcessingTime
in interface Benchmark
protected static <T extends Type<T>> Image<T> createImageFromFactory(ImageFactory<T> factory, int[] size)
Copyright © 2015–2021 Fiji. All rights reserved.