YaDICs  V04.14.a
Yet another Digital Image Correlation software: platform dedicated to 2/3D Fluid and Solid kinematics field measurements.
 All Classes Files Functions Variables Pages
Public Member Functions | Public Attributes | List of all members
Cpeak_fit< T, Timg > Class Template Referenceabstract

#include <Cpeak_fit.h>

Inheritance diagram for Cpeak_fit< T, Timg >:
Cpeak_subPix< T, Timg > Cpeak_max< T > Cpeak< T >

Public Member Functions

virtual void sub_pixel (CImg< Timg > &img)
 
void ssd (CImg< Timg > &img)
 
void set_position ()
 
virtual void peak_fit (CImg< Timg > &img)=0
 
- Public Member Functions inherited from Cpeak_subPix< T, Timg >
virtual void peak_detection (CImg< T > &img)
 
virtual void sub_pixel (CImg< T > &img)=0
 
- Public Member Functions inherited from Cpeak< T >
 Cpeak ()
 
virtual void exec (CImg< T > &img)
 
void set_peakDim (CImg< T > &img)
 
virtual void peak_accuracy (CImg< T > &img)
 
virtual void peak_delete (CImg< T > &img)
 
void set_origin (CImg< T > &img)
 
std::vector< T > content ()
 

Public Attributes

std::string class_name
 
std::vector< Timg > m_parameters
 
m_neighb
 
m_CornerX
 
m_CornerY
 
- Public Attributes inherited from Cpeak_subPix< T, Timg >
std::string class_name
 
- Public Attributes inherited from Cpeak_max< T >
std::string class_name
 
- Public Attributes inherited from Cpeak< T >
std::string class_name
 
m_flag
 
m_mag
 
std::vector< T > m_pos
 
int _3D
 
bool m_verbose
 

Detailed Description

template<typename T, typename Timg>
class Cpeak_fit< T, Timg >

!!!!!!!!!Be careful this class requires improvement to work fine!!!!!!!!!!

Member Function Documentation

template<typename T, typename Timg>
void Cpeak_fit< T, Timg >::ssd ( CImg< Timg > &  img)
inline

This method implement a Sum of squared difference between the subwindow arround the peak max loci and a polynomial function.

Parameters
[in]imgwindow to fit
[out]statpeak statistics (x,y,...)
[out]bpeak statistics (x,y,...)
Note
hop
cimg_forXY(img,x,y){
n(1)=x; n(2)=y; n(3)=x*x; n(4)=y*y;
nnt+=matrixProduct(n.get_transpose(),n);
b+=n*(double)img(x,y);
};
template<typename T, typename Timg>
virtual void Cpeak_fit< T, Timg >::sub_pixel ( CImg< Timg > &  img)
inlinevirtual

This method crop the peak image arround the loci position, following such schema: $ \centerline{ \begin{tabular}{|c|c|c|} \hline 0&1&2 \\ \hline 3&*4*&5 \\ \hline 6&7&8 \\ \hline \end{tabular} } \\ $ with in the exemple neighb=1.


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