Package boofcv.alg.transform.fft
Class GDiscreteFourierTransformOps
- java.lang.Object
-
- boofcv.alg.transform.fft.GDiscreteFourierTransformOps
-
public class GDiscreteFourierTransformOps extends java.lang.ObjectImplementation of functions inDiscreteFourierTransformOpswhich are image type agnostic
-
-
Constructor Summary
Constructors Constructor Description GDiscreteFourierTransformOps()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends boofcv.struct.image.GrayF<T>,W extends boofcv.struct.image.ImageInterleaved>
DiscreteFourierTransform<T,W>createTransform(boofcv.struct.image.ImageDataType type)Creates aDiscreteFourierTransformfor the specified type.static voidmagnitude(boofcv.struct.image.ImageInterleaved transform, boofcv.struct.image.GrayF magnitude)Computes the magnitude of the complex image:
magnitude = sqrt( real2 + imaginary2 )static voidmultiplyComplex(boofcv.struct.image.ImageInterleaved complexA, boofcv.struct.image.ImageInterleaved complexB, boofcv.struct.image.ImageInterleaved complexC)Performs element-wise complex multiplication between two complex images.static voidmultiplyRealComplex(boofcv.struct.image.GrayF realA, boofcv.struct.image.ImageInterleaved complexB, boofcv.struct.image.ImageInterleaved complexC)Performs element-wise complex multiplication between a real image and a complex image.static voidphase(boofcv.struct.image.ImageInterleaved transform, boofcv.struct.image.GrayF phase)Computes the phase of the complex image:
phase = atan2( imaginary , real )static voidrealToComplex(boofcv.struct.image.GrayF real, boofcv.struct.image.ImageInterleaved complex)Converts a regular image into a complex interleaved image with the imaginary component set to zero.static voidshiftZeroFrequency(boofcv.struct.image.ImageInterleaved transform, boolean forward)Moves the zero-frequency component into the image center (width/2,height/2).
-
-
-
Method Detail
-
createTransform
public static <T extends boofcv.struct.image.GrayF<T>,W extends boofcv.struct.image.ImageInterleaved> DiscreteFourierTransform<T,W> createTransform(boofcv.struct.image.ImageDataType type)
Creates aDiscreteFourierTransformfor the specified type.- Parameters:
type- Image data type- Returns:
DiscreteFourierTransform- See Also:
DiscreteFourierTransform
-
shiftZeroFrequency
public static void shiftZeroFrequency(boofcv.struct.image.ImageInterleaved transform, boolean forward)Moves the zero-frequency component into the image center (width/2,height/2). This function can be called to undo the transform.- Parameters:
transform- the DFT which is to be shifted.forward- If true then it does the shift in the forward direction. If false then it undoes the transforms.
-
magnitude
public static void magnitude(boofcv.struct.image.ImageInterleaved transform, boofcv.struct.image.GrayF magnitude)Computes the magnitude of the complex image:
magnitude = sqrt( real2 + imaginary2 )- Parameters:
transform- (Input) Complex interleaved imagemagnitude- (Output) Magnitude of image
-
phase
public static void phase(boofcv.struct.image.ImageInterleaved transform, boofcv.struct.image.GrayF phase)Computes the phase of the complex image:
phase = atan2( imaginary , real )- Parameters:
transform- (Input) Complex interleaved imagephase- (output) Phase of image
-
realToComplex
public static void realToComplex(boofcv.struct.image.GrayF real, boofcv.struct.image.ImageInterleaved complex)Converts a regular image into a complex interleaved image with the imaginary component set to zero.- Parameters:
real- (Input) Regular image.complex- (Output) Equivalent complex image.
-
multiplyRealComplex
public static void multiplyRealComplex(boofcv.struct.image.GrayF realA, boofcv.struct.image.ImageInterleaved complexB, boofcv.struct.image.ImageInterleaved complexC)Performs element-wise complex multiplication between a real image and a complex image.- Parameters:
realA- (Input) Regular imagecomplexB- (Input) Complex imagecomplexC- (Output) Complex image
-
multiplyComplex
public static void multiplyComplex(boofcv.struct.image.ImageInterleaved complexA, boofcv.struct.image.ImageInterleaved complexB, boofcv.struct.image.ImageInterleaved complexC)Performs element-wise complex multiplication between two complex images.- Parameters:
complexA- (Input) Complex imagecomplexB- (Input) Complex imagecomplexC- (Output) Complex image
-
-