Digital Image Correlation Engine  Version 1.0
A modular, high-performance, image correlation tool used to compute full-field displacements and strains from digital images
Public Member Functions | Private Attributes | List of all members
DICe::DICChallenge14_Image_Deformer Class Reference

a class that deformed an input image according to a sin() function in y More...

#include <DICe_ImageUtils.h>

Inheritance diagram for DICe::DICChallenge14_Image_Deformer:
DICe::Image_Deformer

Public Member Functions

 DICChallenge14_Image_Deformer (const scalar_t &coeff)
 
 DICChallenge14_Image_Deformer ()
 
virtual void compute_deformation (const scalar_t &coord_x, const scalar_t &coord_y, scalar_t &bx, scalar_t &by)
 
virtual void compute_deriv_deformation (const scalar_t &coord_x, const scalar_t &coord_y, scalar_t &bxx, scalar_t &bxy, scalar_t &byx, scalar_t &byy)
 
virtual ~DICChallenge14_Image_Deformer ()
 destructor
 
- Public Member Functions inherited from DICe::Image_Deformer
 Image_Deformer (const scalar_t &rel_factor_disp, const scalar_t &rel_factor_strain)
 constructor
 
Teuchos::RCP< Imagedeform_image (Teuchos::RCP< Image > ref_image)
 
void compute_displacement_error (const scalar_t &coord_x, const scalar_t &coord_y, const scalar_t &sol_x, const scalar_t &sol_y, scalar_t &error_x, scalar_t &error_y, const bool use_mag=false, const bool relative=true)
 
void compute_lagrange_strain_error (const scalar_t &coord_x, const scalar_t &coord_y, const scalar_t &sol_xx, const scalar_t &sol_xy, const scalar_t &sol_yy, scalar_t &error_xx, scalar_t &error_xy, scalar_t &error_yy, const bool use_mag=false, const bool relative=true)
 
void compute_lagrange_strain (const scalar_t &coord_x, const scalar_t &coord_y, scalar_t &strain_xx, scalar_t &strain_xy, scalar_t &strain_yy)
 

Private Attributes

scalar_t coeff_
 

Detailed Description

a class that deformed an input image according to a sin() function in y

Constructor & Destructor Documentation

◆ DICChallenge14_Image_Deformer() [1/2]

DICe::DICChallenge14_Image_Deformer::DICChallenge14_Image_Deformer ( const scalar_t coeff)
inline

constructor

Parameters
periodthe period of the motion in pixels
amplitudethe amplitude of the motion in pixels

◆ DICChallenge14_Image_Deformer() [2/2]

DICe::DICChallenge14_Image_Deformer::DICChallenge14_Image_Deformer ( )
inline

constructor

Parameters
periodthe period of the motion in pixels
amplitudethe amplitude of the motion in pixels

Member Function Documentation

◆ compute_deformation()

virtual void DICe::DICChallenge14_Image_Deformer::compute_deformation ( const scalar_t coord_x,
const scalar_t coord_y,
scalar_t bx,
scalar_t by 
)
virtual

compute the analytical displacement at the given coordinates

Parameters
coord_xthe x-coordinate for the evaluation location
coord_ythe y-coordinate
bx[out] the x displacement
by[out] the y displacement

Reimplemented from DICe::Image_Deformer.

◆ compute_deriv_deformation()

virtual void DICe::DICChallenge14_Image_Deformer::compute_deriv_deformation ( const scalar_t coord_x,
const scalar_t coord_y,
scalar_t bxx,
scalar_t bxy,
scalar_t byx,
scalar_t byy 
)
virtual

compute the analytical derivatives at the given coordinates

Parameters
coord_xthe x-coordinate for the evaluation location
coord_ythe y-coordinate
bxx[out] the xx deriv
bxy[out] the xy deriv
byx[out] the yx deriv
byy[out] the yy deriv

Reimplemented from DICe::Image_Deformer.