pysdic.SDICCorrelationTerm.compute_residuals#

SDICCorrelationTerm.compute_residuals(parameters=None, pairings=None)[source]#

Compute the gray levels and the residuals of the integration points of the term in the views of pairings, for a vector of unknowns: what the term compares, with its gray level correction, without the weights of the points and without filtering the non-finite values (see pysdic.PairingResiduals).

Use it to inspect the term at any vector of unknowns (e.g. at each iteration of a solver history), then pysdic.compute_pixel_residual_maps() or pysdic.display_residual_maps() to draw the residuals on the views. The analysis is not modified.

Parameters:
  • parameters (Optional[ArrayLike], optional) – The complete vector of unknowns, of shape \((N_f N_v E + \sum n_p,)\) (with a parametrization, parametrization.p_func(q)). By default, the current state of the analysis (pack()).

  • pairings (Optional[Sequence[pysdic.Pairing]], optional) – The pairings to evaluate: any valid pairing of the analysis (also a pairing without unknown, or not in the term). By default, the pairings of the term.

Returns:

The residuals of each pairing, in the order of pairings.

Return type:

List[pysdic.PairingResiduals]