def image_threshold(self) -> torch.tensor:
        """Get the image-level threshold.

        Returns:
            float: Image-level threshold value.
        """
        if not self._image_threshold.isnan():
            return self._image_threshold
        return self._pixel_threshold if self.enable_threshold_matching else torch.tensor(float("nan"))
Get the image-level threshold.

        Returns:
            float: Image-level threshold value.
        
src/anomalib/post_processing/post_processor.py