Skip to content

Commit

Permalink
Allow user to pass custom intrinsic matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
eigenvivek committed Mar 1, 2024
1 parent 3ae7b1b commit fb75e13
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 23 deletions.
4 changes: 2 additions & 2 deletions diffpose/deepfluoro.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,11 @@ def convert_diffdrr_to_deepfluoro(specimen, pose: RigidTransform):


class Evaluator:
def __init__(self, specimen, idx):
def __init__(self, specimen, idx, intrinsic=None):
# Save matrices to device
self.translate = specimen.translate
self.flip_xz = specimen.flip_xz
self.intrinsic = specimen.intrinsic
self.intrinsic = specimen.intrinsic if intrinsic is None else intrinsic
self.intrinsic_inv = specimen.intrinsic.inverse()

# Get gt fiducial locations
Expand Down
53 changes: 32 additions & 21 deletions notebooks/api/00_deepfluoro.ipynb

Large diffs are not rendered by default.

0 comments on commit fb75e13

Please sign in to comment.