Struct to perform centration and measure diameter of Pyramid pupils. More...
#include <pupilFitter.hpp>
Public Member Functions | |
pupilFitter () | |
int | setSize (unsigned rows, unsigned cols) |
int | quadCoords (size_t &i0, size_t &j0, int quadNo) |
Returns the quadrant starting coordinates. More... | |
int | threshold (mx::improc::eigenImage< realT > &im) |
int | getQuad (mx::improc::eigenImage< realT > &quad, mx::improc::eigenImage< realT > &im, int quadNo) |
int | putQuad (mx::improc::eigenImage< realT > &im, mx::improc::eigenImage< realT > &quad, int quadNo) |
int | outerpix (float &avgx, float &avgy, float &avgr, int quadNo) |
int | fit (mx::improc::eigenImage< realT > &im, mx::improc::eigenImage< realT > &edged) |
Public Attributes | |
mx::improc::eigenImage< realT > | m_quad |
mx::improc::eigenImage< realT > | m_quadMag |
mx::improc::eigenImage< realT > | m_circ |
mx::improc::eigenImage< realT > | m_circMag |
unsigned | m_rows {0} |
[in] the size of a quad, in rows More... | |
unsigned | m_cols {0} |
[in] the size of a quad, in cols More... | |
int | m_numPupils {4} |
the number of pupils. Default is 4, 3 is also supported. More... | |
float | m_bgMedIndex {0.1867} |
float | m_pupMedIndex {0.6867} |
the index of the illuminated pupil median in a sorted array. More... | |
float | m_bg [4] = {0,0,0,0} |
float | m_med [4] = {0,0,0,0} |
float | m_avgx [4] = {0,0,0,0} |
float | m_avgy [4] = {0,0,0,0} |
float | m_avgr [4] = {0,0,0,0} |
float | m_thresh {0.5} |
std::vector< realT > | m_pixs |
Struct to perform centration and measure diameter of Pyramid pupils.
Definition at line 22 of file pupilFitter.hpp.
|
inline |
Definition at line 46 of file pupilFitter.hpp.
int MagAOX::app::pupilFitter< realT >::fit | ( | mx::improc::eigenImage< realT > & | im, |
mx::improc::eigenImage< realT > & | edged | ||
) |
Definition at line 238 of file pupilFitter.hpp.
int MagAOX::app::pupilFitter< realT >::getQuad | ( | mx::improc::eigenImage< realT > & | quad, |
mx::improc::eigenImage< realT > & | im, | ||
int | quadNo | ||
) |
Definition at line 159 of file pupilFitter.hpp.
int MagAOX::app::pupilFitter< realT >::outerpix | ( | float & | avgx, |
float & | avgy, | ||
float & | avgr, | ||
int | quadNo | ||
) |
Definition at line 210 of file pupilFitter.hpp.
int MagAOX::app::pupilFitter< realT >::putQuad | ( | mx::improc::eigenImage< realT > & | im, |
mx::improc::eigenImage< realT > & | quad, | ||
int | quadNo | ||
) |
Definition at line 185 of file pupilFitter.hpp.
int MagAOX::app::pupilFitter< realT >::quadCoords | ( | size_t & | i0, |
size_t & | j0, | ||
int | quadNo | ||
) |
Returns the quadrant starting coordinates.
[out] | i0 | the i coordinate of the lower-left corner of quad |
[out] | j0 | the j coordinate of the lower-left corner of auad |
[in] | quadNo | the quadrant number |
Definition at line 105 of file pupilFitter.hpp.
int MagAOX::app::pupilFitter< realT >::setSize | ( | unsigned | rows, |
unsigned | cols | ||
) |
[in] | rows | the new size of a quad, in rows |
[in] | cols | the new size of a quad, in cols |
Definition at line 85 of file pupilFitter.hpp.
int MagAOX::app::pupilFitter< realT >::threshold | ( | mx::improc::eigenImage< realT > & | im | ) |
Definition at line 144 of file pupilFitter.hpp.
float MagAOX::app::pupilFitter< realT >::m_avgr[4] = {0,0,0,0} |
Definition at line 40 of file pupilFitter.hpp.
float MagAOX::app::pupilFitter< realT >::m_avgx[4] = {0,0,0,0} |
Definition at line 38 of file pupilFitter.hpp.
float MagAOX::app::pupilFitter< realT >::m_avgy[4] = {0,0,0,0} |
Definition at line 39 of file pupilFitter.hpp.
float MagAOX::app::pupilFitter< realT >::m_bg[4] = {0,0,0,0} |
Definition at line 36 of file pupilFitter.hpp.
float MagAOX::app::pupilFitter< realT >::m_bgMedIndex {0.1867} |
Definition at line 33 of file pupilFitter.hpp.
mx::improc::eigenImage<realT> MagAOX::app::pupilFitter< realT >::m_circ |
Definition at line 26 of file pupilFitter.hpp.
mx::improc::eigenImage<realT> MagAOX::app::pupilFitter< realT >::m_circMag |
Definition at line 27 of file pupilFitter.hpp.
unsigned MagAOX::app::pupilFitter< realT >::m_cols {0} |
[in] the size of a quad, in cols
Definition at line 30 of file pupilFitter.hpp.
float MagAOX::app::pupilFitter< realT >::m_med[4] = {0,0,0,0} |
Definition at line 37 of file pupilFitter.hpp.
int MagAOX::app::pupilFitter< realT >::m_numPupils {4} |
the number of pupils. Default is 4, 3 is also supported.
Definition at line 32 of file pupilFitter.hpp.
std::vector<realT> MagAOX::app::pupilFitter< realT >::m_pixs |
Definition at line 44 of file pupilFitter.hpp.
float MagAOX::app::pupilFitter< realT >::m_pupMedIndex {0.6867} |
the index of the illuminated pupil median in a sorted array.
Definition at line 34 of file pupilFitter.hpp.
mx::improc::eigenImage<realT> MagAOX::app::pupilFitter< realT >::m_quad |
Definition at line 24 of file pupilFitter.hpp.
mx::improc::eigenImage<realT> MagAOX::app::pupilFitter< realT >::m_quadMag |
Definition at line 25 of file pupilFitter.hpp.
unsigned MagAOX::app::pupilFitter< realT >::m_rows {0} |
[in] the size of a quad, in rows
Definition at line 29 of file pupilFitter.hpp.
float MagAOX::app::pupilFitter< realT >::m_thresh {0.5} |
Definition at line 42 of file pupilFitter.hpp.