recolo.deflectomerty.deflectometry.slopes_from_images

recolo.deflectomerty.deflectometry.slopes_from_images(path_to_img_folder, grid_pitch, mirror_grid_distance, pixel_size_on_mirror, ref_img_ids=None, only_img_ids=None, crop=None, correct_phase=True, window='gaussian')
Perform deflectometry to determine the slope fields associated with a series of images.

the slope fields of a specimen based on the dof every pixel based on the phase modulation in two configurations, see [1] for

more details.

path_to_img_folderstr

The path to the folder which contains the grid images.

grid_pitchfloat

The grid pitch in pixels

mirror_grid_distancefloat

The distance from the mirrored plate to the grid.

ref_img_idslist

The list of image ids which are used as reference. The mean of all images are used as a low noise reference image.

only_img_idslist

The list of image ids which are used.

croptuple

The coordinates used to crop the images. The images a cropped as: image[crop[0]:crop[1], crop[2]:crop[3]]

correct_phasebool

Perform phase unwrapping using [2].

disps_x,disps_yndarray

The displacement fields with shape [n_frames,x,y]

1

Michel Grediac, Frédéric Sur, Benoît Blaysat. The grid method for in-plane displacement and

strain measurement: a review and analysis. Strain, Wiley-Blackwell, 2016, 52 (3), pp.205-243. ff10.1111/str.12182ff. ffhal-01317145f