Home
last modified time | relevance | path

Searched refs:VecTraits (Results 1 – 25 of 50) sorted by relevance

12

/external/opencv3/modules/cudev/include/opencv2/cudev/util/
Dvec_math.hpp67 typedef typename VecTraits<VecD>::elem_type D; in cast()
68 return VecTraits<VecD>::make(saturate_cast<D>(v.x)); in cast()
76 typedef typename VecTraits<VecD>::elem_type D; in cast()
77 return VecTraits<VecD>::make(saturate_cast<D>(v.x), saturate_cast<D>(v.y)); in cast()
85 typedef typename VecTraits<VecD>::elem_type D; in cast()
86 … return VecTraits<VecD>::make(saturate_cast<D>(v.x), saturate_cast<D>(v.y), saturate_cast<D>(v.z)); in cast()
94 typedef typename VecTraits<VecD>::elem_type D; in cast()
95 …return VecTraits<VecD>::make(saturate_cast<D>(v.x), saturate_cast<D>(v.y), saturate_cast<D>(v.z), … in cast()
100 … saturate_cast(const uchar1& v) { return vec_math_detail::SatCastHelper<VecTraits<T>::cn, T>::cast… in saturate_cast()
101 …T saturate_cast(const char1& v) { return vec_math_detail::SatCastHelper<VecTraits<T>::cn, T>::cast… in saturate_cast()
[all …]
Dvec_traits.hpp88 template<typename T> struct VecTraits;
91 template <> struct VecTraits<type> \
99 template <> struct VecTraits<type ## 1> \
107 template <> struct VecTraits<type ## 2> \
115 template <> struct VecTraits<type ## 3> \
123 template <> struct VecTraits<type ## 4> \
142 template<> struct VecTraits<schar> struct
150 template<> struct VecTraits<char1> struct
158 template<> struct VecTraits<char2> struct
166 template<> struct VecTraits<char3> struct
[all …]
Dtype_traits.hpp158 unsigned(VecTraits<A>::cn) != unsigned(VecTraits<B>::cn),
162 typename VecTraits<A>::elem_type,
163 typename VecTraits<B>::elem_type
165 VecTraits<A>::cn
/external/opencv3/modules/core/include/opencv2/core/cuda/
Dtransform.hpp62 …transform_detail::TransformDispatcher<VecTraits<T>::cn == 1 && VecTraits<D>::cn == 1 && ft::smart_… in transform()
69 …transform_detail::TransformDispatcher<VecTraits<T1>::cn == 1 && VecTraits<T2>::cn == 1 && VecTrait… in transform()
Dvec_math.hpp67 typedef typename VecTraits<VecD>::elem_type D; in cast()
68 return VecTraits<VecD>::make(saturate_cast<D>(v.x)); in cast()
75 typedef typename VecTraits<VecD>::elem_type D; in cast()
76 return VecTraits<VecD>::make(saturate_cast<D>(v.x), saturate_cast<D>(v.y)); in cast()
83 typedef typename VecTraits<VecD>::elem_type D; in cast()
84 … return VecTraits<VecD>::make(saturate_cast<D>(v.x), saturate_cast<D>(v.y), saturate_cast<D>(v.z)); in cast()
91 typedef typename VecTraits<VecD>::elem_type D; in cast()
92 …return VecTraits<VecD>::make(saturate_cast<D>(v.x), saturate_cast<D>(v.y), saturate_cast<D>(v.z), … in cast()
98 return SatCastHelper<VecTraits<VecD>::cn, VecD>::cast(v); in saturate_cast_helper()
143 return VecTraits<output_type ## 1>::make(op (a.x)); \
[all …]
Dvec_traits.hpp166 template<typename T> struct VecTraits;
169 template<> struct VecTraits<type> \
177 template<> struct VecTraits<type ## 1> \
185 template<> struct VecTraits<type ## 2> \
193 template<> struct VecTraits<type ## 3> \
201 template<> struct VecTraits<type ## 4> \
209 template<> struct VecTraits<type ## 8> \
228 template<> struct VecTraits<char> struct
236 template<> struct VecTraits<schar> struct
244 template<> struct VecTraits<char1> struct
[all …]
Dfilters.hpp92 typedef typename TypeVec<float, VecTraits<elem_type>::cn>::vec_type work_type; in operator ()()
94 work_type out = VecTraits<work_type>::all(0); in operator ()()
123 typedef typename TypeVec<float, VecTraits<elem_type>::cn>::vec_type work_type;
157 work_type sum = VecTraits<work_type>::all(0); in operator ()()
170 work_type res = (!wsum)? VecTraits<work_type>::all(0) : sum / wsum; in operator ()()
200 typedef typename TypeVec<float, VecTraits<elem_type>::cn>::vec_type work_type; in operator ()()
201 work_type out = VecTraits<work_type>::all(0.f); in operator ()()
240 typedef typename TypeVec<float, VecTraits<elem_type>::cn>::vec_type work_type; in operator ()()
241 work_type out = VecTraits<work_type>::all(0.f); in operator ()()
/external/opencv3/modules/cudev/include/opencv2/cudev/warp/
Dshuffle.hpp110 return VecTraits<input_type ## 1>::make( \
116 return VecTraits<input_type ## 2>::make( \
123 return VecTraits<input_type ## 3>::make( \
131 return VecTraits<input_type ## 4>::make( \
201 return VecTraits<input_type ## 1>::make( \
207 return VecTraits<input_type ## 2>::make( \
214 return VecTraits<input_type ## 3>::make( \
222 return VecTraits<input_type ## 4>::make( \
292 return VecTraits<input_type ## 1>::make( \
298 return VecTraits<input_type ## 2>::make( \
[all …]
/external/opencv3/modules/cudev/include/opencv2/cudev/grid/
Dsplit_merge.hpp66 CV_StaticAssert( VecTraits<DstType>::cn == tuple_size<SrcPtrTuple>::value, "" ); in gridMerge_()
75 grid_split_merge_detail::MergeImpl<VecTraits<DstType>::cn, Policy>::merge(shrinkPtr(src), in gridMerge_()
85 CV_StaticAssert( VecTraits<DstType>::cn == tuple_size<SrcPtrTuple>::value, "" ); in gridMerge_()
93 grid_split_merge_detail::MergeImpl<VecTraits<DstType>::cn, Policy>::merge(shrinkPtr(src), in gridMerge_()
103 CV_StaticAssert( VecTraits<DstType>::cn == tuple_size<SrcPtrTuple>::value, "" ); in gridMerge_()
110 grid_split_merge_detail::MergeImpl<VecTraits<DstType>::cn, Policy>::merge(shrinkPtr(src), in gridMerge_()
120 CV_StaticAssert( VecTraits<DstType>::cn == tuple_size<SrcPtrTuple>::value, "" ); in gridMerge_()
127 grid_split_merge_detail::MergeImpl<VecTraits<DstType>::cn, Policy>::merge(shrinkPtr(src), in gridMerge_()
137 CV_StaticAssert( VecTraits<typename PtrTraits<SrcPtr>::value_type>::cn == 2, "" ); in gridSplit_()
157 CV_StaticAssert( VecTraits<typename PtrTraits<SrcPtr>::value_type>::cn == 2, "" ); in gridSplit_()
[all …]
Dreduce_to_vec.hpp76 return VecTraits<T>::all(0); in initialValue()
96 return VecTraits<T>::all(0); in initialValue()
116 return VecTraits<T>::all(numeric_limits<typename VecTraits<T>::elem_type>::max()); in initialValue()
136 return VecTraits<T>::all(-numeric_limits<typename VecTraits<T>::elem_type>::max()); in initialValue()
Dreduce.hpp68 CV_StaticAssert( unsigned(VecTraits<src_type>::cn) == unsigned(VecTraits<ResType>::cn), "" ); in gridCalcSum_()
90 CV_StaticAssert( unsigned(VecTraits<src_type>::cn) == unsigned(VecTraits<ResType>::cn), "" ); in gridCalcSum_()
262 const src_type zero = VecTraits<src_type>::all(0); in gridCountNonZero_()
282 const src_type zero = VecTraits<src_type>::all(0); in gridCountNonZero_()
/external/opencv3/modules/cudev/include/opencv2/cudev/ptr2d/
Dinterpolation.hpp107 typedef typename VecTraits<src_type>::elem_type src_elem_type; in operator ()()
109 typedef typename MakeVec<work_elem_type, VecTraits<src_type>::cn>::type work_type; in operator ()()
111 work_type out = VecTraits<work_type>::all(0); in operator ()()
182 typedef typename VecTraits<src_type>::elem_type src_elem_type; in operator ()()
184 typedef typename MakeVec<work_elem_type, VecTraits<src_type>::cn>::type work_type; in operator ()()
192 work_type sum = VecTraits<work_type>::all(0); in operator ()()
207 …work_type res = (wsum > numeric_limits<float>::epsilon()) ? VecTraits<work_type>::all(0) : sum / s… in operator ()()
245 typedef typename VecTraits<src_type>::elem_type src_elem_type; in operator ()()
247 typedef typename MakeVec<work_elem_type, VecTraits<src_type>::cn>::type work_type; in operator ()()
255 work_type out = VecTraits<work_type>::all(0); in operator ()()
[all …]
/external/opencv3/modules/cudev/include/opencv2/cudev/grid/detail/
Dreduce.hpp98 …__device__ __forceinline__ static tuple<typename VecTraits<R>::elem_type&, typename VecTraits<R>::… in res()
119 __device__ __forceinline__ static tuple<typename VecTraits<R>::elem_type&,
120 typename VecTraits<R>::elem_type&,
121 typename VecTraits<R>::elem_type&> res(R& val) in res()
142 __device__ __forceinline__ static tuple<typename VecTraits<R>::elem_type&,
143 typename VecTraits<R>::elem_type&,
144 typename VecTraits<R>::elem_type&,
145 typename VecTraits<R>::elem_type&> res(R& val) in res()
261 typedef typename VecTraits<work_type>::elem_type work_elem_type;
262 enum { cn = VecTraits<src_type>::cn };
[all …]
Dpyr_up.hpp64 typedef typename VecTraits<src_type>::elem_type src_elem_type; in pyrUp()
66 typedef typename MakeVec<work_elem_type, VecTraits<src_type>::cn>::type work_type; in pyrUp()
90 work_type sum = VecTraits<work_type>::all(0); in pyrUp()
110 sum = VecTraits<work_type>::all(0); in pyrUp()
126 sum = VecTraits<work_type>::all(0); in pyrUp()
142 sum = VecTraits<work_type>::all(0); in pyrUp()
Dsplit_merge.hpp65 typedef typename VecTraits<DstType>::elem_type dst_elem_type; in mergeC2()
73 dst(y, x) = VecTraits<DstType>::make( in mergeC2()
95 typedef typename VecTraits<DstType>::elem_type dst_elem_type; in mergeC3()
103 dst(y, x) = VecTraits<DstType>::make( in mergeC3()
126 typedef typename VecTraits<DstType>::elem_type dst_elem_type; in mergeC4()
134 dst(y, x) = VecTraits<DstType>::make( in mergeC4()
/external/opencv3/modules/cudev/include/opencv2/cudev/functional/
Dfunctional.hpp132 template <typename T> struct equal_to : binary_function<T, T, typename MakeVec<uchar, VecTraits<T>:…
134 __device__ __forceinline__ typename MakeVec<uchar, VecTraits<T>::cn>::type
142 template <typename T> struct not_equal_to : binary_function<T, T, typename MakeVec<uchar, VecTraits
144 __device__ __forceinline__ typename MakeVec<uchar, VecTraits<T>::cn>::type
152 template <typename T> struct greater : binary_function<T, T, typename MakeVec<uchar, VecTraits<T>::…
154 __device__ __forceinline__ typename MakeVec<uchar, VecTraits<T>::cn>::type
162 template <typename T> struct less : binary_function<T, T, typename MakeVec<uchar, VecTraits<T>::cn>…
164 __device__ __forceinline__ typename MakeVec<uchar, VecTraits<T>::cn>::type
172 …me T> struct greater_equal : binary_function<T, T, typename MakeVec<uchar, VecTraits<T>::cn>::type>
174 __device__ __forceinline__ typename MakeVec<uchar, VecTraits<T>::cn>::type
[all …]
/external/opencv3/modules/cudawarping/src/cuda/
Dpyr_up.cu57 typedef typename TypeVec<float, VecTraits<T>::cn>::vec_type sum_t; in pyrUp()
81 sum_t sum = VecTraits<sum_t>::all(0); in pyrUp()
101 sum = VecTraits<sum_t>::all(0); in pyrUp()
117 sum = VecTraits<sum_t>::all(0); in pyrUp()
133 sum = VecTraits<sum_t>::all(0); in pyrUp()
Dremap.cu74 typedef typename TypeVec<float, VecTraits<T>::cn>::vec_type work_type; in call()
79 B<work_type> brd(src.rows, src.cols, VecTraits<work_type>::make(borderValue)); in call()
95 typedef typename TypeVec<float, VecTraits<T>::cn>::vec_type work_type; in call()
100 B<work_type> brd(src.rows, src.cols, VecTraits<work_type>::make(borderValue)); in call()
129 typedef typename TypeVec<float, VecTraits< type >::cn>::vec_type work_type; \
134 B<work_type> brd(src.rows, src.cols, VecTraits<work_type>::make(borderValue)); \
Dwarp.cu145 typedef typename TypeVec<float, VecTraits<T>::cn>::vec_type work_type; in call()
150 B<work_type> brd(src.rows, src.cols, VecTraits<work_type>::make(borderValue)); in call()
167 typedef typename TypeVec<float, VecTraits<T>::cn>::vec_type work_type; in call()
172 B<work_type> brd(src.rows, src.cols, VecTraits<work_type>::make(borderValue)); in call()
200 typedef typename TypeVec<float, VecTraits< type >::cn>::vec_type work_type; \
205 B<work_type> brd(src.rows, src.cols, VecTraits<work_type>::make(borderValue)); \
/external/opencv3/modules/core/src/cuda/
Dgpu_mat.cu263 …gridTransformUnary_< CopyToPolicy<sizeof(typename VecTraits<T>::elem_type)> >(globPtr<T>(src), glo… in copyWithMask()
320 Scalar_<typename VecTraits<T>::elem_type> scalar = _scalar; in setToWithOutMask()
321 …gridTransformUnary(constantPtr(VecTraits<T>::make(scalar.val), mat.rows, mat.cols), globPtr<T>(mat… in setToWithOutMask()
327 Scalar_<typename VecTraits<T>::elem_type> scalar = _scalar; in setToWithMask()
328 …gridTransformUnary(constantPtr(VecTraits<T>::make(scalar.val), mat.rows, mat.cols), globPtr<T>(mat… in setToWithMask()
435 typedef typename VecTraits<T>::elem_type src_elem_type; in convertToNoScale()
436 typedef typename VecTraits<D>::elem_type dst_elem_type; in convertToNoScale()
457 typedef typename VecTraits<T>::elem_type src_elem_type; in convertToScale()
458 typedef typename VecTraits<D>::elem_type dst_elem_type; in convertToScale()
/external/opencv3/modules/cudafilters/src/cuda/
Dfilter2d.cu57 typedef typename TypeVec<float, VecTraits<D>::cn>::vec_type sum_t; in filter2D()
65 sum_t res = VecTraits<sum_t>::all(0); in filter2D()
98 typedef typename TypeVec<float, VecTraits< type >::cn>::vec_type work_type; \
103 Brd<work_type> brd(dst.rows, dst.cols, VecTraits<work_type>::make(borderValue)); \
/external/opencv3/modules/photo/src/cuda/
Dnlm.cu70 typedef typename TypeVec<float, VecTraits<T>::cn>::vec_type value_type; in nlm_kernel()
82 value_type sum1 = VecTraits<value_type>::all(0); in nlm_kernel()
144 float minus_h2_inv = -1.f/(h * h * VecTraits<T>::cn); in nlm_caller()
292 …ndow(search_window_), block_window(block_window_), minus_h2_inv(-1.f/(h * h * VecTraits<T>::cn)) {} in FastNonLocalMeans()
397 typedef typename TypeVec<float, VecTraits<T>::cn>::vec_type sum_type; in convolve_window()
400 sum_type sum = VecTraits<sum_type>::all(0); in convolve_window()
419 __shared__ float cta_buffer[CTA_SIZE * (VecTraits<T>::cn + 1)]; in convolve_window()
421 … reduce<CTA_SIZE>(Unroll<VecTraits<T>::cn>::template smem_tuple<CTA_SIZE>(cta_buffer), in convolve_window()
422 Unroll<VecTraits<T>::cn>::tie(weights_sum, sum), in convolve_window()
424 Unroll<VecTraits<T>::cn>::op()); in convolve_window()
/external/opencv3/modules/cudaarithm/src/cuda/
Ddiv_scalar.cu113 …return saturate_cast<DstType>(SafeDiv<ScalarType, VecTraits<ScalarType>::cn>::op(saturate_cast<Sca… in operator ()()
123 …return saturate_cast<DstType>(SafeDiv<ScalarType, VecTraits<ScalarType>::cn>::op(val, saturate_cas… in operator ()()
140 typedef typename MakeVec<ScalarDepth, VecTraits<SrcType>::cn>::type ScalarType; in divScalarImpl()
147 op.val = VecTraits<ScalarType>::make(value_.val); in divScalarImpl()
154 op.val = VecTraits<ScalarType>::make(value_.val); in divScalarImpl()
Dcmp_scalar.cu92 return VecTraits<MAKE_VEC(uchar, 2)>::make(op(src.x, val.x), op(src.y, val.y));
104 … return VecTraits<MAKE_VEC(uchar, 3)>::make(op(src.x, val.x), op(src.y, val.y), op(src.z, val.z));
116 …return VecTraits<MAKE_VEC(uchar, 4)>::make(op(src.x, val.x), op(src.y, val.y), op(src.z, val.z), o…
141 op.val = VecTraits<src_type>::make(value_.val); in cmpScalarImpl()
/external/opencv3/modules/cudalegacy/src/cuda/
Dccomponetns.cu135 typedef typename VecTraits<T>::elem_type E;
149 typedef typename VecTraits<T>::elem_type E;
151 …: lo (VecTraits<T>::make((E)(-_lo.x), (E)(-_lo.y), (E)(-_lo.z))), hi (VecTraits<T>::make((E)_hi.x,… in InInterval()
165 typedef typename VecTraits<T>::elem_type E;
167 …: lo (VecTraits<T>::make((E)(-_lo.x), (E)(-_lo.y), (E)(-_lo.z), (E)(-_lo.w))), hi (VecTraits<T>::m… in InInterval()

12