StokesImageUtil.h

Classes

StokesImageUtil -- (full description)

class StokesImageUtil

Interface

Public Members
static void MakeGaussianPSF(ImageInterface<Float>& psf, Vector<Float>& beam, Bool norm=False)
static void MakeGaussianPSF(ImageInterface<Float>& psf, Quantity& bmaj, Quantity& bmin, Quantity& bpa, Bool norm=False)
static Bool FitGaussianPSF(ImageInterface<Float>& psf, Vector<Float>& beam)
static Bool FitGaussianPSF(ImageInterface<Float>& psf, Quantity& bmaj, Quantity& bmin, Quantity& bpa)
static void Convolve(ImageInterface<Float>& image, ImageInterface<Float>& psf)
static void Convolve(ImageInterface<Float>& image, Float bmaj, Float bmin, Float bpa, Bool normalizeVolume=False)
static void Convolve(ImageInterface<Float>& image, Quantity& bmaj, Quantity& bmin, Quantity& bpa, Bool normalizeVolume=False)
static void Zero(ImageInterface<Float>& image, Vector<Bool>& mask)
static void MaskFrom(ImageInterface<Float>& mask, ImageInterface<Float>& image, const Quantity& threshold)
static void MaskOnStokesI(ImageInterface<Float>& image, const Quantity& threshold)
static void BoxMask(ImageInterface<Float>& mask, const IPosition& blc, const IPosition& trc, const Float value)
static void Constrain(ImageInterface<Float>& image)
static void From(ImageInterface<Complex>& out, ImageInterface<Float>& in)
static void To(ImageInterface<Float>& out, ImageInterface<Complex>& in)
static void ToStokesPSF(ImageInterface<Float>& out, ImageInterface<Complex>& in)
static Int StokesPolMap(Vector<Int>& map, const CoordinateSystem& coord)
static Int CStokesPolMap(Vector<Int>& map, SkyModel::PolRep& polframe, const CoordinateSystem& coord)
static Bool StokesMap(Vector<Int>& map, const CoordinateSystem& coord)
static CoordinateSystem StokesCoordFromMS(const IPosition& shape, Vector<Double>& deltas, MeasurementSet& ms)
static CoordinateSystem StokesCoordFromMS(const IPosition& shape, Vector<Double>& deltas, MeasurementSet& ms, Vector<Int>& whichStokes, Bool doCStokes=False, Int fieldID=0, Int SPWID=0, Int feedID=0)
static CoordinateSystem CStokesCoord(const IPosition& shape, const CoordinateSystem& coord, Vector<Int>& whichStokes, SkyModel::PolRep polRep=SkyModel::CIRCULAR)
static CoordinateSystem CStokesCoordFromImage(const ImageInterface<Complex>& image, Complex<Int>& whichStokes, Vector::PolRep polRep)
static void changeCStokesRep(ImageInterface<Complex>& image, Complex::PolRep polRep)
static Bool standardImageCoordinates(const CoordinateSystem& coords)
static Bool standardImageCoordinates(const ImageInterface<Complex>& image)
static Bool standardImageCoordinates(const ImageInterface<Float>& image)

Description

Prerequisite

Etymology

Synopsis

Example


 

Motivation

To Do

Member Description

static void MakeGaussianPSF(ImageInterface<Float>& psf, Vector<Float>& beam, Bool norm=False)
static void MakeGaussianPSF(ImageInterface<Float>& psf, Quantity& bmaj, Quantity& bmin, Quantity& bpa, Bool norm=False)

Make a Gaussian PSF

static Bool FitGaussianPSF(ImageInterface<Float>& psf, Vector<Float>& beam)
static Bool FitGaussianPSF(ImageInterface<Float>& psf, Quantity& bmaj, Quantity& bmin, Quantity& bpa)

Fit a Gaussian PSF

static void Convolve(ImageInterface<Float>& image, ImageInterface<Float>& psf)
static void Convolve(ImageInterface<Float>& image, Float bmaj, Float bmin, Float bpa, Bool normalizeVolume=False)
static void Convolve(ImageInterface<Float>& image, Quantity& bmaj, Quantity& bmin, Quantity& bpa, Bool normalizeVolume=False)

Convolve a Stokes Image in place

static void Zero(ImageInterface<Float>& image, Vector<Bool>& mask)

Zero selected planes of a Stokes image

static void MaskFrom(ImageInterface<Float>& mask, ImageInterface<Float>& image, const Quantity& threshold)

static void MaskOnStokesI(ImageInterface<Float>& image, const Quantity& threshold)

Zero pixels where Stokes I < some value

static void BoxMask(ImageInterface<Float>& mask, const IPosition& blc, const IPosition& trc, const Float value)

Make a box mask

static void Constrain(ImageInterface<Float>& image)

Constrain a Stokes Image

static void From(ImageInterface<Complex>& out, ImageInterface<Float>& in)

Convert to Stokes Image

static void To(ImageInterface<Float>& out, ImageInterface<Complex>& in)

Convert to Stokes Image

static void ToStokesPSF(ImageInterface<Float>& out, ImageInterface<Complex>& in)

Convert to Stokes PSF

static Int StokesPolMap(Vector<Int>& map, const CoordinateSystem& coord)

Find the mapping from pixel on the Stokes Axis to I,Q,U,V

static Int CStokesPolMap(Vector<Int>& map, SkyModel::PolRep& polframe, const CoordinateSystem& coord)

Find the mapping from pixel on the Stokes Axis to either XX,XY,YX,YY of LL, LR, RL, RR. Return type as well: Linear:1, Circular 0

static Bool StokesMap(Vector<Int>& map, const CoordinateSystem& coord)

Find all mappings from coordinate to axis number

static CoordinateSystem StokesCoordFromMS(const IPosition& shape, Vector<Double>& deltas, MeasurementSet& ms)

Create a CoordinateSystem from a MeasurementSet and other info

static CoordinateSystem StokesCoordFromMS(const IPosition& shape, Vector<Double>& deltas, MeasurementSet& ms, Vector<Int>& whichStokes, Bool doCStokes=False, Int fieldID=0, Int SPWID=0, Int feedID=0)

Create a CoordinateSystem from a MeasurementSet and other info

static CoordinateSystem CStokesCoord(const IPosition& shape, const CoordinateSystem& coord, Vector<Int>& whichStokes, SkyModel::PolRep polRep=SkyModel::CIRCULAR)

Create a CoordinateSystem

static CoordinateSystem CStokesCoordFromImage(const ImageInterface<Complex>& image, Complex<Int>& whichStokes, Vector::PolRep polRep)

static void changeCStokesRep(ImageInterface<Complex>& image, Complex::PolRep polRep)

Change the stokes representation (but not the data!)

static Bool standardImageCoordinates(const CoordinateSystem& coords)
static Bool standardImageCoordinates(const ImageInterface<Complex>& image)
static Bool standardImageCoordinates(const ImageInterface<Float>& image)

check to see if Image coordinates have the standard order: Direction, Stokes, Spectral. Returns false if this is not the order, or if any are missing