FiberIterator Class Reference
Public Types
Public Member Functions
- FiberIterator (MArray< value_type, 2 > &A, MArray< value_type, 2 > &dA, const Distortion &D, const FiberModel &F)
- FiberIterator (const FiberIterator &other)
- void beginFiber (const int fn)
- make this instance iterate over fiber number
fn
- bool done () const
- bool operator== (const FiberIterator &other)
- FiberIterator & operator++ ()
- FiberIterator operator++ (int)
- int x () const
- return the x pixel coordinate relative to the original image
- int y () const
- return the x pixel coordinate relative to the original image
- Distortion::coeff_t f () const
- return the f coordinate relative to the original image
- Distortion::coeff_t w () const
- return the w coordinate relative to the original image
- float image_value () const
- float image_error () const
- float interpolate_at (const float x, const float y) const
- float single_fiberflux () const
- return the model flux of the nearest fiber, for a position x,y on the chip
- float cumulative_flux () const
- return the model flux of all 3 adjacent fibers, for a position x,y on the chip
- int fiber () const
Static Public Attributes
Protected Member Functions
Protected Attributes
Detailed Description
This class implements an iterator-style object that allows easy iteration over all pixels belonging to one fiber.
Member Typedef Documentation
Constructor & Destructor Documentation
FiberIterator::FiberIterator |
( |
const FiberIterator & |
other |
) |
[inline] |
Member Function Documentation
void FiberIterator::beginFiber |
( |
const int |
fn |
) |
|
References A_, AP_MAX, D_, f(), f_, fn_, Distortion::get_reference_f(), Distortion::map_xf_y(), maxy(), maxy_, miny(), miny_, x_, and y_.
Referenced by main().
bool FiberIterator::done |
( |
|
) |
const [inline] |
bool FiberIterator::operator== |
( |
const FiberIterator & |
other |
) |
[inline] |
int FiberIterator::x |
( |
|
) |
const [inline] |
int FiberIterator::y |
( |
|
) |
const [inline] |
float FiberIterator::image_value |
( |
|
) |
const [inline] |
float FiberIterator::image_error |
( |
|
) |
const [inline] |
float FiberIterator::interpolate_at |
( |
const float |
x, |
|
|
const float |
y | |
|
) |
| | const |
float FiberIterator::single_fiberflux |
( |
|
) |
const [inline] |
float FiberIterator::cumulative_flux |
( |
|
) |
const [inline] |
int FiberIterator::fiber |
( |
|
) |
const [inline] |
void FiberIterator::advance |
( |
|
) |
[inline, protected] |
Field Documentation