API
MagAOX::app::pupilFitter< realT > Struct Template Reference

Struct to perform centration and measure diameter of Pyramid pupils. More...

#include <pupilFitter.hpp>

Collaboration diagram for MagAOX::app::pupilFitter< realT >:
Collaboration graph

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
 

Detailed Description

template<typename realT>
struct MagAOX::app::pupilFitter< realT >

Struct to perform centration and measure diameter of Pyramid pupils.

Definition at line 22 of file pupilFitter.hpp.

Constructor & Destructor Documentation

◆ pupilFitter()

template<typename realT >
MagAOX::app::pupilFitter< realT >::pupilFitter ( )
inline

Definition at line 46 of file pupilFitter.hpp.

Member Function Documentation

◆ fit()

template<typename realT >
int MagAOX::app::pupilFitter< realT >::fit ( mx::improc::eigenImage< realT > &  im,
mx::improc::eigenImage< realT > &  edged 
)

Definition at line 238 of file pupilFitter.hpp.

◆ getQuad()

template<typename realT >
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.

◆ outerpix()

template<typename realT >
int MagAOX::app::pupilFitter< realT >::outerpix ( float &  avgx,
float &  avgy,
float &  avgr,
int  quadNo 
)

Definition at line 210 of file pupilFitter.hpp.

◆ putQuad()

template<typename realT >
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.

◆ quadCoords()

template<typename realT >
int MagAOX::app::pupilFitter< realT >::quadCoords ( size_t &  i0,
size_t &  j0,
int  quadNo 
)

Returns the quadrant starting coordinates.

Parameters
[out]i0the i coordinate of the lower-left corner of quad
[out]j0the j coordinate of the lower-left corner of auad
[in]quadNothe quadrant number

Definition at line 105 of file pupilFitter.hpp.

◆ setSize()

template<typename realT >
int MagAOX::app::pupilFitter< realT >::setSize ( unsigned  rows,
unsigned  cols 
)
Parameters
[in]rowsthe new size of a quad, in rows
[in]colsthe new size of a quad, in cols

Definition at line 85 of file pupilFitter.hpp.

◆ threshold()

template<typename realT >
int MagAOX::app::pupilFitter< realT >::threshold ( mx::improc::eigenImage< realT > &  im)

Definition at line 144 of file pupilFitter.hpp.

Member Data Documentation

◆ m_avgr

template<typename realT >
float MagAOX::app::pupilFitter< realT >::m_avgr[4] = {0,0,0,0}

Definition at line 40 of file pupilFitter.hpp.

◆ m_avgx

template<typename realT >
float MagAOX::app::pupilFitter< realT >::m_avgx[4] = {0,0,0,0}

Definition at line 38 of file pupilFitter.hpp.

◆ m_avgy

template<typename realT >
float MagAOX::app::pupilFitter< realT >::m_avgy[4] = {0,0,0,0}

Definition at line 39 of file pupilFitter.hpp.

◆ m_bg

template<typename realT >
float MagAOX::app::pupilFitter< realT >::m_bg[4] = {0,0,0,0}

Definition at line 36 of file pupilFitter.hpp.

◆ m_bgMedIndex

template<typename realT >
float MagAOX::app::pupilFitter< realT >::m_bgMedIndex {0.1867}

Definition at line 33 of file pupilFitter.hpp.

◆ m_circ

template<typename realT >
mx::improc::eigenImage<realT> MagAOX::app::pupilFitter< realT >::m_circ

Definition at line 26 of file pupilFitter.hpp.

◆ m_circMag

template<typename realT >
mx::improc::eigenImage<realT> MagAOX::app::pupilFitter< realT >::m_circMag

Definition at line 27 of file pupilFitter.hpp.

◆ m_cols

template<typename realT >
unsigned MagAOX::app::pupilFitter< realT >::m_cols {0}

[in] the size of a quad, in cols

Definition at line 30 of file pupilFitter.hpp.

◆ m_med

template<typename realT >
float MagAOX::app::pupilFitter< realT >::m_med[4] = {0,0,0,0}

Definition at line 37 of file pupilFitter.hpp.

◆ m_numPupils

template<typename realT >
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.

◆ m_pixs

template<typename realT >
std::vector<realT> MagAOX::app::pupilFitter< realT >::m_pixs

Definition at line 44 of file pupilFitter.hpp.

◆ m_pupMedIndex

template<typename realT >
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.

◆ m_quad

template<typename realT >
mx::improc::eigenImage<realT> MagAOX::app::pupilFitter< realT >::m_quad

Definition at line 24 of file pupilFitter.hpp.

◆ m_quadMag

template<typename realT >
mx::improc::eigenImage<realT> MagAOX::app::pupilFitter< realT >::m_quadMag

Definition at line 25 of file pupilFitter.hpp.

◆ m_rows

template<typename realT >
unsigned MagAOX::app::pupilFitter< realT >::m_rows {0}

[in] the size of a quad, in rows

Definition at line 29 of file pupilFitter.hpp.

◆ m_thresh

template<typename realT >
float MagAOX::app::pupilFitter< realT >::m_thresh {0.5}

Definition at line 42 of file pupilFitter.hpp.


The documentation for this struct was generated from the following file: