Esempio n. 1
0
    def __call__(self, voxgrid: Union[torch.Tensor, VoxelGrid]):
        """
        Args:
            voxel (torch.Tensor or VoxelGrid): Voxel grid from which ODMs are
                extracted.

        Returns:
            (torch.Tensor): 6 ODMs from the 6 primary viewing angles.
        """
        return cvt.extract_odms(voxgrid)
Esempio n. 2
0
    def __call__(self, voxel: Union[torch.Tensor, VoxelGrid]):
        """
        Args:
            voxel (torch.Tensor or VoxelGrid): Voxel grid from which ODMs are
                extracted.

        Returns:
            (torch.Tensor): Voxel grid.
        """
        odms = cvt.extract_odms(voxel)
        return cvt.project_odms(odms)