Commit 8dae147
Fix cmap validation comparing against full image channels instead of selected
When user specifies `channel=[0]` on a 3-channel image with
`cmap=['gray']`, the cmap matched the selected channel count but was
nullified because it didn't match the full image channel count. Now
the comparison uses the selected channel count (or full count when no
channel is specified).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 79b99fa commit 8dae147
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2867 | 2867 | | |
2868 | 2868 | | |
2869 | 2869 | | |
| 2870 | + | |
2870 | 2871 | | |
2871 | | - | |
2872 | | - | |
2873 | | - | |
| 2872 | + | |
| 2873 | + | |
2874 | 2874 | | |
2875 | 2875 | | |
2876 | 2876 | | |
| |||
0 commit comments