Expect Shape and range: Image - (H, W, 3) - [0., 1.]
(image: torch.Tensor | np.ndarray, whiten: float=0.75)
| 49 | return ax |
| 50 | |
| 51 | def plot_whiten_image(image: torch.Tensor | np.ndarray, whiten: float=0.75) -> Chain[Axes, Axes]: |
| 52 | """ |
| 53 | Expect Shape and range: |
| 54 | Image - (H, W, 3) - [0., 1.] |
| 55 | """ |
| 56 | H, W, _ = image.shape |
| 57 | return plot_image(image) >> plot_mask(np.ones((H, W)) * (1 - whiten)) |
| 58 | |
| 59 | @as_chain_func |
| 60 | @IgnoreException |
nothing calls this directly
no test coverage detected