Skip to content

Commit

Permalink
fixed is_image_rgb function
Browse files Browse the repository at this point in the history
  • Loading branch information
mese79 committed Jun 26, 2024
1 parent da181ed commit 8ddd5c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/featureforest/utils/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def is_image_rgb(image_data: ndarray) -> bool:
Returns:
bool: is image RGB(A)?
"""
return image_data.shape[-1] >= 3
return image_data.shape[-1] in [3, 4]


def is_stacked(image_data: ndarray) -> bool:
Expand Down

0 comments on commit 8ddd5c1

Please sign in to comment.