libpniio
Public Member Functions | Private Attributes
pni::io::image_channel_info Class Reference

image channel information class More...

#include <image_channel_info.hpp>

Public Member Functions

 image_channel_info ()
 default constructor More...
 
 image_channel_info (const pni::core::type_id_t &id, size_t bits)
 standard constructor More...
 
pni::core::type_id_t type_id () const
 get type ID More...
 
size_t bits () const
 get bits More...
 

Private Attributes

pni::core::type_id_t _tid
 ID of the datatype used for this channel. More...
 
size_t _bits
 number of bits per channel More...
 

Detailed Description

image_channle_info holds information specific to a particular image channel.

Constructor & Destructor Documentation

pni::io::image_channel_info::image_channel_info ( )
inline
pni::io::image_channel_info::image_channel_info ( const pni::core::type_id_t &  id,
size_t  bits 
)
inline
Parameters
idTypd id for the channel
bitsnumber of bits used to store channel data

Member Function Documentation

size_t pni::io::image_channel_info::bits ( ) const
inline

Return the number of bits used to store this channels data

Returns
number of bits
pni::core::type_id_t pni::io::image_channel_info::type_id ( ) const
inline

Returns the TypeID for the channel described by this object.

Returns
type ID

Field Documentation

size_t pni::io::image_channel_info::_bits
private
pni::core::type_id_t pni::io::image_channel_info::_tid
private

The documentation for this class was generated from the following file: