spyrit.misc.dual_arm.ComputeHomography
- class spyrit.misc.dual_arm.ComputeHomography(data_root: Path, data_folder: str, data_file_prefix: str, n: int, n_acq: int)[source]
Bases:
ModuleComputes the homography between the two arms of the hybrid single-pixel camera using a Direct Linear Transform (DLT) [Maitre2024_1].
Note
By convention, we refer to the CMOS image as the “source” and the single-pixel camera reconstruction as the “destination”.
- Args:
data_root: Root directory of the data.data_folder: Folder containing the data.data_file_prefix: Prefix of the data files.n: Size of the reconstructed image.n_acq: Size of the acquisition.
Methods
DLT(points_source, points_target)Computes homography using Direct Linear Transform (DLT) method.
forward(kp_method[, homo_folder, ...])Compute the homography between the CMOS and single pixel cameras.