misorientation_maps.py computes minimum misorientation angles from two orientation maps of the same area and highlight area where grain boudaries have moved.
-
Input:
angles.txtcontains the two sets of Euler anglesphi_1a, phi_a,phi_2a,phi_1b, phi_b,phi_2b(flattened image) -
Outputs:
rotation.txt: the misorientation axes and angles,color.txt: the associated grey levels according to the misorientation angles.
beta-FB.py computes the coupling factor according to the Frank-Bilby equation for a given rotation axis for tilt grain boundary (cubic crystal).
Use to provide automatic geometric transformation of AFM and EBSD maps before and after creep using fiducial markers (surface imperfections).
-
A deep learning model (ResUNet network, Keras implementation) was trained to segment markers .
res_u_net-markers.py: to train images and masks andres_u_net-markers-predict.pyfor inference. -
Markers centroids from segmentation maps were computed using watershed (OpenCV implementation) and geometric transformation was estimated between markers before and after creep. Need more than two markers (not the case for the images avant.bmp and apres.bmp):
image_correction.py(input: two images before and after creep, output: the transformation matrix; the corrected image)
DIC.py helps in defining markers to follow at sample surface during grain boundary migration. Track these markers between two images by template matching (roi search). Input: two images and markers position in the first (array of (x,y,w,h) ROIs). Compute displacements and draw vectors at ROIs. Use openCV.
Romain Gautier, Frédéric Mompiou