Skip to content

Commit

Permalink
Merge jakirkham/use_sqrt_moc into jakirkham/cuda-12
Browse files Browse the repository at this point in the history
  • Loading branch information
jakirkham committed Jul 14, 2023
2 parents 4623692 + 60db8b1 commit 7b22430
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 7b22430

Please sign in to comment.