Testing more grayscale

This commit is contained in:
2025-12-19 12:02:11 +02:00
parent b0c05f0225
commit 2b0b48921e

View File

@@ -46,7 +46,7 @@ def get_pseudo_rgb(arr: np.ndarray, gamma: float = 0.3) -> np.ndarray:
a3[a3 > p9999] = p9999 a3[a3 > p9999] = p9999
a3 /= a3.max() a3 /= a3.max()
return np.stack([a1, a1, a1], axis=0) return np.stack([a1, np.zeros(a1.shape), np.zeros(a1.shape)], axis=0)
# return np.stack([a1, a2, a3], axis=0) # return np.stack([a1, a2, a3], axis=0)
@@ -141,6 +141,7 @@ class Image:
self._size_bytes = self.path.stat().st_size self._size_bytes = self.path.stat().st_size
self._dtype = self._data.dtype self._dtype = self._data.dtype
if 0:
logger.info( logger.info(
f"Successfully loaded image: {self.path.name} " f"Successfully loaded image: {self.path.name} "
f"({self._width}x{self._height}, {self._channels} channels, " f"({self._width}x{self._height}, {self._channels} channels, "