Generic Image Library: packed_channel_value

###  | #  |

Topics
packed_channel_value
Channel » Models » scoped_channel_value

## Topics
| packed_channel_reference

## Detailed Description

A channel adaptor that modifies the range of the source channel. Models: ChannelValueConcept

Template Parameters

  BaseChannelValue | base channel (models ChannelValueConcept)
  MinVal | class with a static apply() function returning the minimum channel values
  MaxVal | class with a static apply() function returning the maximum channel values

Represents the value of an unsigned integral channel operating over a bit range. Models: ChannelValueConcept Example:

// A 4-bit unsigned integral channel.
using bits4 = packed_channel_value<4>;
assert(channel_traits<bits4>::min_value()==0);
assert(channel_traits<bits4>::max_value()==15);
assert(sizeof(bits4)==1);
static_assert(gil::is_channel_integral<bits4>::value, "");