Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make_texture()/maketx fix to channel name with monochrome_detect (#3205)
When the make_texture option monochrome_detect is used to collapse 3 identical channels to 1, it was leaving the first channel name in place (for example, "R"). That was confusing, because at this point, we're not trying to represent a red image, we're trying to represent a grayscale image. A strategic call to `default_channel_names()` clears it up, imposing the standard "Y" we use for a single channel luminance image. Also amended the documentation of IBA::channels(). It turned out not to be the way I called channels() that was the problem here, but by the time I figured that out, I had already seen that its docs could be improved. Fixes #3204
- Loading branch information