Skip to content

Commit

Permalink
Fix an order of operations issue in PPC. (#972)
Browse files Browse the repository at this point in the history
  • Loading branch information
manthey authored Feb 8, 2023
1 parent 5813489 commit 7b1898c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion histomicstk/segmentation/positive_pixel_count.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def _count_image(image, params, mask=None):
p = params
image_hsi = rgb_to_hsi(image / 255)
mask_all_positive = (
(np.abs((image_hsi[..., 0] - p.hue_value + 0.5 % 1) - 0.5) <=
(np.abs(((image_hsi[..., 0] - p.hue_value + 0.5) % 1) - 0.5) <=
p.hue_width / 2) &
(image_hsi[..., 1] >= p.saturation_minimum) &
(image_hsi[..., 2] < p.intensity_upper_limit) &
Expand Down

0 comments on commit 7b1898c

Please sign in to comment.