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 Types | Public Member Functions | Private Attributes | List of all members
DICe::Projection_Shape_Function Class Reference

3 parameter projection from cam 0 to cam 1 More...

#include <DICe_LocalShapeFunction.h>

Inheritance diagram for DICe::Projection_Shape_Function:
DICe::Local_Shape_Function

Public Types

enum  Projection_Param { ZP = 0, THETA, PHI }
 
enum  Rot_Trans_3D_Param {
  ANGLE_X = 0, ANGLE_Y, ANGLE_Z, TRANS_X,
  TRANS_Y, TRANS_Z
}
 

Public Member Functions

 Projection_Shape_Function (const std::string &system_file, const size_t source_camera_id, const size_t target_camera_id)
 constructor with the parameters needed to setup the transformation More...
 
virtual ~Projection_Shape_Function ()
 virtual destructor
 
virtual void clear ()
 clear the parameters
 
virtual void reset_fields (Schema *schema)
 
virtual void map (const scalar_t &x, const scalar_t &y, const scalar_t &cx, const scalar_t &cy, scalar_t &out_x, scalar_t &out_y)
 see base class description
 
virtual void residuals (const scalar_t &x, const scalar_t &y, const scalar_t &cx, const scalar_t &cy, const scalar_t &gx, const scalar_t &gy, std::vector< scalar_t > &residuals, const bool use_ref_grads=false)
 see base class description
 
virtual void save_fields (Schema *schema, const int_t subset_gid)
 see base class description
 
virtual void add_translation (const scalar_t &u, const scalar_t &v)
 see base class description
 
virtual void map_to_u_v_theta (const scalar_t &cx, const scalar_t &cy, scalar_t &out_u, scalar_t &out_v, scalar_t &out_theta)
 see base class description
 
virtual void insert_motion (const scalar_t &u, const scalar_t &v, const scalar_t &theta)
 see base class description
 
virtual void insert_motion (const scalar_t &u, const scalar_t &v)
 see base class description
 
virtual void update_params_for_centroid_change (const scalar_t &delta_x, const scalar_t &delta_y)
 see base class description
 
- Public Member Functions inherited from DICe::Local_Shape_Function
 Local_Shape_Function ()
 base class constructor
 
virtual ~Local_Shape_Function ()
 virtual destructor
 
int_t num_params () const
 the number of parameters in the shape function
 
std::vector< scalar_t > * parameters ()
 access to the parameter values
 
void print_parameters () const
 print the parameter values to DEBUG_MSG
 
void clone (Teuchos::RCP< Local_Shape_Function > shape_function)
 
virtual void initialize_parameters_from_fields (Schema *schema, const int_t subset_gid)
 
scalar_toperator() (const DICe::field_enums::Field_Spec &spec)
 
scalar_toperator() (const size_t index)
 
scalar_t parameter (const DICe::field_enums::Field_Spec &spec) const
 
void update (const std::vector< scalar_t > &update)
 
virtual bool test_for_convergence (const std::vector< scalar_t > &old_parameters, const scalar_t &tol)
 
Teuchos::RCP< std::vector< scalar_t > > rcp ()
 
Teuchos::RCP< std::vector< scalar_t > > deltas ()
 returns a pointer to the vector of delta values for this shape function
 
std::map< DICe::field_enums::Field_Spec, size_t > * spec_map ()
 returns a pointer to the spec map
 

Private Attributes

size_t source_cam_id_
 camera to use as the source camera
 
size_t target_cam_id_
 
Teuchos::RCP< Camera_Systemcamera_system_
 camera system to apply all the transformations
 

Additional Inherited Members

- Protected Attributes inherited from DICe::Local_Shape_Function
std::vector< scalar_tparameters_
 a vector that holds the parameters of the shape function
 
std::vector< scalar_tdeltas_
 a vector that holds the deltas to use for a simplex method
 
int_t num_params_
 the total number of degrees of freedom
 
std::map< DICe::field_enums::Field_Spec, size_t > spec_map_
 stores the associated field with each DOF and the corresponding parameter index
 

Detailed Description

3 parameter projection from cam 0 to cam 1

Member Enumeration Documentation

◆ Projection_Param

the 3 parameters that govern the projection/back projection transform

Constructor & Destructor Documentation

◆ Projection_Shape_Function()

DICe::Projection_Shape_Function::Projection_Shape_Function ( const std::string &  system_file,
const size_t  source_camera_id,
const size_t  target_camera_id 
)

constructor with the parameters needed to setup the transformation

Parameters
system_filefile used to read in the camera and orientation parameters
source_camera_idprimary camera where the subset locations are specified
target_camera_idsecondary camera to project to

Member Function Documentation

◆ reset_fields()

virtual void DICe::Projection_Shape_Function::reset_fields ( Schema schema)
virtual

clears all the fields associated with this shape function

Parameters
schemapointer to a schema that holds the mesh with the fields

Reimplemented from DICe::Local_Shape_Function.