Image.channelDepth

Channel modulus depth. The channel modulus depth represents the minimum number of bits required to support the channel without loss. Setting the channel's modulus depth modifies the channel (i.e. discards resolution) if the requested modulus depth is less than the current modulus depth, otherwise the channel is not altered. There is no attribute associated with the modulus depth so the current modulus depth is obtained by inspecting the pixels. As a result, the depth returned may be less than the most recently set channel depth. Subsequent image processing may result in increasing the channel depth.

  1. void channelDepth(ChannelType channel, size_t depth)
  2. size_t channelDepth(ChannelType channel)
    class Image
    size_t
    channelDepth
    const

Meta