extractor.cpp File Reference

Functions


Function Documentation

void toPolygon ( const polygon::point pixel,
polygon::point pixel_poly 
)

for a pixel centered at pixel.x, pixel.y, return a plygon with the 4 corners of the pixel as vertices. assumes the memory for the pixel polygon has been allocated by the caller.

References polygon::point::x, and polygon::point::y.

Referenced by Extractor::extract_aperture_w_rebin().

std::vector< polygon::point > getAffectedPixel ( const polygon::point  wfwin[]  ) 

return a <point> with the coordinates of the pixels within an enclosing rectangle of a polygon with 4 vertices.

References maxx(), maxy(), minx(), and miny().

Referenced by Extractor::extract_aperture_w_rebin().

float minx ( const polygon::point  xx[],
const int  N 
)

return smallest x value within a point[] of length N

References polygon::point::x.

Referenced by emission_line_plot(), getAffectedPixel(), mkimage_regrid(), and Measure::remove_spectra_ind().

float miny ( const polygon::point  xx[],
const int  N 
)

return smallest y value within a point[] of length N

References polygon::point::y.

Referenced by FiberIterator::beginFiber(), emission_line_plot(), getAffectedPixel(), mkimage_regrid(), and Measure::remove_spectra_ind().

float maxx ( const polygon::point  xx[],
const int  N 
)

return largest x value within a point[] of length N

References polygon::point::x.

Referenced by emission_line_plot(), getAffectedPixel(), mkimage_regrid(), and Measure::remove_spectra_ind().

float maxy ( const polygon::point  xx[],
const int  N 
)

return largest y value within a point[] of length N

References polygon::point::y.

Referenced by FiberIterator::beginFiber(), emission_line_plot(), getAffectedPixel(), mkimage_regrid(), and Measure::remove_spectra_ind().


Generated on 4 Nov 2015 for CURE by  doxygen 1.6.1