MCPcopy Create free account
hub / github.com/MAC-VO/MAC-VO / plot_whiten_image

Function plot_whiten_image

Utility/Plot/PlotAxes.py:51–57  ·  view source on GitHub ↗

Expect Shape and range: Image - (H, W, 3) - [0., 1.]

(image: torch.Tensor | np.ndarray, whiten: float=0.75)

Source from the content-addressed store, hash-verified

49 return ax
50
51def 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

Callers

nothing calls this directly

Calls 2

plot_imageFunction · 0.85
plot_maskFunction · 0.85

Tested by

no test coverage detected