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 Algorithm
protected double computeSimple(double avg1, double avg2)
protected double computeAdvancedSum(double avg1, double avg2)
public String getErrorMessage()
getErrorMessage
in interface Algorithm
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
Copyright © 2015–2021 Fiji. All rights reserved.