Skip to content

Commit

Permalink
Fixed hcat.lib.utils.load not auto max projecting the input image
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris committed Oct 31, 2022
1 parent 926baef commit 0d258d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hcat/lib/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def load(file: str, header_name: Optional[str] = 'TileScan 1 Merged',
image_base = io.imread(file)

if image_base.ndim == 4:
image_base = image_base.transpose((-1, 1, 2, 0))
image_base = image_base.transpose((-1, 1, 2, 0)).max(-1)

elif image_base.ndim == 3 and np.array(
image_base.shape).min() > 4: # Suppose you load a 3D image with one channel.
Expand Down

0 comments on commit 0d258d6

Please sign in to comment.