INNER CODE UNIT · Python
_estimate
BrokenSource/DepthFlow · depthflow/estimators/__init__.py:55
def _estimate(self, image: np.ndarray) -> np.ndarray:
"""Proper estimation logic"""
...
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