Skip to content

Commit

Permalink
Update image.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasz-migas committed Feb 2, 2024
1 parent b2379b9 commit 90b4fe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/koyo/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import typing as ty

import numpy as np
from sklearn.metrics.pairwise import cosine_similarity


def clip_hotspots(img: np.ndarray, quantile: float = 0.99) -> np.ndarray:
Expand Down Expand Up @@ -148,6 +147,7 @@ def colocalization(img_a: np.ndarray, img_b: np.ndarray) -> float:
similarity score between two images
"""
from scipy.ndimage import median_filter
from sklearn.metrics.pairwise import cosine_similarity

img_a = np.nan_to_num(img_a)
img_b = np.nan_to_num(img_b)
Expand Down

0 comments on commit 90b4fe1

Please sign in to comment.