casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes
casa::Feather Class Reference

Class that contains functions needed for feathering. More...

#include <Feather.h>

List of all members.

Public Member Functions

 Feather ()
 default constructor
 Feather (const ImageInterface< Float > &SDImage, const ImageInterface< Float > &INTImage, Float sdScale=1.0)
 Constructor.
virtual ~Feather ()
 Destructor.
void setSDScale (Float sdscale=1.0)
 set the SDimage and Int images
void setSDImage (const ImageInterface< Float > &SDImage)
void setINTImage (const ImageInterface< Float > &IntImage)
Bool setEffectiveDishDiam (const Float xdiam, const Float ydiam=-1.0)
 set and get effective dish diameter to be used in feathering function setEffectiveDishDiam will return False if you are trying to assign a finer resolution than what the original data came with
void getEffectiveDishDiam (Float &xdiam, Float &ydiam)
void getFTCutSDImage (Vector< Float > &ux, Vector< Float > &xamp, Vector< Float > &uy, Vector< Float > &yamp)
 Get the 1-D slices of amplitude along the x and y axis of the FFT of images Note the SD image is already feathered by its beam..you cannot get unfeathered SD data as it implies deconvolution.
void getFTCutIntImage (Vector< Float > &ux, Vector< Float > &xamp, Vector< Float > &uy, Vector< Float > &yamp)
void getFeatherSD (Vector< Float > &ux, Vector< Float > &xamp, Vector< Float > &uy, Vector< Float > &yamp)
 Get the 1-D slices of the feathering function that will be applied on SD and INTerf data.
void getFeatherINT (Vector< Float > &ux, Vector< Float > &xamp, Vector< Float > &uy, Vector< Float > &yamp)
void getFeatheredCutSD (Vector< Float > &ux, Vector< Float > &xamp, Vector< Float > &uy, Vector< Float > &yamp)
 Get 1-D slices of the feathered data ...
void getFeatheredCutINT (Vector< Float > &ux, Vector< Float > &xamp, Vector< Float > &uy, Vector< Float > &yamp)
Bool saveFeatheredImage (const String &imagename)
 write the feathered image to disk

Static Public Member Functions

static void feather (const String &image, const ImageInterface< Float > &high, const ImageInterface< Float > &low, const Float &sdScale=1.0, const String &lowPSF="", const Bool useDefault=True, const String &vpTable="", Float effSDDiam=-1.0, const Bool lowpassfiltersd=False)
static Double worldFreq (const CoordinateSystem &cs, Int spectralpix=0)

Private Member Functions

void fillXVectors (Vector< Float > &ux, Vector< Float > &uy) const
void getCutXY (Vector< Float > &ux, Vector< Float > &xamp, Vector< Float > &uy, Vector< Float > &yamp, ImageInterface< Complex > &ftimage)
void calcCWeightImage ()
void applyFeather ()

Static Private Member Functions

static void applyDishDiam (ImageInterface< Complex > &image, GaussianBeam &beam, Float effDiam, ImageInterface< Float > &newbeam, Vector< Quantity > &extraconv)
static void getLowBeam (const ImageInterface< Float > &low0, const String &lowPSF, const Bool useDefaultPB, const String &vpTableStr, GaussianBeam &lBeam)
 calculate the complex weight image to apply on the interf image

Private Attributes

CountedPtr< ImageInterface
< Float > > 
lowIm_p
CountedPtr< ImageInterface
< Float > > 
lowImOrig_p
CountedPtr< ImageInterface
< Float > > 
highIm_p
CountedPtr< ImageInterface
< Complex > > 
cwImage_p
CountedPtr< ImageInterface
< Complex > > 
cwHighIm_p
GaussianBeam hBeam_p
GaussianBeam lBeam_p
GaussianBeam lBeamOrig_p
Float dishDiam_p
Bool cweightCalced_p
Bool cweightApplied_p
Float sdScale_p
CoordinateSystem csysHigh_p

Detailed Description

Class that contains functions needed for feathering.

Definition at line 43 of file Feather.h.


Constructor & Destructor Documentation

default constructor

casa::Feather::Feather ( const ImageInterface< Float > &  SDImage,
const ImageInterface< Float > &  INTImage,
Float  sdScale = 1.0 
)

Constructor.

