Lines Matching full:p11
54 template<typename T, Ncv32u CN> struct __average4_CN {static __host__ __device__ T _average4_CN(const T &p00, const T &p01, const T &p10, const T &p11);};
57 static __host__ __device__ T _average4_CN(const T &p00, const T &p01, const T &p10, const T &p11)
60 out.x = ((Ncv32s)p00.x + p01.x + p10.x + p11.x + 2) / 4;
65 static __host__ __device__ float1 _average4_CN(const float1 &p00, const float1 &p01, const float1 &p10, const float1 &p11)
68 out.x = (p00.x + p01.x + p10.x + p11.x) / 4;
73 static __host__ __device__ double1 _average4_CN(const double1 &p00, const double1 &p01, const double1 &p10, const double1 &p11)
76 out.x = (p00.x + p01.x + p10.x + p11.x) / 4;
81 static __host__ __device__ T _average4_CN(const T &p00, const T &p01, const T &p10, const T &p11)
84 out.x = ((Ncv32s)p00.x + p01.x + p10.x + p11.x + 2) / 4;
85 out.y = ((Ncv32s)p00.y + p01.y + p10.y + p11.y + 2) / 4;
86 out.z = ((Ncv32s)p00.z + p01.z + p10.z + p11.z + 2) / 4;
91 static __host__ __device__ float3 _average4_CN(const float3 &p00, const float3 &p01, const float3 &p10, const float3 &p11)
94 out.x = (p00.x + p01.x + p10.x + p11.x) / 4;
95 out.y = (p00.y + p01.y + p10.y + p11.y) / 4;
96 out.z = (p00.z + p01.z + p10.z + p11.z) / 4;
101 static __host__ __device__ double3 _average4_CN(const double3 &p00, const double3 &p01, const double3 &p10, const double3 &p11)
104 out.x = (p00.x + p01.x + p10.x + p11.x) / 4;
105 out.y = (p00.y + p01.y + p10.y + p11.y) / 4;
106 out.z = (p00.z + p01.z + p10.z + p11.z) / 4;
111 static __host__ __device__ T _average4_CN(const T &p00, const T &p01, const T &p10, const T &p11)
114 out.x = ((Ncv32s)p00.x + p01.x + p10.x + p11.x + 2) / 4;
115 out.y = ((Ncv32s)p00.y + p01.y + p10.y + p11.y + 2) / 4;
116 out.z = ((Ncv32s)p00.z + p01.z + p10.z + p11.z + 2) / 4;
117 out.w = ((Ncv32s)p00.w + p01.w + p10.w + p11.w + 2) / 4;
122 static __host__ __device__ float4 _average4_CN(const float4 &p00, const float4 &p01, const float4 &p10, const float4 &p11)
125 out.x = (p00.x + p01.x + p10.x + p11.x) / 4;
126 out.y = (p00.y + p01.y + p10.y + p11.y) / 4;
127 out.z = (p00.z + p01.z + p10.z + p11.z) / 4;
128 out.w = (p00.w + p01.w + p10.w + p11.w) / 4;
133 static __host__ __device__ double4 _average4_CN(const double4 &p00, const double4 &p01, const double4 &p10, const double4 &p11)
136 out.x = (p00.x + p01.x + p10.x + p11.x) / 4;
137 out.y = (p00.y + p01.y + p10.y + p11.y) / 4;
138 out.z = (p00.z + p01.z + p10.z + p11.z) / 4;
139 out.w = (p00.w + p01.w + p10.w + p11.w) / 4;
143 template<typename T> static __host__ __device__ T _average4(const T &p00, const T &p01, const T &p10, const T &p11)
145 return __average4_CN<T, NC(T)>::_average4_CN(p00, p01, p10, p11);
202 T p11 = d_src_line2[2*j+1];
204 d_dst_line[j] = _average4(p00, p01, p10, p11);
277 T p00, p01, p10, p11;
281 p11 = (xh < szTopRoi.width && yh < szTopRoi.height) ? d_src_line2[xh] : p00;
284 TVFlt m_10_11 = _lerp<T, TVFlt>(p10, p11, dx);
352 T p00, p01, p10, p11;
356 p11 = (xh < refLayer.width() && yh < refLayer.height()) ? refLayer.at(xh, yh) : p00;
359 TVFlt m_10_11 = _lerp<T, TVFlt>(p10, p11, dx);
433 T p11 = h_prevLayer.at(2*j+1, 2*i+1);
434 T outGold = _average4(p00, p01, p10, p11);
450 T p11 = prevLayer->at(2*j+1, 2*i+1);
451 curLayer->at(j, i) = _average4(p00, p01, p10, p11);