highlight - OpenAOI/anodet GitHub Wiki

Table of Contents

highlight

highlighted_images

highlighted_images(images: Union[np.ndarray, torch.Tensor], patch_classifications: Union[np.ndarray, torch.Tensor], color: Tuple[int, int, int] = (255, 0, 0)) -> np.ndarray

Highlights imageareas that contains anomalys on multiple images.

Arguments:

  • images - The images to be drawn upon.
  • patch_classifications - Anomaly classifcations about the images.
  • color - The highlight color.

Returns:

  • h_images - array of higlighted images.

highlighted_image

highlighted_image(image: Union[np.ndarray, torch.Tensor], patch_classification: Union[np.ndarray, torch.Tensor], color: Tuple[int, int, int] = (255, 0, 0)) -> np.ndarray

Highlights imageareas that contains anomalys

Arguments:

  • image - The image to be drawn upon.
  • patch_classification - Anomaly classifcations about the image.
  • color - The highlight color.

Returns:

  • h_image - array of higlighted images.
⚠️ **GitHub.com Fallback** ⚠️