Skip to content

Commit

Permalink
Use sqrt in _get_manders_overlap_coeff
Browse files Browse the repository at this point in the history
  • Loading branch information
jakirkham committed Jul 14, 2023
1 parent 72cc303 commit 60db8b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/cucim/src/cucim/skimage/measure/_colocalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def manders_coloc_coeff(image0, image1_mask, mask=None):

@cp.fuse()
def _get_manders_overlap_coeff(image0, image1):
denom = (cp.sum(cp.square(image0)) * (cp.sum(cp.square(image1)))) ** 0.5
denom = cp.sqrt(cp.sum(cp.square(image0)) * (cp.sum(cp.square(image1))))
return cp.sum(cp.multiply(image0, image1)) / denom


Expand Down

0 comments on commit 60db8b1

Please sign in to comment.