Skip to content

Commit

Permalink
Update measurerwcperobj.py
Browse files Browse the repository at this point in the history
add comments clarifying R_perObj and Di_perObj
  • Loading branch information
emiglietta committed Jan 11, 2025
1 parent c47c2bc commit d3801f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions active_plugins/measurerwcperobj.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,8 @@ def run_image_pair_objects(
Rank_im1_perObj[Rank1_perObj] = Rank1_S_perObj
Rank_im2_perObj[Rank2_perObj] = Rank2_S_perObj

R_perObj = max(Rank_im1_perObj.max(), Rank_im2_perObj.max()) + 1
Di_perObj = abs(Rank_im1_perObj - Rank_im2_perObj)
R_perObj = max(Rank_im1_perObj.max(), Rank_im2_perObj.max()) + 1 #max rank among all ranks in both ch
Di_perObj = abs(Rank_im1_perObj - Rank_im2_perObj) #absolute difference of rank between ch in each pixel

weight_perObj = (R_perObj - Di_perObj) * 1.0 / R_perObj
weight_thresh_perObj = weight_perObj[combined_thresh_perObj]
Expand Down

0 comments on commit d3801f1

Please sign in to comment.