8 template<
typename TPIXEL,
typename TCHANNEL>
12 template<
typename TPIXEL,
typename TCHANNEL>
15 return resampleTo_1ch(dst);
16 }
else if (chCount == 4) {
17 return resampleTo_4ch(dst);
23 template<
typename TPIXEL,
typename TCHANNEL>
25 if (getSrcData() == NULL) {
29 TPIXEL *
const dstData = dst.
getData();
30 if (dstData == NULL) {
38 unsigned origWidth = getSrcWidth();
39 unsigned origHeight = getSrcHeight();
45 double xSigma = force * origWidth / (2.0 * dstWidth);
46 double ySigma = force * origHeight / (2.0 * dstHeight);
47 xSigma = (xSigma < 0.505) ? 0 : xSigma;
48 ySigma = (ySigma < 0.505) ? 0 : ySigma;
50 if (xSigma > 0.35 || ySigma > 0.35) {
57 if (preBlurred == NULL) {
84 return resampleTo(dst);