-
Notifications
You must be signed in to change notification settings - Fork 168
Open
Labels
cat/annoyanceNot a bug, not a feature, but something that should be improvedNot a bug, not a feature, but something that should be improvedcoreboost/gilboost/gil
Description
Actual behavior
image_view::num_channels()
returnssize_t
nth_channel_view(View, int n)
expectsint
for index
Apart from signed and unsigned mix-up causing the annoying compilation warnings,
if no rationale of the mix is provided, it's a sloppy design of the interface.
Expected behavior
Use of common type for indexing of image_view
channels.
C++ Minimal Working Example
#include <boost/gil.hpp>
namespace gil = boost::gil;
int main
{
gil::rgb8_image_t img;
auto v = gil::view(img);
for (std::size_t i = 0; i < v.num_channels(); i++)
auto _ = nth_channel_view(v, i);
}
Metadata
Metadata
Assignees
Labels
cat/annoyanceNot a bug, not a feature, but something that should be improvedNot a bug, not a feature, but something that should be improvedcoreboost/gilboost/gil