public class PhaseCorrelation<T extends RealType<T>,S extends RealType<S>> extends Object implements MultiThreaded, Algorithm, Benchmark
Constructor and Description |
---|
PhaseCorrelation(Image<T> image1,
Image<S> image2) |
PhaseCorrelation(Image<T> image1,
Image<S> image2,
int numPeaks,
boolean verifyWithCrossCorrelation) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkInput() |
protected boolean |
computeFFT(FourierTransform<T,ComplexFloatType> fft1,
FourierTransform<S,ComplexFloatType> fft2) |
protected ArrayList<PhaseCorrelationPeak> |
extractPhaseCorrelationPeaks(Image<FloatType> invPCM,
int numPeaks,
FourierTransform<?,?> fft1,
FourierTransform<?,?> fft2) |
ArrayList<PhaseCorrelationPeak> |
getAllShifts() |
boolean |
getComputeFFTinParalell() |
String |
getErrorMessage() |
int |
getInvestigateNumPeaks() |
boolean |
getKeepPhaseCorrelationMatrix() |
protected static int[] |
getMaxDim(Image<?> image1,
Image<?> image2) |
int[] |
getMinimalPixelOverlap() |
float |
getNormalizationThreshold() |
int |
getNumThreads()
The number of threads used by the algorithm
|
Image<FloatType> |
getPhaseCorrelationMatrix() |
long |
getProcessingTime() |
PhaseCorrelationPeak |
getShift() |
boolean |
getVerifyWithCrossCorrelation() |
protected void |
multiplyInPlace(Image<ComplexFloatType> fftImage1,
Image<ComplexFloatType> fftImage2) |
protected void |
normalizeAndConjugate(Image<ComplexFloatType> fftImage1,
Image<ComplexFloatType> fftImage2) |
boolean |
process() |
void |
setComputeFFTinParalell(boolean computeFFTinParalell) |
void |
setInvestigateNumPeaks(int numPeaks) |
void |
setKeepPhaseCorrelationMatrix(boolean keepPCM) |
void |
setMinimalPixelOverlap(int minOverlapPx) |
void |
setMinimalPixelOverlap(int[] minOverlapPx) |
void |
setNormalizationThreshold(int normalizationThreshold) |
void |
setNumThreads()
Sets the number of threads to the amount of processors available
|
void |
setNumThreads(int numThreads)
Sets the number of threads
|
void |
setVerifyWithCrossCorrelation(boolean verifyWithCrossCorrelation) |
static <T extends RealType<T>,S extends RealType<S>> |
testCrossCorrelation(int[] shift,
Image<T> image1,
Image<S> image2) |
static <T extends RealType<T>,S extends RealType<S>> |
testCrossCorrelation(int[] shift,
Image<T> image1,
Image<S> image2,
int minOverlapPx) |
static <T extends RealType<T>,S extends RealType<S>> |
testCrossCorrelation(int[] shift,
Image<T> image1,
Image<S> image2,
int[] minOverlapPx) |
static <T extends RealType<T>,S extends RealType<S>> |
testCrossCorrelation(int[] shift,
Image<T> image1,
Image<S> image2,
int[] minOverlapPx,
long[] numPixels) |
static <T extends RealType<T>,S extends RealType<S>> |
testCrossCorrelation(int[] shift,
Image<T> image1,
Image<S> image2,
int minOverlapPx,
long[] numPixels) |
protected void |
verifyWithCrossCorrelation(ArrayList<PhaseCorrelationPeak> peakList,
int[] dimInvPCM,
Image<T> image1,
Image<S> image2) |
public PhaseCorrelation(Image<T> image1, Image<S> image2, int numPeaks, boolean verifyWithCrossCorrelation)
public void setComputeFFTinParalell(boolean computeFFTinParalell)
public void setInvestigateNumPeaks(int numPeaks)
public void setKeepPhaseCorrelationMatrix(boolean keepPCM)
public void setNormalizationThreshold(int normalizationThreshold)
public void setVerifyWithCrossCorrelation(boolean verifyWithCrossCorrelation)
public void setMinimalPixelOverlap(int[] minOverlapPx)
public void setMinimalPixelOverlap(int minOverlapPx)
public boolean getComputeFFTinParalell()
public int getInvestigateNumPeaks()
public boolean getKeepPhaseCorrelationMatrix()
public float getNormalizationThreshold()
public boolean getVerifyWithCrossCorrelation()
public int[] getMinimalPixelOverlap()
public PhaseCorrelationPeak getShift()
public ArrayList<PhaseCorrelationPeak> getAllShifts()
protected void verifyWithCrossCorrelation(ArrayList<PhaseCorrelationPeak> peakList, int[] dimInvPCM, Image<T> image1, Image<S> image2)
public static <T extends RealType<T>,S extends RealType<S>> double testCrossCorrelation(int[] shift, Image<T> image1, Image<S> image2)
public static <T extends RealType<T>,S extends RealType<S>> double testCrossCorrelation(int[] shift, Image<T> image1, Image<S> image2, int minOverlapPx)
public static <T extends RealType<T>,S extends RealType<S>> double testCrossCorrelation(int[] shift, Image<T> image1, Image<S> image2, int minOverlapPx, long[] numPixels)
public static <T extends RealType<T>,S extends RealType<S>> double testCrossCorrelation(int[] shift, Image<T> image1, Image<S> image2, int[] minOverlapPx)
public static <T extends RealType<T>,S extends RealType<S>> double testCrossCorrelation(int[] shift, Image<T> image1, Image<S> image2, int[] minOverlapPx, long[] numPixels)
protected ArrayList<PhaseCorrelationPeak> extractPhaseCorrelationPeaks(Image<FloatType> invPCM, int numPeaks, FourierTransform<?,?> fft1, FourierTransform<?,?> fft2)
protected void multiplyInPlace(Image<ComplexFloatType> fftImage1, Image<ComplexFloatType> fftImage2)
protected void normalizeAndConjugate(Image<ComplexFloatType> fftImage1, Image<ComplexFloatType> fftImage2)
protected boolean computeFFT(FourierTransform<T,ComplexFloatType> fft1, FourierTransform<S,ComplexFloatType> fft2)
public long getProcessingTime()
getProcessingTime
in interface Benchmark
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 boolean checkInput()
checkInput
in interface Algorithm
public String getErrorMessage()
getErrorMessage
in interface Algorithm
Copyright © 2015–2021 Fiji. All rights reserved.