Lines Matching refs:pix2
266 …Ncv32u CN> struct __pixAdd_CN {static __host__ __device__ Tout _pixAdd_CN(Tout &pix1, Tin &pix2);};
269 static __host__ __device__ Tout _pixAdd_CN(Tout &pix1, Tin &pix2) in _pixAdd_CN()
272 out.x = pix1.x + pix2.x; in _pixAdd_CN()
277 static __host__ __device__ Tout _pixAdd_CN(Tout &pix1, Tin &pix2) in _pixAdd_CN()
280 out.x = pix1.x + pix2.x; in _pixAdd_CN()
281 out.y = pix1.y + pix2.y; in _pixAdd_CN()
282 out.z = pix1.z + pix2.z; in _pixAdd_CN()
287 static __host__ __device__ Tout _pixAdd_CN(Tout &pix1, Tin &pix2) in _pixAdd_CN()
290 out.x = pix1.x + pix2.x; in _pixAdd_CN()
291 out.y = pix1.y + pix2.y; in _pixAdd_CN()
292 out.z = pix1.z + pix2.z; in _pixAdd_CN()
293 out.w = pix1.w + pix2.w; in _pixAdd_CN()
297 template<typename Tin, typename Tout> static __host__ __device__ Tout _pixAdd(Tout &pix1, Tin &pix2) in _pixAdd() argument
299 return __pixAdd_CN<Tin, Tout, NC(Tin)>::_pixAdd_CN(pix1, pix2); in _pixAdd()
303 …cv32u CN> struct __pixDist_CN {static __host__ __device__ Tout _pixDist_CN(Tin &pix1, Tin &pix2);};
306 static __host__ __device__ Tout _pixDist_CN(Tin &pix1, Tin &pix2) in _pixDist_CN()
308 return Tout(SQR(pix1.x - pix2.x)); in _pixDist_CN()
312 static __host__ __device__ Tout _pixDist_CN(Tin &pix1, Tin &pix2) in _pixDist_CN()
314 return Tout(SQR(pix1.x - pix2.x) + SQR(pix1.y - pix2.y) + SQR(pix1.z - pix2.z)); in _pixDist_CN()
318 static __host__ __device__ Tout _pixDist_CN(Tin &pix1, Tin &pix2) in _pixDist_CN()
320 …return Tout(SQR(pix1.x - pix2.x) + SQR(pix1.y - pix2.y) + SQR(pix1.z - pix2.z) + SQR(pix1.w - pix2… in _pixDist_CN()
323 template<typename Tin, typename Tout> static __host__ __device__ Tout _pixDist(Tin &pix1, Tin &pix2) in _pixDist() argument
325 return __pixDist_CN<Tin, Tout, NC(Tin)>::_pixDist_CN(pix1, pix2); in _pixDist()