Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Per-view Reprojections #51

Open
sean-afshar opened this issue Jul 11, 2024 · 0 comments
Open

Per-view Reprojections #51

sean-afshar opened this issue Jul 11, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@sean-afshar
Copy link
Contributor

It would be nice to reproject each view individually into its own h5 file instead of getting all the reprojections in one batch. One could implement this function this way:

def reproject_view(p3d: str | NDArray[np.float_], view: str, calib: str | CameraGroup, frames: Tuple[int] = ()):
    if type(calib) == str:
        full_cgroup = CameraGroup.load(calib)
    else:
        full_cgroup = calib
    excluded_views = [x for x in full_cgroup.get_names() if x is not view]
    return reproject(p3d, calib, frames, *args, excluded_views=excluded_views)

Furthermore, one could implement this into the triangulate function and allow the users to reproject each view when they run triangulation.

@sean-afshar sean-afshar added the enhancement New feature or request label Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant