64,687
社区成员
发帖
与我相关
我的任务
分享
template <typename T>
struct Image
{
public:
static const int NBITS_PER_PIXEL; /// < 每一个像素的bit数
} ;
template <>
const int Image<float>::NBITS_PER_PIXEL = 32;
template <>
const int Image<unsigned char>::NBITS_PER_PIXEL = 8;