Main Page | Class List | Directories | File List | Class Members | File Members

ObitConvUtil.h File Reference

ObitConvUtil utility module definition for the ObitImage class. More...

#include "Obit.h"
#include "ObitErr.h"
#include "ObitImage.h"
#include "ObitFFT.h"

Go to the source code of this file.

Functions

void ObitConvUtilConv (ObitImage *inImage, ObitFArray *convFn, gboolean doDivide, gfloat rescale, ObitImage *outImage, ObitErr *err)
 (de)Convolve an Image with an FArray and write outImage This routine convolves all selected planes in inImage with convFn if doDivide is FALSE, else it does a linear deconvolution Operations are performed using FFTs
ObitFArrayObitConvUtilGaus (ObitImage *inImage, gfloat Beam[3])
 Create an ObitFArray containing a unit area Gaussian in the center.
void ObitConvUtilDeconv (gfloat fmaj, gfloat fmin, gfloat fpa, gfloat cmaj, gfloat cmin, gfloat cpa, gfloat *rmaj, gfloat *rmin, gfloat *rpa)
 Deconvolves a Gaussian "beam" from a Gaussian component.


Detailed Description

ObitConvUtil utility module definition for the ObitImage class.

Routines for image convolution


Function Documentation

void ObitConvUtilConv ObitImage inImage,
ObitFArray convFn,
gboolean  doDivide,
gfloat  rescale,
ObitImage outImage,
ObitErr err
 

(de)Convolve an Image with an FArray and write outImage This routine convolves all selected planes in inImage with convFn if doDivide is FALSE, else it does a linear deconvolution Operations are performed using FFTs

Parameters:
inImage Input ObitImage
convFn Convolving Function
doDovide If true divide FT of convFn into FT of inImage, else multiply
rescale multiplication factor to scale output to correct units
outImage Output ObitImage must be a clone of inImage Actual convolution size must be set externally
err ObitErr for reporting errors.

void ObitConvUtilDeconv gfloat  fmaj,
gfloat  fmin,
gfloat  fpa,
gfloat  cmaj,
gfloat  cmin,
gfloat  cpa,
gfloat *  rmaj,
gfloat *  rmin,
gfloat *  rpa
 

Deconvolves a Gaussian "beam" from a Gaussian component.

Routine translated from the AIPSish APL/SUB/DECONV.FOR/DECONV

Parameters:
fmaj Convolved major axis
fmin Convolved minor axis
fpa Convolved position angle of major axis
cmaj Beam major axis
cmin Beam minor axis
cpa Beam position angle of major axis
rmaj [out] Actual major axis; = 0 => unable to fit
rmin [out] Actual minor axis; = 0 => unable to fit
rpa [out] Actual position angle of major axis

ObitFArray* ObitConvUtilGaus ObitImage inImage,
gfloat  Beam[3]
 

Create an ObitFArray containing a unit area Gaussian in the center.

Parameters:
inImage ObitImage giving the geometry of the output array
Beam Gaussian major, minor axis, position angle all in deg. If there is no pixel spacing information in the inImage descriptor then the size is assumed in pixels.
Returns:
new ObitFArray, should be Unreffed when done


Generated on Fri Aug 31 22:13:05 2007 for Obit by  doxygen 1.3.9.1