Skip to content

Commit

Permalink
Minor fix for dask array image rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
folterj committed Apr 5, 2024
1 parent ed35bc1 commit 85a94c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OmeSliCC/OmeSource.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ def render(self, image: np.ndarray, source_dimension_order: str = None, t: int =
if alpha == 0:
alpha = 1
alpha_color = np.multiply(color, alpha).astype(np.float32)
new_image += np.atleast_3d(channel_values) * alpha_color
new_image = new_image + np.atleast_3d(channel_values) * alpha_color
tot_alpha += alpha
new_image = float2int_image(new_image / tot_alpha)
elif do_normalisation:
Expand Down

0 comments on commit 85a94c9

Please sign in to comment.