virtual casa::Feather::~Feather ( ) [virtual]

Destructor.


Member Function Documentation

static void casa::Feather::applyDishDiam ( ImageInterface< Complex > &  image,
GaussianBeam beam,
Float  effDiam,
ImageInterface< Float > &  newbeam,
Vector< Quantity > &  extraconv 
) [static, private]
void casa::Feather::applyFeather ( ) [private]
void casa::Feather::calcCWeightImage ( ) [private]
static void casa::Feather::feather ( const String image,
const ImageInterface< Float > &  high,
const ImageInterface< Float > &  low,
const Float sdScale = 1.0,
const String lowPSF = "",
const Bool  useDefault = True,
const String vpTable = "",
Float  effSDDiam = -1.0,
const Bool  lowpassfiltersd = False 
) [static]
void casa::Feather::fillXVectors ( Vector< Float > &  ux,
Vector< Float > &  uy 
) const [private]
void casa::Feather::getCutXY ( Vector< Float > &  ux,
Vector< Float > &  xamp,
Vector< Float > &  uy,
Vector< Float > &  yamp,
ImageInterface< Complex > &  ftimage 
) [private]
void casa::Feather::getEffectiveDishDiam ( Float xdiam,
Float ydiam 
)
void casa::Feather::getFeatheredCutINT ( Vector< Float > &  ux,
Vector< Float > &  xamp,
Vector< Float > &  uy,
Vector< Float > &  yamp 
)
void casa::Feather::getFeatheredCutSD ( Vector< Float > &  ux,
Vector< Float > &  xamp,
Vector< Float > &  uy,
Vector< Float > &  yamp 
)

Get 1-D slices of the feathered data ...

note for SD this should return the same values as getFTCutSDImage

void casa::Feather::getFeatherINT ( Vector< Float > &  ux,
Vector< Float > &  xamp,
Vector< Float > &  uy,
Vector< Float > &  yamp 
)
void casa::Feather::getFeatherSD ( Vector< Float > &  ux,
Vector< Float > &  xamp,
Vector< Float > &  uy,
Vector< Float > &  yamp 
)

Get the 1-D slices of the feathering function that will be applied on SD and INTerf data.

void casa::Feather::getFTCutIntImage ( Vector< Float > &  ux,
Vector< Float > &  xamp,
Vector< Float > &  uy,
Vector< Float > &  yamp 
)
void casa::Feather::getFTCutSDImage ( Vector< Float > &  ux,
Vector< Float > &  xamp,
Vector< Float > &  uy,
Vector< Float > &  yamp 
)

Get the 1-D slices of amplitude along the x and y axis of the FFT of images Note the SD image is already feathered by its beam..you cannot get unfeathered SD data as it implies deconvolution.

static void casa::Feather::getLowBeam ( const ImageInterface< Float > &  low0,
const String lowPSF,
const Bool  useDefaultPB,
const String vpTableStr,
GaussianBeam lBeam 
) [static, private]

calculate the complex weight image to apply on the interf image

write the feathered image to disk

Bool casa::Feather::setEffectiveDishDiam ( const Float  xdiam,
const Float  ydiam = -1.0 
)

set and get effective dish diameter to be used in feathering function setEffectiveDishDiam will return False if you are trying to assign a finer resolution than what the original data came with

void casa::Feather::setINTImage ( const ImageInterface< Float > &  IntImage)
void casa::Feather::setSDImage ( const ImageInterface< Float > &  SDImage)
void casa::Feather::setSDScale ( Float  sdscale = 1.0)

set the SDimage and Int images

static Double casa::Feather::worldFreq ( const CoordinateSystem cs,
Int  spectralpix = 0 
) [static]

Member Data Documentation

Definition at line 104 of file Feather.h.

Definition at line 102 of file Feather.h.

Definition at line 101 of file Feather.h.

Definition at line 90 of file Feather.h.

Definition at line 89 of file Feather.h.

Definition at line 100 of file Feather.h.

Definition at line 97 of file Feather.h.

Definition at line 88 of file Feather.h.

Definition at line 98 of file Feather.h.

Definition at line 99 of file Feather.h.

Definition at line 86 of file Feather.h.

Definition at line 87 of file Feather.h.

Definition at line 103 of file Feather.h.


The documentation for this class was generated from the following file: