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::Motion_Test_Utility Class Reference

tests to see if there has been any motion since the last frame if not, this frame can be skipped. More...

#include <DICe_Initializer.h>

Public Member Functions

 Motion_Test_Utility (Schema *schema, const scalar_t &tol)
 
 ~Motion_Test_Utility ()
 virtual destructor
 
void reset ()
 reset the result flag (should be done at the beginning of each frame)
 
bool motion_detected (const int_t sub_image_id)
 

Private Attributes

Schemaschema_
 pointer to the schema that created this initializer, used for field access
 
scalar_t tol_
 image diff tolerance (above this means motion is occurring)
 
Motion_State motion_state_
 

Detailed Description

tests to see if there has been any motion since the last frame if not, this frame can be skipped.

Constructor & Destructor Documentation

◆ Motion_Test_Utility()

DICe::Motion_Test_Utility::Motion_Test_Utility ( Schema schema,
const scalar_t tol 
)

constructor

Parameters
schemapointer to the schema that will be calling the motion test utility
toldetermines the threshold for the image diff to register motion

Member Function Documentation

◆ motion_detected()

bool DICe::Motion_Test_Utility::motion_detected ( const int_t  sub_image_id)

Returns true if motion is detected

Parameters
sub_image_idthe id of the window image around the subset

Member Data Documentation

◆ motion_state_

Motion_State DICe::Motion_Test_Utility::motion_state_
private

keep a copy of the result incase another call is made for this initializer by another subset