pub struct DigitalImageCorrelation {
pub points: Vec<DicPoint>,
pub min_correlation: f64,
}Expand description
Digital Image Correlation displacement field reader and processor.
Fields§
§points: Vec<DicPoint>DIC data points.
min_correlation: f64Minimum accepted correlation coefficient.
Implementations§
Source§impl DigitalImageCorrelation
impl DigitalImageCorrelation
Sourcepub fn new(min_correlation: f64) -> Self
pub fn new(min_correlation: f64) -> Self
Create an empty DIC reader with a given minimum correlation threshold.
Sourcepub fn from_csv(csv: &str, min_correlation: f64) -> Result<Self, String>
pub fn from_csv(csv: &str, min_correlation: f64) -> Result<Self, String>
Parse from CSV: x,y,u,v,correlation rows.
Sourcepub fn filter_by_correlation(&mut self)
pub fn filter_by_correlation(&mut self)
Filter out points below the minimum correlation threshold.
Sourcepub fn compute_strain_field(
&self,
grid_spacing: f64,
) -> Vec<(f64, f64, StrainTensor2D)>
pub fn compute_strain_field( &self, grid_spacing: f64, ) -> Vec<(f64, f64, StrainTensor2D)>
Compute strain field using finite differences on a regular grid.
Returns a vector of (x, y, StrainTensor2D) for interior points.
Sourcepub fn mean_displacement(&self) -> f64
pub fn mean_displacement(&self) -> f64
Average displacement magnitude across all (valid) points.
Sourcepub fn max_displacement(&self) -> f64
pub fn max_displacement(&self) -> f64
Maximum displacement magnitude.
Trait Implementations§
Source§impl Clone for DigitalImageCorrelation
impl Clone for DigitalImageCorrelation
Source§fn clone(&self) -> DigitalImageCorrelation
fn clone(&self) -> DigitalImageCorrelation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DigitalImageCorrelation
impl RefUnwindSafe for DigitalImageCorrelation
impl Send for DigitalImageCorrelation
impl Sync for DigitalImageCorrelation
impl Unpin for DigitalImageCorrelation
impl UnsafeUnpin for DigitalImageCorrelation
impl UnwindSafe for DigitalImageCorrelation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.