visualization

Plots for registration and 3D visualization

Overlay over predicted edges on target images


source

overlay_edges

 overlay_edges (target, pred, sigma=1.5)

Generate edge overlays for a batch of targets and predictions.

Using PyVista to visualize 3D geometry


source

fiducials_to_mesh

 fiducials_to_mesh (specimen, rotation=None, translation=None,
                    parameterization=None, convention=None, detector=None)

Use camera matrices to get 2D projections of 3D fiducials for a given pose. If the detector is passed, 2D projections will be filtered for those that lie on the detector plane.


source

lines_to_mesh

 lines_to_mesh (camera, fiducials_2d)

Draw lines from the camera to the 2D fiducials.