28 #ifndef IMAGES_IMAGEFFT_H
29 #define IMAGES_IMAGEFFT_H
38 class CoordinateSystem;
40 template<
class T>
class Vector;
138 = std::complex<typename casacore::NumericTraits<T>::BaseType>;
194 template <
class U>
static void _copyMask(
207 template <
class U>
static void _fftsky(
214 template <
class U>
static void _fft(
247 #ifndef AIPS_NO_TEMPLATE_SRC
248 #include <imageanalysis/ImageAnalysis/ImageFFT.tcc>
A Vector of integers, for indexing into Array<T> objects.
std::vector< double > Vector
static void _setSkyCoordinates(casacore::ImageInterface< ComplexType > &out, const casacore::CoordinateSystem &csys, const casacore::IPosition &shape, casacore::uInt dC)
Overwrite the coordinate system with Fourier coordinates for sky axes only.
static void _fft(casacore::ImageInterface< U > &out, const casacore::ImageInterface< T > &in, const casacore::Vector< casacore::Bool > &axes)
U must be a complex type (Complex, DComplex)
void getAmplitude(casacore::ImageInterface< RealType > &out) const
void _copyMost(casacore::ImageInterface< U > &out) const
common image copy stuff
static void _copyMask(casacore::ImageInterface< U > &out, const casacore::ImageInterface< T > &in)
Copy the mask to the output.
void fft(const casacore::ImageInterface< T > &in, const casacore::Vector< casacore::Bool > &axes)
Do the FFT of the specified pixel axes (true to FT).
void getComplex(casacore::ImageInterface< ComplexType > &out) const
Return the FFT (from the last call to fftsky or fft) in the desired form.
void _copyMiscellaneous(casacore::ImageInterface< U > &out) const
Copy MiscInfo, casacore::ImageInfo, casacore::Unit, logSInk to output.
A base class for astronomical images.
LatticeExprNode ndim(const LatticeExprNode &expr)
1-argument function to get the dimensionality of a lattice.
void checkAxes(const casacore::CoordinateSystem &cSys, casacore::uInt ndim, const casacore::Vector< casacore::Bool > &axes)
Check axes for multi-dim FFT.
bool Bool
Define the standard types used by Casacore.
ImageFFT & operator=(const ImageFFT &other)
Assignment (reference semantics)
typename casacore::NumericTraits< T >::BaseType RealType
static casacore::Bool _findSky(casacore::Int &dC, casacore::Vector< casacore::Int > &pixelAxes, casacore::Vector< casacore::Int > &worldAxes, const casacore::CoordinateSystem &cSys, casacore::Bool throwIt)
Find the sky axes in this CoordinateSystem.
void getPhase(casacore::ImageInterface< RealType > &out) const
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape...
void getReal(casacore::ImageInterface< RealType > &out) const
std::complex< typename casacore::NumericTraits< T >::BaseType > ComplexType
static void _fftsky(casacore::ImageInterface< U > &out, const casacore::ImageInterface< T > &in, const casacore::Vector< casacore::Int > &pixelAxes)
U must be a complex type (Complex, DComplex)
void getImaginary(casacore::ImageInterface< RealType > &out) const
Char BaseType
Numeric type.
void fftsky(const casacore::ImageInterface< T > &in)
Do the FFT of the sky plane to the uv plane Masked pixels are set to zero before the FT...
void _setCoordinates(casacore::ImageInterface< ComplexType > &out, const casacore::CoordinateSystem &cSys, const casacore::Vector< casacore::Bool > &axes, const casacore::IPosition &shape)
Overwrite the coordinate system with Fourier coordinates for all designated axes. ...
Interconvert pixel and world coordinates.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.