spyrit.misc.disp.error_map
- spyrit.misc.disp.error_map(img1: ndarray, img2: ndarray, save_figs: bool = False, path_fig: str | Path = '', show_fig: bool = True, title: str = 'Error Map') ndarray[source]
Compute and visualize error map between two images.
- Args:
img1: First image. img2: Second image. save_figs: Whether to save the figure. path_fig: Path to save the figure. show_fig: Whether to display the figure. title: Title for the plot.
- Returns:
Error map as numpy array.
- Raises:
ValueError: If images have different shapes.