tcs_photometry::Photometry Class Reference

Public Types

Public Member Functions

Protected Member Functions

Protected Attributes


Detailed Description

Object Detection and Photometry Class

Possible usage includes:

For examples of usage see testphot.cpp


Member Typedef Documentation

typedef ltl::MArray<float,2> tcs_photometry::Photometry::MImage
typedef ltl::MArray<char, 2> tcs_photometry::Photometry::MMask

Constructor & Destructor Documentation

tcs_photometry::Photometry::Photometry ( const PhotometryParams pp  )  [inline]

References bg_, and sigma_bg_.


Member Function Documentation

void tcs_photometry::Photometry::SetParams ( const PhotometryParams pp  )  [inline]

References pp_.

Referenced by tcs_photometry::GuiderPhot::SetParams().

MImage tcs_photometry::Photometry::copy_square ( const MImage A,
const int  minx,
const int  maxx,
const int  miny,
const int  maxy 
)

Copy out a rectangular region out of an image. The new image retains the index ranges corresponding to the coordinates within the original image.

Copy out a square region containing the circle centered at x,y with radius. The new image retains the index ranges corresponding to the coordinates within the original image.

Referenced by main().

int tcs_photometry::Photometry::subtract_background_fit ( MImage I  ) 

subtract the background from an image using a k-th order surface fit to the image values. Also computes the RMS within the image.

References tcs_photometry::PhotometryParams::bgorder_, tcs_photometry::PhotometryParams::nanval_, and pp_.

Referenced by main().

int tcs_photometry::Photometry::subtract_background_fit_annulus ( MImage I  ) 

subtract the background from an image using a 2nd order surface fit to the image values in an annulus. Also computes the RMS within that annulus.

subtract the background from an image using a first-order surface fit to the image values in an annulus. Also computes the RMS within that annulus.

References bg_, elliptical_annulus_mask(), pp_, sigma_bg_, tcs_photometry::PhotometryParams::sky_annulus_, and UNRELIABLE_BACKGROUND.

Referenced by main().

Photometry::ObjectList tcs_photometry::Photometry::find_stars ( const MImage I  ) 

threshold the image at some level above the background noise, segment the resulting image mask and assemble Objects out of consecutive regions.

References assemble(), tcs_photometry::PhotometryParams::detect_sigma_, pp_, and sigma_bg_.

Referenced by main().

int tcs_photometry::Photometry::kron_aperture_phot ( const MImage I,
const Object o,
PhotData pd,
AperturePhotResults res 
) [inline]
int tcs_photometry::Photometry::fixed_aperture_phot ( const MImage I,
const Object o,
PhotData pd,
AperturePhotResults res 
) [inline]

Photometry in Kron-like aperture (aperture size based on a constant times the intensity-weighted first moment of the image)

References aperture_phot(), tcs_photometry::PhotData::fixed_aper_, tcs_photometry::Object::icx_, tcs_photometry::Object::icy_, pp_, and tcs_photometry::PhotometryParams::sky_annulus_.

Referenced by main().

int tcs_photometry::Photometry::fit_bivariate_gaussian ( MImage A,
const float  x,
const float  y,
const int  radius,
FitPars fp 
)
int tcs_photometry::Photometry::aperture_phot ( const MImage Image,
const float  x,
const float  y,
const float  aper,
const float  sky1,
const float  sky2,
PhotData pd,
AperturePhotResults res 
) [protected]
Photometry::ObjectList tcs_photometry::Photometry::assemble ( MMask M,
const MImage I 
) [protected]
void tcs_photometry::Photometry::mark_pixels ( Object obj,
const int  x,
const int  y,
MMask M,
const MImage I 
) [protected]

recursively add pixels surrounding a pixel (x,y) to an object if they are flagged in the mask as lying above threshold

References tcs_photometry::Object::addpixel(), tcs_photometry::PhotometryParams::maxsize_, tcs_photometry::Object::pixnum(), and pp_.

Referenced by assemble().

float tcs_photometry::Photometry::integrate_soft_e_mask_fixed ( const MImage I,
const float  sky,
float  xc,
float  yc,
float  ap,
const int  subsample,
float *  area 
) [protected]

Integrate the flux within an elliptical aperture by subsampling the image and computing the intersection of the ellipse with the subsampled pixels.

Referenced by aperture_phot().

Photometry::MImage tcs_photometry::Photometry::elliptical_mask ( const MImage I,
const float  xc,
const float  yc,
const float  a1,
const float  b1,
const float  pa 
) [protected]

Return an image multiplied by the characteristic function of an ellipse All pixels outside the ellipse will be set to zero, pixels within the ellipse will retain their values.

References tcs_photometry::PhotometryParams::nanval_, and pp_.

Photometry::MImage tcs_photometry::Photometry::elliptical_annulus_mask ( const MImage I,
const float  xc,
const float  yc,
const float  a1,
const float  b1,
const float  a2,
const float  b2,
const float  pa 
) [protected]

Return an image multiplied by the characteristic function of an elliptical annulus. All pixels outside the annulus will be set to zero. Pixels within the annulus will retain their values.

References tcs_photometry::PhotometryParams::nanval_, and pp_.

Referenced by aperture_phot(), and subtract_background_fit_annulus().

bool tcs_photometry::Photometry::check_variance ( const MImage I  )  [protected]

make sure the image looks OK by looking at variances ...

Referenced by aperture_phot().


Field Documentation

double tcs_photometry::Photometry::bg_ [protected]

Generated on 4 Nov 2015 for CURE by  doxygen 1.6.1