graintrace.scan_stitching_comparison#

Compare stitched HEDM grain data against ground truth (ScanStitchingComparison).

class graintrace.scan_stitching_comparison.ScanStitchingComparison(output_dir, true_csv, stitch_csv, position_tolerance=1, orientation_tolerance=1, radius_tolerance=1, orientation_units='degrees', orientation_convention='bunge', symmetry='432', weights={'ori': 0.0, 'pos': 1.0, 'rad': 0.0}, min_neighbors=5)[source]#

Bases: object

Match stitched vs. true grains and report position/orientation error metrics.

Parameters:
  • output_dir (str)

  • true_csv (str)

  • stitch_csv (str)

  • position_tolerance (float)

  • orientation_tolerance (float)

  • radius_tolerance (float)

  • orientation_units (str)

  • orientation_convention (str)

  • symmetry (str)

  • weights (dict)

  • min_neighbors (int)

run_comparison()[source]#

Run the full compare pipeline and return the metrics dict.

Return type:

Dict[str, Any]

load_data()[source]#

Load and preprocess true and stitched grain data.

Return type:

None