114
126
// initialize to linear mapping
116
128
for (int i=0; i<65536; ++i)
119
133
for (int i=0; i<256; ++i)
123
139
void BCGFilter::applyBCG(DImg& image)
127
146
applyBCG(image.bits(), image.width(), image.height(), image.sixteenBit());
130
149
void BCGFilter::applyBCG(uchar* bits, uint width, uint height, bool sixteenBits)
134
156
uint size = width*height;