Home
last modified time | relevance | path

Searched refs:AB_SCALE (Results 1 – 4 of 4) sorted by relevance

/dports/graphics/opencv/opencv-4.5.3/modules/imgproc/src/opencl/
H A Dwarp_affine.cl58 #define AB_SCALE (1 << AB_BITS)
96 int round_delta = (AB_SCALE >> 1);
98 int X0_ = rint(M[0] * dx * AB_SCALE);
99 int Y0_ = rint(M[3] * dx * AB_SCALE);
104 int X0 = X0_ + rint(fma(M[1], (CT)dy, M[2]) * AB_SCALE) + round_delta;
105 int Y0 = Y0_ + rint(fma(M[4], (CT)dy, M[5]) * AB_SCALE) + round_delta;
146 int X0 = X0_ + rint(fma(M[1], (CT)dy, M[2]) * AB_SCALE) + ROUND_DELTA;
147 int Y0 = Y0_ + rint(fma(M[4], (CT)dy, M[5]) * AB_SCALE) + ROUND_DELTA;
274 int X0 = rint(M[0] * tmp) + rint(fma(M[1], (CT)dy, M[2]) * AB_SCALE) + ROUND_DELTA;
275 int Y0 = rint(M[3] * tmp) + rint(fma(M[4], (CT)dy, M[5]) * AB_SCALE) + ROUND_DELTA;
H A Dwarp_perspective.cl58 #define AB_SCALE (1 << AB_BITS)
/dports/graphics/opencv/opencv-4.5.3/modules/imgproc/test/
H A Dtest_imgwarp_strict.cpp1130 const int AB_SCALE = 1 << AB_BITS; in warpAffine() local
1131 int round_delta = (inter == INTER_NEAREST) ? AB_SCALE / 2 : (AB_SCALE / INTER_TAB_SIZE / 2); in warpAffine()
1139 int v1 = saturate_cast<int>(saturate_cast<int>(data_tM[0] * dx * AB_SCALE) + in warpAffine()
1140 saturate_cast<int>((data_tM[1] * dy + data_tM[2]) * AB_SCALE) + round_delta), in warpAffine()
1141 v2 = saturate_cast<int>(saturate_cast<int>(data_tM[3] * dx * AB_SCALE) + in warpAffine()
1142 saturate_cast<int>((data_tM[4] * dy + data_tM[5]) * AB_SCALE) + round_delta); in warpAffine()
/dports/graphics/opencv/opencv-4.5.3/modules/imgproc/src/
H A Dimgwarp.cpp2173 const int AB_SCALE = 1 << AB_BITS; in operator ()() local
2174 …int round_delta = interpolation == INTER_NEAREST ? AB_SCALE/2 : AB_SCALE/INTER_TAB_SIZE/2, x, y, x… in operator ()()
2199 int X0 = saturate_cast<int>((M[1]*(y + y1) + M[2])*AB_SCALE) + round_delta; in operator ()()
2200 int Y0 = saturate_cast<int>((M[4]*(y + y1) + M[5])*AB_SCALE) + round_delta; in operator ()()
2554 const int AB_SCALE = 1 << AB_BITS; in warpAffine() local
2558 adelta[x] = saturate_cast<int>(M[0]*x*AB_SCALE); in warpAffine()
2559 bdelta[x] = saturate_cast<int>(M[3]*x*AB_SCALE); in warpAffine()