INNER CODE UNIT · Python

_post

BrokenSource/DepthFlow · depthflow/estimators/__init__.py:59

    def _post(self, depth: np.ndarray) -> np.ndarray:
        """Post-processing to mitigate artifacts"""
        return depth

    @staticmethod
    def normalize(
        array: np.ndarray,
        dtype: DTypeLike = np.float32,
        lerp: DTypeLike = np.float64,
        min: float | None = None,
        max: float | None = None,
    ) -> np.ndarray:

        # Get the dtype information
        if np.issubdtype(dtype, np.integer):
            info = np.iinfo(dtype) # type: ignore
        else:
            info = np.finfo(dtype) # type: ignore

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…