spyrit.core.meas.DynamicLinear.build_H_dyn
- DynamicLinear.build_H_dyn(motion: DeformationField, mode: str = 'bilinear', warping: bool = False) None[source]
Build the dynamic measurement matrix H_dyn.
Compute and store the dynamic measurement matrix H_dyn from the static measurement matrix H_static and the deformation field motion. The output is stored in the attribute self.H_dyn.
This is done using the physical version explained in [MaBP24].
Args:
motion(DeformationField): Deformation field representing the motion of the image. Need to pass the inverse deformation field whenwarpingis set to False, and the direct deformation field whenwarpingis set to True.mode(str): Mode according to which the dynamic matrix is constructed. When warping the patterns, it refers to the interpolation method. When the patterns are not warped, it refers to the regularity of the solution that is sought after. Defaults to ‘bilinear’.warping(bool): Whether to warp the patterns when building the dynamic measurement matrix. It’s been shown [MaBP24] that warping the patterns induces a bias in the model. Defaults to ‘False’.Returns:
None. The dynamic measurement matrix is stored in the attribute self.H_dyn.
References: .. _MaBP24:
[MaBP24] (MICCAI 2024 paper #883) Thomas Maitre, Elie Bretin, Romain Phan, Nicolas Ducros, Michaël Sdika. Dynamic Single-Pixel Imaging on an Extended Field of View without Warping the Patterns. 2024. hal-04533981