Testing more grayscale
This commit is contained in:
@@ -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,11 +141,12 @@ 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
|
||||||
|
|
||||||
logger.info(
|
if 0:
|
||||||
f"Successfully loaded image: {self.path.name} "
|
logger.info(
|
||||||
f"({self._width}x{self._height}, {self._channels} channels, "
|
f"Successfully loaded image: {self.path.name} "
|
||||||
f"{self._format.upper()})"
|
f"({self._width}x{self._height}, {self._channels} channels, "
|
||||||
)
|
f"{self._format.upper()})"
|
||||||
|
)
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error(f"Error loading image {self.path}: {e}")
|
logger.error(f"Error loading image {self.path}: {e}")
|
||||||
|
|||||||
Reference in New Issue
Block a user