Home
last modified time | relevance | path

Searched refs:ColorChannel (Results 1 – 3 of 3) sorted by relevance

/external/opencv3/modules/cudev/include/opencv2/cudev/functional/detail/
Dcolor_cvt.hpp63 template <typename T> struct ColorChannel struct
69 template <> struct ColorChannel<float> struct
86 return ColorChannel<T>::max(); in getAlpha()
251 setAlpha(dst, ColorChannel<T>::max()); in operator ()()
343 const int delta = ColorChannel<T>::half() * (1 << yuv_shift); in operator ()()
371 dst.y = (r - dst.x) * c_RGB2YUVCoeffs_f[3] + ColorChannel<float>::half(); in operator ()()
372 dst.z = (b - dst.x) * c_RGB2YUVCoeffs_f[4] + ColorChannel<float>::half(); in operator ()()
388 …const int b = src.x + CV_CUDEV_DESCALE((src.z - ColorChannel<T>::half()) * c_YUV2RGBCoeffs_i[3], y… in operator ()()
389 …nt g = src.x + CV_CUDEV_DESCALE((src.z - ColorChannel<T>::half()) * c_YUV2RGBCoeffs_i[2] + (src.y … in operator ()()
390 …const int r = src.x + CV_CUDEV_DESCALE((src.y - ColorChannel<T>::half()) * c_YUV2RGBCoeffs_i[0], y… in operator ()()
[all …]
/external/opencv3/modules/core/include/opencv2/core/cuda/detail/
Dcolor_detail.hpp62 template<typename T> struct ColorChannel struct
69 template<> struct ColorChannel<float> struct
87 return ColorChannel<T>::max(); in getAlpha()
323 setAlpha(dst, ColorChannel<T>::max()); in operator ()()
502 const int delta = ColorChannel<T>::half() * (1 << yuv_shift); in RGB2YUVConvert()
516 dst.y = (src[bidx^2] - dst.x) * c_RGB2YUVCoeffs_f[3] + ColorChannel<float>::half(); in RGB2YUVConvert()
517 dst.z = (src[bidx] - dst.x) * c_RGB2YUVCoeffs_f[4] + ColorChannel<float>::half(); in RGB2YUVConvert()
551 …const int b = src.x + CV_DESCALE((src.z - ColorChannel<D>::half()) * c_YUV2RGBCoeffs_i[3], yuv_shi… in YUV2RGBConvert()
553 … const int g = src.x + CV_DESCALE((src.z - ColorChannel<D>::half()) * c_YUV2RGBCoeffs_i[2] in YUV2RGBConvert()
554 … + (src.y - ColorChannel<D>::half()) * c_YUV2RGBCoeffs_i[1], yuv_shift); in YUV2RGBConvert()
[all …]
/external/opencv3/modules/imgproc/src/
Dcolor.cpp145 template<typename _Tp> struct ColorChannel struct
152 template<> struct ColorChannel<float> struct
567 _Tp alpha = ColorChannel<_Tp>::max(); in operator ()()
597 v_alpha = vdupq_n_u8(ColorChannel<uchar>::max()); in RGB2RGB()
681 uchar alpha = ColorChannel<uchar>::max(); in operator ()()
947 _Tp alpha = ColorChannel<_Tp>::max(); in operator ()()
1719 const _Tp delta = ColorChannel<_Tp>::half(); in operator ()()
1754 v_delta = vdupq_n_f32(ColorChannel<float>::half()); in RGB2YCrCb_f()
1760 const float delta = ColorChannel<float>::half(); in operator ()()
1819 v_delta = _mm_set1_ps(ColorChannel<float>::half()); in RGB2YCrCb_f()
[all …]