public class CrossCorrelation<S extends RealType<S>,T extends RealType<T>> extends Object implements Algorithm, MultiThreaded
| Constructor and Description |
|---|
CrossCorrelation(Image<S> image1,
Image<T> image2) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkInput() |
protected double |
computeAdvancedSum(double avg1,
double avg2) |
protected <R extends RealType<R>> |
computeAvg(Image<R> image) |
protected double |
computeSimple(double avg1,
double avg2) |
static <S extends RealType<S>,T extends RealType<T>> |
correlate(Image<S> img1,
Image<T> img2) |
String |
getErrorMessage() |
int |
getNumThreads()
The number of threads used by the algorithm
|
double |
getR() |
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 static <S extends RealType<S>,T extends RealType<T>> double correlate(Image<S> img1, Image<T> img2)
public double getR()
public boolean checkInput()
checkInput in interface Algorithmprotected double computeSimple(double avg1,
double avg2)
protected double computeAdvancedSum(double avg1,
double avg2)
public String getErrorMessage()
getErrorMessage in interface Algorithmpublic void setNumThreads()
MultiThreadedsetNumThreads in interface MultiThreadedpublic void setNumThreads(int numThreads)
MultiThreadedsetNumThreads in interface MultiThreadednumThreads - - number of threads to usepublic int getNumThreads()
MultiThreadedgetNumThreads in interface MultiThreadedCopyright © 2015–2021 Fiji. All rights reserved.