bidx 207 apps/traincascade/HOGfeatures.cpp int bidx = cvFloor(angle); bidx 208 apps/traincascade/HOGfeatures.cpp angle -= bidx; bidx 209 apps/traincascade/HOGfeatures.cpp if( bidx < 0 ) bidx 210 apps/traincascade/HOGfeatures.cpp bidx += nbins; bidx 211 apps/traincascade/HOGfeatures.cpp else if( bidx >= nbins ) bidx 212 apps/traincascade/HOGfeatures.cpp bidx -= nbins; bidx 214 apps/traincascade/HOGfeatures.cpp qanglePtr[x] = (uchar)bidx; bidx 110 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <typename T, int scn, int dcn, int bidx> struct RGB2RGB bidx 117 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst.x = (&src.x)[bidx]; bidx 119 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst.z = (&src.x)[bidx^2]; bidx 148 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp #define OPENCV_CUDA_IMPLEMENT_RGB2RGB_TRAITS(name, scn, dcn, bidx) \ bidx 151 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp typedef ::cv::cuda::device::color_detail::RGB2RGB<T, scn, dcn, bidx> functor_type; \ bidx 162 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int green_bits, int bidx> struct RGB2RGB5x5Converter; bidx 163 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template<int bidx> struct RGB2RGB5x5Converter<6, bidx> bidx 167 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp return (ushort)(((&src.x)[bidx] >> 3) | ((src.y & ~3) << 3) | (((&src.x)[bidx^2] & ~7) << 8)); bidx 172 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp uint b = 0xffu & (src >> (bidx * 8)); bidx 174 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp uint r = 0xffu & (src >> ((bidx ^ 2) * 8)); bidx 179 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template<int bidx> struct RGB2RGB5x5Converter<5, bidx> bidx 183 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp return (ushort)(((&src.x)[bidx] >> 3) | ((src.y & ~7) << 2) | (((&src.x)[bidx^2] & ~7) << 7)); bidx 188 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp uint b = 0xffu & (src >> (bidx * 8)); bidx 190 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp uint r = 0xffu & (src >> ((bidx ^ 2) * 8)); bidx 196 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template<int scn, int bidx, int green_bits> struct RGB2RGB5x5; bidx 198 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template<int bidx, int green_bits> struct RGB2RGB5x5<3, bidx,green_bits> : unary_function<uchar3, ushort> bidx 202 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp return RGB2RGB5x5Converter<green_bits, bidx>::cvt(src); bidx 209 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template<int bidx, int green_bits> struct RGB2RGB5x5<4, bidx,green_bits> : unary_function<uint, ushort> bidx 213 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp return RGB2RGB5x5Converter<green_bits, bidx>::cvt(src); bidx 221 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp #define OPENCV_CUDA_IMPLEMENT_RGB2RGB5x5_TRAITS(name, scn, bidx, green_bits) \ bidx 233 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int green_bits, int bidx> struct RGB5x52RGBConverter; bidx 235 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx> struct RGB5x52RGBConverter<5, bidx> bidx 239 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp (&dst.x)[bidx] = src << 3; bidx 241 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp (&dst.x)[bidx ^ 2] = (src >> 7) & ~7; bidx 248 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst |= (0xffu & (src << 3)) << (bidx * 8); bidx 250 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst |= (0xffu & ((src >> 7) & ~7)) << ((bidx ^ 2) * 8); bidx 255 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx> struct RGB5x52RGBConverter<6, bidx> bidx 259 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp (&dst.x)[bidx] = src << 3; bidx 261 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp (&dst.x)[bidx ^ 2] = (src >> 8) & ~7; bidx 268 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst |= (0xffu & (src << 3)) << (bidx * 8); bidx 270 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst |= (0xffu & ((src >> 8) & ~7)) << ((bidx ^ 2) * 8); bidx 274 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int dcn, int bidx, int green_bits> struct RGB5x52RGB; bidx 276 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx, int green_bits> struct RGB5x52RGB<3, bidx, green_bits> : unary_function<ushort, uchar3> bidx 281 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp RGB5x52RGBConverter<green_bits, bidx>::cvt(src, dst); bidx 289 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx, int green_bits> struct RGB5x52RGB<4, bidx, green_bits> : unary_function<ushort, uint> bidx 294 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp RGB5x52RGBConverter<green_bits, bidx>::cvt(src, dst); bidx 302 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp #define OPENCV_CUDA_IMPLEMENT_RGB5x52RGB_TRAITS(name, dcn, bidx, green_bits) \ bidx 444 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx, typename T> static __device__ __forceinline__ T RGB2GrayConvert(const T* src) bidx 446 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp return (T)CV_DESCALE((unsigned)(src[bidx] * B2Y + src[1] * G2Y + src[bidx^2] * R2Y), yuv_shift); bidx 449 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx> static __device__ __forceinline__ uchar RGB2GrayConvert(uint src) bidx 451 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp uint b = 0xffu & (src >> (bidx * 8)); bidx 453 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp uint r = 0xffu & (src >> ((bidx ^ 2) * 8)); bidx 457 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx> static __device__ __forceinline__ float RGB2GrayConvert(const float* src) bidx 459 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp return src[bidx] * 0.114f + src[1] * 0.587f + src[bidx^2] * 0.299f; bidx 462 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <typename T, int scn, int bidx> struct RGB2Gray : unary_function<typename TypeVec<T, scn>::vec_type, T> bidx 466 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp return RGB2GrayConvert<bidx>(&src.x); bidx 472 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx> struct RGB2Gray<uchar, 4, bidx> : unary_function<uint, uchar> bidx 476 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp return RGB2GrayConvert<bidx>(src); bidx 483 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp #define OPENCV_CUDA_IMPLEMENT_RGB2GRAY_TRAITS(name, scn, bidx) \ bidx 486 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp typedef ::cv::cuda::device::color_detail::RGB2Gray<T, scn, bidx> functor_type; \ bidx 500 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx, typename T, typename D> static __device__ void RGB2YUVConvert(const T* src, D& dst) bidx 504 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp const int Y = CV_DESCALE(src[0] * c_RGB2YUVCoeffs_i[bidx^2] + src[1] * c_RGB2YUVCoeffs_i[1] + src[2] * c_RGB2YUVCoeffs_i[bidx], yuv_shift); bidx 505 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp const int Cr = CV_DESCALE((src[bidx^2] - Y) * c_RGB2YUVCoeffs_i[3] + delta, yuv_shift); bidx 506 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp const int Cb = CV_DESCALE((src[bidx] - Y) * c_RGB2YUVCoeffs_i[4] + delta, yuv_shift); bidx 513 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx, typename D> static __device__ __forceinline__ void RGB2YUVConvert(const float* src, D& dst) bidx 515 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst.x = src[0] * c_RGB2YUVCoeffs_f[bidx^2] + src[1] * c_RGB2YUVCoeffs_f[1] + src[2] * c_RGB2YUVCoeffs_f[bidx]; bidx 516 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst.y = (src[bidx^2] - dst.x) * c_RGB2YUVCoeffs_f[3] + ColorChannel<float>::half(); bidx 517 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst.z = (src[bidx] - dst.x) * c_RGB2YUVCoeffs_f[4] + ColorChannel<float>::half(); bidx 520 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <typename T, int scn, int dcn, int bidx> struct RGB2YUV bidx 526 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp RGB2YUVConvert<bidx>(&src.x, dst); bidx 534 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp #define OPENCV_CUDA_IMPLEMENT_RGB2YUV_TRAITS(name, scn, dcn, bidx) \ bidx 537 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp typedef ::cv::cuda::device::color_detail::RGB2YUV<T, scn, dcn, bidx> functor_type; \ bidx 549 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx, typename T, typename D> static __device__ void YUV2RGBConvert(const T& src, D* dst) bidx 558 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst[bidx] = saturate_cast<D>(b); bidx 560 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst[bidx^2] = saturate_cast<D>(r); bidx 563 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx> static __device__ uint YUV2RGBConvert(uint src) bidx 578 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst |= saturate_cast<uchar>(b) << (bidx * 8); bidx 580 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst |= saturate_cast<uchar>(r) << ((bidx ^ 2) * 8); bidx 585 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx, typename T> static __device__ __forceinline__ void YUV2RGBConvert(const T& src, float* dst) bidx 587 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst[bidx] = src.x + (src.z - ColorChannel<float>::half()) * c_YUV2RGBCoeffs_f[3]; bidx 592 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst[bidx^2] = src.x + (src.y - ColorChannel<float>::half()) * c_YUV2RGBCoeffs_f[0]; bidx 595 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <typename T, int scn, int dcn, int bidx> struct YUV2RGB bidx 602 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp YUV2RGBConvert<bidx>(src, &dst.x); bidx 611 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx> struct YUV2RGB<uchar, 4, 4, bidx> : unary_function<uint, uint> bidx 615 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp return YUV2RGBConvert<bidx>(src); bidx 622 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp #define OPENCV_CUDA_IMPLEMENT_YUV2RGB_TRAITS(name, scn, dcn, bidx) \ bidx 625 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp typedef ::cv::cuda::device::color_detail::YUV2RGB<T, scn, dcn, bidx> functor_type; \ bidx 639 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx, typename T, typename D> static __device__ void RGB2YCrCbConvert(const T* src, D& dst) bidx 643 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp const int Y = CV_DESCALE(src[0] * c_RGB2YCrCbCoeffs_i[bidx^2] + src[1] * c_RGB2YCrCbCoeffs_i[1] + src[2] * c_RGB2YCrCbCoeffs_i[bidx], yuv_shift); bidx 644 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp const int Cr = CV_DESCALE((src[bidx^2] - Y) * c_RGB2YCrCbCoeffs_i[3] + delta, yuv_shift); bidx 645 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp const int Cb = CV_DESCALE((src[bidx] - Y) * c_RGB2YCrCbCoeffs_i[4] + delta, yuv_shift); bidx 652 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx> static __device__ uint RGB2YCrCbConvert(uint src) bidx 656 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp const int Y = CV_DESCALE((0xffu & src) * c_RGB2YCrCbCoeffs_i[bidx^2] + (0xffu & (src >> 8)) * c_RGB2YCrCbCoeffs_i[1] + (0xffu & (src >> 16)) * c_RGB2YCrCbCoeffs_i[bidx], yuv_shift); bidx 657 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp const int Cr = CV_DESCALE(((0xffu & (src >> ((bidx ^ 2) * 8))) - Y) * c_RGB2YCrCbCoeffs_i[3] + delta, yuv_shift); bidx 658 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp const int Cb = CV_DESCALE(((0xffu & (src >> (bidx * 8))) - Y) * c_RGB2YCrCbCoeffs_i[4] + delta, yuv_shift); bidx 669 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx, typename D> static __device__ __forceinline__ void RGB2YCrCbConvert(const float* src, D& dst) bidx 671 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst.x = src[0] * c_RGB2YCrCbCoeffs_f[bidx^2] + src[1] * c_RGB2YCrCbCoeffs_f[1] + src[2] * c_RGB2YCrCbCoeffs_f[bidx]; bidx 672 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst.y = (src[bidx^2] - dst.x) * c_RGB2YCrCbCoeffs_f[3] + ColorChannel<float>::half(); bidx 673 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst.z = (src[bidx] - dst.x) * c_RGB2YCrCbCoeffs_f[4] + ColorChannel<float>::half(); bidx 676 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <typename T, int scn, int dcn, int bidx> struct RGB2YCrCb bidx 682 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp RGB2YCrCbConvert<bidx>(&src.x, dst); bidx 689 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx> struct RGB2YCrCb<uchar, 4, 4, bidx> : unary_function<uint, uint> bidx 693 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp return RGB2YCrCbConvert<bidx>(src); bidx 701 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp #define OPENCV_CUDA_IMPLEMENT_RGB2YCrCb_TRAITS(name, scn, dcn, bidx) \ bidx 704 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp typedef ::cv::cuda::device::color_detail::RGB2YCrCb<T, scn, dcn, bidx> functor_type; \ bidx 716 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx, typename T, typename D> static __device__ void YCrCb2RGBConvert(const T& src, D* dst) bidx 722 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst[bidx] = saturate_cast<D>(b); bidx 724 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst[bidx^2] = saturate_cast<D>(r); bidx 727 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx> static __device__ uint YCrCb2RGBConvert(uint src) bidx 739 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst |= saturate_cast<uchar>(b) << (bidx * 8); bidx 741 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst |= saturate_cast<uchar>(r) << ((bidx ^ 2) * 8); bidx 746 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx, typename T> __device__ __forceinline__ void YCrCb2RGBConvert(const T& src, float* dst) bidx 748 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst[bidx] = src.x + (src.z - ColorChannel<float>::half()) * c_YCrCb2RGBCoeffs_f[3]; bidx 750 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst[bidx^2] = src.x + (src.y - ColorChannel<float>::half()) * c_YCrCb2RGBCoeffs_f[0]; bidx 753 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <typename T, int scn, int dcn, int bidx> struct YCrCb2RGB bidx 760 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp YCrCb2RGBConvert<bidx>(src, &dst.x); bidx 769 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx> struct YCrCb2RGB<uchar, 4, 4, bidx> : unary_function<uint, uint> bidx 773 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp return YCrCb2RGBConvert<bidx>(src); bidx 780 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp #define OPENCV_CUDA_IMPLEMENT_YCrCb2RGB_TRAITS(name, scn, dcn, bidx) \ bidx 783 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp typedef ::cv::cuda::device::color_detail::YCrCb2RGB<T, scn, dcn, bidx> functor_type; \ bidx 797 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx, typename T, typename D> static __device__ __forceinline__ void RGB2XYZConvert(const T* src, D& dst) bidx 799 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst.z = saturate_cast<T>(CV_DESCALE(src[bidx^2] * c_RGB2XYZ_D65i[6] + src[1] * c_RGB2XYZ_D65i[7] + src[bidx] * c_RGB2XYZ_D65i[8], xyz_shift)); bidx 800 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst.x = saturate_cast<T>(CV_DESCALE(src[bidx^2] * c_RGB2XYZ_D65i[0] + src[1] * c_RGB2XYZ_D65i[1] + src[bidx] * c_RGB2XYZ_D65i[2], xyz_shift)); bidx 801 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst.y = saturate_cast<T>(CV_DESCALE(src[bidx^2] * c_RGB2XYZ_D65i[3] + src[1] * c_RGB2XYZ_D65i[4] + src[bidx] * c_RGB2XYZ_D65i[5], xyz_shift)); bidx 804 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx> static __device__ __forceinline__ uint RGB2XYZConvert(uint src) bidx 806 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp const uint b = 0xffu & (src >> (bidx * 8)); bidx 808 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp const uint r = 0xffu & (src >> ((bidx ^ 2) * 8)); bidx 823 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx, typename D> static __device__ __forceinline__ void RGB2XYZConvert(const float* src, D& dst) bidx 825 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst.x = src[bidx^2] * c_RGB2XYZ_D65f[0] + src[1] * c_RGB2XYZ_D65f[1] + src[bidx] * c_RGB2XYZ_D65f[2]; bidx 826 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst.y = src[bidx^2] * c_RGB2XYZ_D65f[3] + src[1] * c_RGB2XYZ_D65f[4] + src[bidx] * c_RGB2XYZ_D65f[5]; bidx 827 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst.z = src[bidx^2] * c_RGB2XYZ_D65f[6] + src[1] * c_RGB2XYZ_D65f[7] + src[bidx] * c_RGB2XYZ_D65f[8]; bidx 830 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <typename T, int scn, int dcn, int bidx> struct RGB2XYZ bidx 837 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp RGB2XYZConvert<bidx>(&src.x, dst); bidx 845 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx> struct RGB2XYZ<uchar, 4, 4, bidx> : unary_function<uint, uint> bidx 849 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp return RGB2XYZConvert<bidx>(src); bidx 856 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp #define OPENCV_CUDA_IMPLEMENT_RGB2XYZ_TRAITS(name, scn, dcn, bidx) \ bidx 859 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp typedef ::cv::cuda::device::color_detail::RGB2XYZ<T, scn, dcn, bidx> functor_type; \ bidx 871 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx, typename T, typename D> static __device__ __forceinline__ void XYZ2RGBConvert(const T& src, D* dst) bidx 873 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst[bidx^2] = saturate_cast<D>(CV_DESCALE(src.x * c_XYZ2sRGB_D65i[0] + src.y * c_XYZ2sRGB_D65i[1] + src.z * c_XYZ2sRGB_D65i[2], xyz_shift)); bidx 875 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst[bidx] = saturate_cast<D>(CV_DESCALE(src.x * c_XYZ2sRGB_D65i[6] + src.y * c_XYZ2sRGB_D65i[7] + src.z * c_XYZ2sRGB_D65i[8], xyz_shift)); bidx 878 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx> static __device__ __forceinline__ uint XYZ2RGBConvert(uint src) bidx 890 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst |= b << (bidx * 8); bidx 892 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst |= r << ((bidx ^ 2) * 8); bidx 897 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx, typename T> static __device__ __forceinline__ void XYZ2RGBConvert(const T& src, float* dst) bidx 899 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst[bidx^2] = src.x * c_XYZ2sRGB_D65f[0] + src.y * c_XYZ2sRGB_D65f[1] + src.z * c_XYZ2sRGB_D65f[2]; bidx 901 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst[bidx] = src.x * c_XYZ2sRGB_D65f[6] + src.y * c_XYZ2sRGB_D65f[7] + src.z * c_XYZ2sRGB_D65f[8]; bidx 904 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <typename T, int scn, int dcn, int bidx> struct XYZ2RGB bidx 911 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp XYZ2RGBConvert<bidx>(src, &dst.x); bidx 920 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx> struct XYZ2RGB<uchar, 4, 4, bidx> : unary_function<uint, uint> bidx 924 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp return XYZ2RGBConvert<bidx>(src); bidx 931 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp #define OPENCV_CUDA_IMPLEMENT_XYZ2RGB_TRAITS(name, scn, dcn, bidx) \ bidx 934 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp typedef ::cv::cuda::device::color_detail::XYZ2RGB<T, scn, dcn, bidx> functor_type; \ bidx 949 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx, int hr, typename D> static __device__ void RGB2HSVConvert(const uchar* src, D& dst) bidx 954 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp int b = src[bidx], g = src[1], r = src[bidx^2]; bidx 978 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx, int hr> static __device__ uint RGB2HSVConvert(uint src) bidx 983 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp const int b = 0xff & (src >> (bidx * 8)); bidx 985 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp const int r = 0xff & (src >> ((bidx ^ 2) * 8)); bidx 1014 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx, int hr, typename D> static __device__ void RGB2HSVConvert(const float* src, D& dst) bidx 1018 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp float b = src[bidx], g = src[1], r = src[bidx^2]; bidx 1043 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <typename T, int scn, int dcn, int bidx, int hr> struct RGB2HSV bidx 1050 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp RGB2HSVConvert<bidx, hr>(&src.x, dst); bidx 1058 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx, int hr> struct RGB2HSV<uchar, 4, 4, bidx, hr> : unary_function<uint, uint> bidx 1062 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp return RGB2HSVConvert<bidx, hr>(src); bidx 1069 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp #define OPENCV_CUDA_IMPLEMENT_RGB2HSV_TRAITS(name, scn, dcn, bidx) \ bidx 1107 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx, int hr, typename T> static __device__ void HSV2RGBConvert(const T& src, float* dst) bidx 1143 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst[bidx] = b; bidx 1145 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst[bidx^2] = r; bidx 1148 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx, int HR, typename T> static __device__ void HSV2RGBConvert(const T& src, uchar* dst) bidx 1156 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp HSV2RGBConvert<bidx, HR>(buf, &buf.x); bidx 1163 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx, int hr> static __device__ uint HSV2RGBConvert(uint src) bidx 1171 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp HSV2RGBConvert<bidx, hr>(buf, &buf.x); bidx 1182 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <typename T, int scn, int dcn, int bidx, int hr> struct HSV2RGB bidx 1189 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp HSV2RGBConvert<bidx, hr>(src, &dst.x); bidx 1198 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx, int hr> struct HSV2RGB<uchar, 4, 4, bidx, hr> : unary_function<uint, uint> bidx 1202 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp return HSV2RGBConvert<bidx, hr>(src); bidx 1209 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp #define OPENCV_CUDA_IMPLEMENT_HSV2RGB_TRAITS(name, scn, dcn, bidx) \ bidx 1247 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx, int hr, typename D> static __device__ void RGB2HLSConvert(const float* src, D& dst) bidx 1251 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp float b = src[bidx], g = src[1], r = src[bidx^2]; bidx 1282 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx, int hr, typename D> static __device__ void RGB2HLSConvert(const uchar* src, D& dst) bidx 1290 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp RGB2HLSConvert<bidx, hr>(&buf.x, buf); bidx 1297 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx, int hr> static __device__ uint RGB2HLSConvert(uint src) bidx 1305 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp RGB2HLSConvert<bidx, hr>(&buf.x, buf); bidx 1316 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <typename T, int scn, int dcn, int bidx, int hr> struct RGB2HLS bidx 1323 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp RGB2HLSConvert<bidx, hr>(&src.x, dst); bidx 1331 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx, int hr> struct RGB2HLS<uchar, 4, 4, bidx, hr> : unary_function<uint, uint> bidx 1335 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp return RGB2HLSConvert<bidx, hr>(src); bidx 1342 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp #define OPENCV_CUDA_IMPLEMENT_RGB2HLS_TRAITS(name, scn, dcn, bidx) \ bidx 1380 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx, int hr, typename T> static __device__ void HLS2RGBConvert(const T& src, float* dst) bidx 1416 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst[bidx] = b; bidx 1418 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp dst[bidx^2] = r; bidx 1421 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx, int hr, typename T> static __device__ void HLS2RGBConvert(const T& src, uchar* dst) bidx 1429 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp HLS2RGBConvert<bidx, hr>(buf, &buf.x); bidx 1436 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx, int hr> static __device__ uint HLS2RGBConvert(uint src) bidx 1444 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp HLS2RGBConvert<bidx, hr>(buf, &buf.x); bidx 1455 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <typename T, int scn, int dcn, int bidx, int hr> struct HLS2RGB bidx 1462 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp HLS2RGBConvert<bidx, hr>(src, &dst.x); bidx 1471 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp template <int bidx, int hr> struct HLS2RGB<uchar, 4, 4, bidx, hr> : unary_function<uint, uint> bidx 1475 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp return HLS2RGBConvert<bidx, hr>(src); bidx 1482 modules/core/include/opencv2/core/cuda/detail/color_detail.hpp #define OPENCV_CUDA_IMPLEMENT_HLS2RGB_TRAITS(name, scn, dcn, bidx) \ bidx 59 modules/cudev/include/opencv2/cudev/functional/color_cvt.hpp #define CV_CUDEV_RGB2RGB_INST(name, scn, dcn, bidx) \ bidx 60 modules/cudev/include/opencv2/cudev/functional/color_cvt.hpp template <typename SrcDepth> struct name ## _func : cv::cudev::color_cvt_detail::RGB2RGB<SrcDepth, scn, dcn, bidx> \ bidx 75 modules/cudev/include/opencv2/cudev/functional/color_cvt.hpp #define CV_CUDEV_RGB2GRAY_INST(name, scn, bidx) \ bidx 76 modules/cudev/include/opencv2/cudev/functional/color_cvt.hpp template <typename SrcDepth> struct name ## _func : cv::cudev::color_cvt_detail::RGB2Gray<SrcDepth, scn, bidx> \ bidx 101 modules/cudev/include/opencv2/cudev/functional/color_cvt.hpp #define CV_CUDEV_RGB2YUV_INST(name, scn, dcn, bidx) \ bidx 102 modules/cudev/include/opencv2/cudev/functional/color_cvt.hpp template <typename SrcDepth> struct name ## _func : cv::cudev::color_cvt_detail::RGB2YUV<SrcDepth, scn, dcn, bidx> \ bidx 119 modules/cudev/include/opencv2/cudev/functional/color_cvt.hpp #define CV_CUDEV_YUV2RGB_INST(name, scn, dcn, bidx) \ bidx 120 modules/cudev/include/opencv2/cudev/functional/color_cvt.hpp template <typename SrcDepth> struct name ## _func : cv::cudev::color_cvt_detail::YUV2RGB<SrcDepth, scn, dcn, bidx> \ bidx 137 modules/cudev/include/opencv2/cudev/functional/color_cvt.hpp #define CV_CUDEV_RGB2YCrCb_INST(name, scn, dcn, bidx) \ bidx 138 modules/cudev/include/opencv2/cudev/functional/color_cvt.hpp template <typename SrcDepth> struct name ## _func : cv::cudev::color_cvt_detail::RGB2YCrCb<SrcDepth, scn, dcn, bidx> \ bidx 155 modules/cudev/include/opencv2/cudev/functional/color_cvt.hpp #define CV_CUDEV_YCrCb2RGB_INST(name, scn, dcn, bidx) \ bidx 156 modules/cudev/include/opencv2/cudev/functional/color_cvt.hpp template <typename SrcDepth> struct name ## _func : cv::cudev::color_cvt_detail::YCrCb2RGB<SrcDepth, scn, dcn, bidx> \ bidx 173 modules/cudev/include/opencv2/cudev/functional/color_cvt.hpp #define CV_CUDEV_RGB2XYZ_INST(name, scn, dcn, bidx) \ bidx 174 modules/cudev/include/opencv2/cudev/functional/color_cvt.hpp template <typename SrcDepth> struct name ## _func : cv::cudev::color_cvt_detail::RGB2XYZ<SrcDepth, scn, dcn, bidx> \ bidx 191 modules/cudev/include/opencv2/cudev/functional/color_cvt.hpp #define CV_CUDEV_XYZ2RGB_INST(name, scn, dcn, bidx) \ bidx 192 modules/cudev/include/opencv2/cudev/functional/color_cvt.hpp template <typename SrcDepth> struct name ## _func : cv::cudev::color_cvt_detail::XYZ2RGB<SrcDepth, scn, dcn, bidx> \ bidx 209 modules/cudev/include/opencv2/cudev/functional/color_cvt.hpp #define CV_CUDEV_RGB2HSV_INST(name, scn, dcn, bidx) \ bidx 210 modules/cudev/include/opencv2/cudev/functional/color_cvt.hpp template <typename SrcDepth> struct name ## _func : cv::cudev::color_cvt_detail::RGB2HSV<SrcDepth, scn, dcn, bidx, 180> \ bidx 213 modules/cudev/include/opencv2/cudev/functional/color_cvt.hpp template <typename SrcDepth> struct name ## _FULL ## _func : cv::cudev::color_cvt_detail::RGB2HSV<SrcDepth, scn, dcn, bidx, 256> \ bidx 216 modules/cudev/include/opencv2/cudev/functional/color_cvt.hpp template <> struct name ## _func<float> : cv::cudev::color_cvt_detail::RGB2HSV<float, scn, dcn, bidx, 360> \ bidx 219 modules/cudev/include/opencv2/cudev/functional/color_cvt.hpp template <> struct name ## _FULL ## _func<float> : cv::cudev::color_cvt_detail::RGB2HSV<float, scn, dcn, bidx, 360> \ bidx 236 modules/cudev/include/opencv2/cudev/functional/color_cvt.hpp #define CV_CUDEV_HSV2RGB_INST(name, scn, dcn, bidx) \ bidx 237 modules/cudev/include/opencv2/cudev/functional/color_cvt.hpp template <typename SrcDepth> struct name ## _func : cv::cudev::color_cvt_detail::HSV2RGB<SrcDepth, scn, dcn, bidx, 180> \ bidx 240 modules/cudev/include/opencv2/cudev/functional/color_cvt.hpp template <typename SrcDepth> struct name ## _FULL ## _func : cv::cudev::color_cvt_detail::HSV2RGB<SrcDepth, scn, dcn, bidx, 255> \ bidx 243 modules/cudev/include/opencv2/cudev/functional/color_cvt.hpp template <> struct name ## _func<float> : cv::cudev::color_cvt_detail::HSV2RGB<float, scn, dcn, bidx, 360> \ bidx 246 modules/cudev/include/opencv2/cudev/functional/color_cvt.hpp template <> struct name ## _FULL ## _func<float> : cv::cudev::color_cvt_detail::HSV2RGB<float, scn, dcn, bidx, 360> \ bidx 263 modules/cudev/include/opencv2/cudev/functional/color_cvt.hpp #define CV_CUDEV_RGB2HLS_INST(name, scn, dcn, bidx) \ bidx 264 modules/cudev/include/opencv2/cudev/functional/color_cvt.hpp template <typename SrcDepth> struct name ## _func : cv::cudev::color_cvt_detail::RGB2HLS<SrcDepth, scn, dcn, bidx, 180> \ bidx 267 modules/cudev/include/opencv2/cudev/functional/color_cvt.hpp template <typename SrcDepth> struct name ## _FULL ## _func : cv::cudev::color_cvt_detail::RGB2HLS<SrcDepth, scn, dcn, bidx, 256> \ bidx 270 modules/cudev/include/opencv2/cudev/functional/color_cvt.hpp template <> struct name ## _func<float> : cv::cudev::color_cvt_detail::RGB2HLS<float, scn, dcn, bidx, 360> \ bidx 273 modules/cudev/include/opencv2/cudev/functional/color_cvt.hpp template <> struct name ## _FULL ## _func<float> : cv::cudev::color_cvt_detail::RGB2HLS<float, scn, dcn, bidx, 360> \ bidx 290 modules/cudev/include/opencv2/cudev/functional/color_cvt.hpp #define CV_CUDEV_HLS2RGB_INST(name, scn, dcn, bidx) \ bidx 291 modules/cudev/include/opencv2/cudev/functional/color_cvt.hpp template <typename SrcDepth> struct name ## _func : cv::cudev::color_cvt_detail::HLS2RGB<SrcDepth, scn, dcn, bidx, 180> \ bidx 294 modules/cudev/include/opencv2/cudev/functional/color_cvt.hpp template <typename SrcDepth> struct name ## _FULL ## _func : cv::cudev::color_cvt_detail::HLS2RGB<SrcDepth, scn, dcn, bidx, 255> \ bidx 297 modules/cudev/include/opencv2/cudev/functional/color_cvt.hpp template <> struct name ## _func<float> : cv::cudev::color_cvt_detail::HLS2RGB<float, scn, dcn, bidx, 360> \ bidx 300 modules/cudev/include/opencv2/cudev/functional/color_cvt.hpp template <> struct name ## _FULL ## _func<float> : cv::cudev::color_cvt_detail::HLS2RGB<float, scn, dcn, bidx, 360> \ bidx 425 modules/cudev/include/opencv2/cudev/functional/color_cvt.hpp #define CV_CUDEV_RGB2RGB5x5_INST(name, scn, bidx, green_bits) \ bidx 426 modules/cudev/include/opencv2/cudev/functional/color_cvt.hpp typedef cv::cudev::color_cvt_detail::RGB2RGB5x5<scn, bidx, green_bits> name ## _func; bidx 441 modules/cudev/include/opencv2/cudev/functional/color_cvt.hpp #define CV_CUDEV_RGB5x52RGB_INST(name, dcn, bidx, green_bits) \ bidx 442 modules/cudev/include/opencv2/cudev/functional/color_cvt.hpp typedef cv::cudev::color_cvt_detail::RGB5x52RGB<dcn, bidx, green_bits> name ## _func; bidx 106 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp template <typename T, int scn, int dcn, int bidx> struct RGB2RGB bidx 113 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp dst.x = bidx == 0 ? src.x : src.z; bidx 115 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp dst.z = bidx == 0 ? src.z : src.x; bidx 124 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp template <int scn, int bidx, int green_bits> struct RGB2RGB5x5; bidx 126 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp template <int scn, int bidx> struct RGB2RGB5x5<scn, bidx, 6> bidx 131 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp const int b = bidx == 0 ? src.x : src.z; bidx 133 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp const int r = bidx == 0 ? src.z : src.x; bidx 138 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp template <int bidx> struct RGB2RGB5x5<3, bidx, 5> bidx 143 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp const int b = bidx == 0 ? src.x : src.z; bidx 145 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp const int r = bidx == 0 ? src.z : src.x; bidx 150 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp template <int bidx> struct RGB2RGB5x5<4, bidx, 5> bidx 155 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp const int b = bidx == 0 ? src.x : src.z; bidx 157 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp const int r = bidx == 0 ? src.z : src.x; bidx 165 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp template <int dcn, int bidx, int green_bits> struct RGB5x52RGB; bidx 167 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp template <int bidx> struct RGB5x52RGB<3, bidx, 5> bidx 177 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp dst.x = bidx == 0 ? b : r; bidx 179 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp dst.z = bidx == 0 ? r : b; bidx 185 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp template <int bidx> struct RGB5x52RGB<4, bidx, 5> bidx 195 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp dst.x = bidx == 0 ? b : r; bidx 197 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp dst.z = bidx == 0 ? r : b; bidx 204 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp template <int bidx> struct RGB5x52RGB<3, bidx, 6> bidx 214 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp dst.x = bidx == 0 ? b : r; bidx 216 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp dst.z = bidx == 0 ? r : b; bidx 222 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp template <int bidx> struct RGB5x52RGB<4, bidx, 6> bidx 232 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp dst.x = bidx == 0 ? b : r; bidx 234 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp dst.z = bidx == 0 ? r : b; bidx 305 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp template <typename T, int scn, int bidx> struct RGB2Gray bidx 310 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp const int b = bidx == 0 ? src.x : src.z; bidx 312 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp const int r = bidx == 0 ? src.z : src.x; bidx 317 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp template <int scn, int bidx> struct RGB2Gray<float, scn, bidx> bidx 322 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp const float b = bidx == 0 ? src.x : src.z; bidx 324 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp const float r = bidx == 0 ? src.z : src.x; bidx 334 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp template <typename T, int scn, int dcn, int bidx> struct RGB2YUV bidx 339 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp const int b = bidx == 0 ? src.x : src.z; bidx 341 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp const int r = bidx == 0 ? src.z : src.x; bidx 359 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp template <int scn, int dcn, int bidx> struct RGB2YUV<float, scn, dcn, bidx> bidx 364 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp const float b = bidx == 0 ? src.x : src.z; bidx 366 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp const float r = bidx == 0 ? src.z : src.x; bidx 383 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp template <typename T, int scn, int dcn, int bidx> struct YUV2RGB bidx 394 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp dst.x = saturate_cast<T>(bidx == 0 ? b : r); bidx 396 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp dst.z = saturate_cast<T>(bidx == 0 ? r : b); bidx 403 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp template <int scn, int dcn, int bidx> struct YUV2RGB<float, scn, dcn, bidx> bidx 414 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp dst.x = bidx == 0 ? b : r; bidx 416 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp dst.z = bidx == 0 ? r : b; bidx 428 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp template <typename T, int scn, int dcn, int bidx> struct RGB2YCrCb bidx 433 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp const int b = bidx == 0 ? src.x : src.z; bidx 435 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp const int r = bidx == 0 ? src.z : src.x; bidx 453 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp template <int scn, int dcn, int bidx> struct RGB2YCrCb<float, scn, dcn, bidx> bidx 458 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp const float b = bidx == 0 ? src.x : src.z; bidx 460 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp const float r = bidx == 0 ? src.z : src.x; bidx 477 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp template <typename T, int scn, int dcn, int bidx> struct YCrCb2RGB bidx 488 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp dst.x = saturate_cast<T>(bidx == 0 ? b : r); bidx 490 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp dst.z = saturate_cast<T>(bidx == 0 ? r : b); bidx 497 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp template <int scn, int dcn, int bidx> struct YCrCb2RGB<float, scn, dcn, bidx> bidx 508 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp dst.x = bidx == 0 ? b : r; bidx 510 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp dst.z = bidx == 0 ? r : b; bidx 522 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp template <typename T, int scn, int dcn, int bidx> struct RGB2XYZ bidx 527 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp const int b = bidx == 0 ? src.x : src.z; bidx 529 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp const int r = bidx == 0 ? src.z : src.x; bidx 541 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp template <int scn, int dcn, int bidx> struct RGB2XYZ<float, scn, dcn, bidx> bidx 546 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp const float b = bidx == 0 ? src.x : src.z; bidx 548 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp const float r = bidx == 0 ? src.z : src.x; bidx 565 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp template <typename T, int scn, int dcn, int bidx> struct XYZ2RGB bidx 576 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp dst.x = saturate_cast<T>(bidx == 0 ? b : r); bidx 578 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp dst.z = saturate_cast<T>(bidx == 0 ? r : b); bidx 585 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp template <int scn, int dcn, int bidx> struct XYZ2RGB<float, scn, dcn, bidx> bidx 596 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp dst.x = bidx == 0 ? b : r; bidx 598 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp dst.z = bidx == 0 ? r : b; bidx 611 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp template <typename T, int scn, int dcn, int bidx, int hr> struct RGB2HSV; bidx 613 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp template <int scn, int dcn, int bidx, int hr> struct RGB2HSV<uchar, scn, dcn, bidx, hr> bidx 621 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp const int b = bidx == 0 ? src.x : src.z; bidx 623 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp const int r = bidx == 0 ? src.z : src.x; bidx 653 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp template <int scn, int dcn, int bidx, int hr> struct RGB2HSV<float, scn, dcn, bidx, hr> bidx 660 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp const float b = bidx == 0 ? src.x : src.z; bidx 662 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp const float r = bidx == 0 ? src.z : src.x; bidx 696 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp template <typename T, int scn, int dcn, int bidx, int hr> struct HSV2RGB; bidx 698 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp template <int scn, int dcn, int bidx, int hr> struct HSV2RGB<float, scn, dcn, bidx, hr> bidx 739 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp dst.x = bidx == 0 ? b : r; bidx 741 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp dst.z = bidx == 0 ? r : b; bidx 748 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp template <int scn, int dcn, int bidx, int hr> struct HSV2RGB<uchar, scn, dcn, bidx, hr> bidx 759 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp HSV2RGB<float, 3, 3, bidx, hr> cvtf; bidx 775 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp template <typename T, int scn, int dcn, int bidx, int hr> struct RGB2HLS; bidx 777 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp template <int scn, int dcn, int bidx, int hr> struct RGB2HLS<float, scn, dcn, bidx, hr> bidx 784 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp const float b = bidx == 0 ? src.x : src.z; bidx 786 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp const float r = bidx == 0 ? src.z : src.x; bidx 822 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp template <int scn, int dcn, int bidx, int hr> struct RGB2HLS<uchar, scn, dcn, bidx, hr> bidx 833 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp RGB2HLS<float, 3, 3, bidx, hr> cvtf; bidx 850 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp template <typename T, int scn, int dcn, int bidx, int hr> struct HLS2RGB; bidx 852 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp template <int scn, int dcn, int bidx, int hr> struct HLS2RGB<float, scn, dcn, bidx, hr> bidx 893 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp dst.x = bidx == 0 ? b : r; bidx 895 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp dst.z = bidx == 0 ? r : b; bidx 902 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp template <int scn, int dcn, int bidx, int hr> struct HLS2RGB<uchar, scn, dcn, bidx, hr> bidx 913 modules/cudev/include/opencv2/cudev/functional/detail/color_cvt.hpp HLS2RGB<float, 3, 3, bidx, hr> cvtf; bidx 554 modules/imgproc/src/color.cpp int scn = srccn, dcn = dstcn, bidx = blueIdx; bidx 560 modules/imgproc/src/color.cpp _Tp t0 = src[bidx], t1 = src[1], t2 = src[bidx ^ 2]; bidx 571 modules/imgproc/src/color.cpp dst[bidx] = t0; dst[1] = t1; dst[bidx^2] = t2; dst[3] = alpha; bidx 603 modules/imgproc/src/color.cpp int scn = srccn, dcn = dstcn, bidx = blueIdx, i = 0; bidx 612 modules/imgproc/src/color.cpp v_dst.val[0] = v_src.val[bidx]; bidx 614 modules/imgproc/src/color.cpp v_dst.val[2] = v_src.val[bidx ^ 2]; bidx 620 modules/imgproc/src/color.cpp v_dst.val[0] = v_src.val[bidx]; bidx 622 modules/imgproc/src/color.cpp v_dst.val[2] = v_src.val[bidx ^ 2]; bidx 627 modules/imgproc/src/color.cpp uchar t0 = src[bidx], t1 = src[1], t2 = src[bidx ^ 2]; bidx 637 modules/imgproc/src/color.cpp v_dst.val[0] = v_src.val[bidx]; bidx 639 modules/imgproc/src/color.cpp v_dst.val[2] = v_src.val[bidx ^ 2]; bidx 646 modules/imgproc/src/color.cpp v_dst.val[0] = v_src.val[bidx]; bidx 648 modules/imgproc/src/color.cpp v_dst.val[2] = v_src.val[bidx ^ 2]; bidx 653 modules/imgproc/src/color.cpp uchar t0 = src[bidx], t1 = src[1], t2 = src[bidx ^ 2]; bidx 665 modules/imgproc/src/color.cpp v_dst.val[bidx] = v_src.val[0]; bidx 667 modules/imgproc/src/color.cpp v_dst.val[bidx ^ 2] = v_src.val[2]; bidx 675 modules/imgproc/src/color.cpp v_dst.val[bidx] = v_src.val[0]; bidx 677 modules/imgproc/src/color.cpp v_dst.val[bidx ^ 2] = v_src.val[2]; bidx 685 modules/imgproc/src/color.cpp dst[bidx] = t0; dst[1] = t1; dst[bidx^2] = t2; dst[3] = alpha; bidx 745 modules/imgproc/src/color.cpp int dcn = dstcn, bidx = blueIdx, i = 0; bidx 760 modules/imgproc/src/color.cpp v_dst.val[bidx] = v_b; bidx 762 modules/imgproc/src/color.cpp v_dst.val[bidx^2] = v_r; bidx 768 modules/imgproc/src/color.cpp v_dst.val[bidx] = v_b; bidx 770 modules/imgproc/src/color.cpp v_dst.val[bidx^2] = v_r; bidx 779 modules/imgproc/src/color.cpp dst[bidx] = (uchar)(t << 3); bidx 781 modules/imgproc/src/color.cpp dst[bidx ^ 2] = (uchar)((t >> 8) & ~7); bidx 800 modules/imgproc/src/color.cpp v_dst.val[bidx] = v_b; bidx 802 modules/imgproc/src/color.cpp v_dst.val[bidx^2] = v_r; bidx 808 modules/imgproc/src/color.cpp v_dst.val[bidx] = v_b; bidx 810 modules/imgproc/src/color.cpp v_dst.val[bidx^2] = v_r; bidx 820 modules/imgproc/src/color.cpp dst[bidx] = (uchar)(t << 3); bidx 822 modules/imgproc/src/color.cpp dst[bidx ^ 2] = (uchar)((t >> 7) & ~7); bidx 855 modules/imgproc/src/color.cpp int scn = srccn, bidx = blueIdx, i = 0; bidx 864 modules/imgproc/src/color.cpp uint16x8_t v_dst = vmovl_u8(vshr_n_u8(v_src.val[bidx], 3)); bidx 866 modules/imgproc/src/color.cpp v_dst = vorrq_u16(v_dst, vshlq_n_u16(vmovl_u8(vand_u8(v_src.val[bidx^2], v_n7)), 8)); bidx 871 modules/imgproc/src/color.cpp ((ushort*)dst)[i] = (ushort)((src[bidx] >> 3)|((src[1]&~3) << 3)|((src[bidx^2]&~7) << 8)); bidx 879 modules/imgproc/src/color.cpp uint16x8_t v_dst = vmovl_u8(vshr_n_u8(v_src.val[bidx], 3)); bidx 881 modules/imgproc/src/color.cpp v_dst = vorrq_u16(v_dst, vshlq_n_u16(vmovl_u8(vand_u8(v_src.val[bidx^2], v_n7)), 8)); bidx 886 modules/imgproc/src/color.cpp ((ushort*)dst)[i] = (ushort)((src[bidx] >> 3)|((src[1]&~3) << 3)|((src[bidx^2]&~7) << 8)); bidx 895 modules/imgproc/src/color.cpp uint16x8_t v_dst = vmovl_u8(vshr_n_u8(v_src.val[bidx], 3)); bidx 897 modules/imgproc/src/color.cpp v_dst = vorrq_u16(v_dst, vshlq_n_u16(vmovl_u8(vand_u8(v_src.val[bidx^2], v_n7)), 7)); bidx 902 modules/imgproc/src/color.cpp ((ushort*)dst)[i] = (ushort)((src[bidx] >> 3)|((src[1]&~7) << 2)|((src[bidx^2]&~7) << 7)); bidx 910 modules/imgproc/src/color.cpp uint16x8_t v_dst = vmovl_u8(vshr_n_u8(v_src.val[bidx], 3)); bidx 912 modules/imgproc/src/color.cpp v_dst = vorrq_u16(v_dst, vorrq_u16(vshlq_n_u16(vmovl_u8(vand_u8(v_src.val[bidx^2], v_n7)), 7), bidx 918 modules/imgproc/src/color.cpp ((ushort*)dst)[i] = (ushort)((src[bidx] >> 3)|((src[1]&~7) << 2)| bidx 919 modules/imgproc/src/color.cpp ((src[bidx^2]&~7) << 7)|(src[3] ? 0x8000 : 0)); bidx 1718 modules/imgproc/src/color.cpp int scn = srccn, bidx = blueIdx; bidx 1725 modules/imgproc/src/color.cpp _Tp Cr = saturate_cast<_Tp>((src[bidx^2] - Y)*C3 + delta); bidx 1726 modules/imgproc/src/color.cpp _Tp Cb = saturate_cast<_Tp>((src[bidx] - Y)*C4 + delta); bidx 1759 modules/imgproc/src/color.cpp int scn = srccn, bidx = blueIdx, i = 0; bidx 1769 modules/imgproc/src/color.cpp v_dst.val[1] = vmlaq_f32(v_delta, vsubq_f32(v_src.val[bidx^2], v_dst.val[0]), v_c3); bidx 1770 modules/imgproc/src/color.cpp v_dst.val[2] = vmlaq_f32(v_delta, vsubq_f32(v_src.val[bidx], v_dst.val[0]), v_c4); bidx 1780 modules/imgproc/src/color.cpp v_dst.val[1] = vmlaq_f32(v_delta, vsubq_f32(v_src.val[bidx^2], v_dst.val[0]), v_c3); bidx 1781 modules/imgproc/src/color.cpp v_dst.val[2] = vmlaq_f32(v_delta, vsubq_f32(v_src.val[bidx], v_dst.val[0]), v_c4); bidx 1789 modules/imgproc/src/color.cpp float Cr = (src[bidx^2] - Y)*C3 + delta; bidx 1790 modules/imgproc/src/color.cpp float Cb = (src[bidx] - Y)*C4 + delta; bidx 1837 modules/imgproc/src/color.cpp int scn = srccn, bidx = blueIdx, i = 0; bidx 1885 modules/imgproc/src/color.cpp float Cr = (src[bidx^2] - Y)*C3 + delta; bidx 1886 modules/imgproc/src/color.cpp float Cb = (src[bidx] - Y)*C4 + delta; bidx 1911 modules/imgproc/src/color.cpp int scn = srccn, bidx = blueIdx; bidx 1918 modules/imgproc/src/color.cpp int Cr = CV_DESCALE((src[bidx^2] - Y)*C3 + delta, yuv_shift); bidx 1919 modules/imgproc/src/color.cpp int Cb = CV_DESCALE((src[bidx] - Y)*C4 + delta, yuv_shift); bidx 1955 modules/imgproc/src/color.cpp int scn = srccn, bidx = blueIdx, i = 0; bidx 1987 modules/imgproc/src/color.cpp int32x4_t v_Cr0 = vmlaq_s32(v_delta, vsubq_s32(vmovl_s16(v_src0.val[bidx^2]), v_Y0), v_c3); bidx 1989 modules/imgproc/src/color.cpp int32x4_t v_Cb0 = vmlaq_s32(v_delta, vsubq_s32(vmovl_s16(v_src0.val[bidx]), v_Y0), v_c4); bidx 1998 modules/imgproc/src/color.cpp int32x4_t v_Cr1 = vmlaq_s32(v_delta, vsubq_s32(vmovl_s16(v_src0.val[bidx^2]), v_Y1), v_c3); bidx 2000 modules/imgproc/src/color.cpp int32x4_t v_Cb1 = vmlaq_s32(v_delta, vsubq_s32(vmovl_s16(v_src0.val[bidx]), v_Y1), v_c4); bidx 2013 modules/imgproc/src/color.cpp int Cr = CV_DESCALE((src[bidx^2] - Y)*C3 + delta, yuv_shift); bidx 2014 modules/imgproc/src/color.cpp int Cb = CV_DESCALE((src[bidx] - Y)*C4 + delta, yuv_shift); bidx 2049 modules/imgproc/src/color.cpp int scn = srccn, bidx = blueIdx, i = 0; bidx 2075 modules/imgproc/src/color.cpp int32x4_t v_Cr0 = vmlaq_s32(v_delta, vsubq_s32(v_src0.val[bidx^2], v_Y0), v_c3); bidx 2077 modules/imgproc/src/color.cpp int32x4_t v_Cb0 = vmlaq_s32(v_delta, vsubq_s32(v_src0.val[bidx], v_Y0), v_c4); bidx 2086 modules/imgproc/src/color.cpp int32x4_t v_Cr1 = vmlaq_s32(v_delta, vsubq_s32(v_src0.val[bidx^2], v_Y1), v_c3); bidx 2088 modules/imgproc/src/color.cpp int32x4_t v_Cb1 = vmlaq_s32(v_delta, vsubq_s32(v_src0.val[bidx], v_Y1), v_c4); bidx 2120 modules/imgproc/src/color.cpp int32x4_t v_Cr = vmlaq_s32(v_delta, vsubq_s32(v_src0.val[bidx^2], v_Y), v_c3); bidx 2122 modules/imgproc/src/color.cpp int32x4_t v_Cb = vmlaq_s32(v_delta, vsubq_s32(v_src0.val[bidx], v_Y), v_c4); bidx 2135 modules/imgproc/src/color.cpp int Cr = CV_DESCALE((src[bidx^2] - Y)*C3 + delta, yuv_shift); bidx 2136 modules/imgproc/src/color.cpp int Cb = CV_DESCALE((src[bidx] - Y)*C4 + delta, yuv_shift); bidx 2213 modules/imgproc/src/color.cpp int scn = srccn, bidx = blueIdx, i = 0; bidx 2283 modules/imgproc/src/color.cpp int Cr = CV_DESCALE((src[bidx^2] - Y)*C3 + delta, yuv_shift); bidx 2284 modules/imgproc/src/color.cpp int Cb = CV_DESCALE((src[bidx] - Y)*C4 + delta, yuv_shift); bidx 2363 modules/imgproc/src/color.cpp int scn = srccn, bidx = blueIdx, i = 0; bidx 2412 modules/imgproc/src/color.cpp int Cr = CV_DESCALE((src[bidx^2] - Y)*C3 + delta, yuv_shift); bidx 2413 modules/imgproc/src/color.cpp int Cb = CV_DESCALE((src[bidx] - Y)*C4 + delta, yuv_shift); bidx 2441 modules/imgproc/src/color.cpp int dcn = dstcn, bidx = blueIdx; bidx 2455 modules/imgproc/src/color.cpp dst[bidx] = b; dst[1] = g; dst[bidx^2] = r; bidx 2487 modules/imgproc/src/color.cpp int dcn = dstcn, bidx = blueIdx, i = 0; bidx 2498 modules/imgproc/src/color.cpp v_dst.val[bidx] = vmlaq_f32(v_Y, vsubq_f32(v_Cb, v_delta), v_c3); bidx 2500 modules/imgproc/src/color.cpp v_dst.val[bidx^2] = vmlaq_f32(v_Y, vsubq_f32(v_Cr, v_delta), v_c0); bidx 2511 modules/imgproc/src/color.cpp v_dst.val[bidx] = vmlaq_f32(v_Y, vsubq_f32(v_Cb, v_delta), v_c3); bidx 2513 modules/imgproc/src/color.cpp v_dst.val[bidx^2] = vmlaq_f32(v_Y, vsubq_f32(v_Cr, v_delta), v_c0); bidx 2527 modules/imgproc/src/color.cpp dst[bidx] = b; dst[1] = g; dst[bidx^2] = r; bidx 2580 modules/imgproc/src/color.cpp int dcn = dstcn, bidx = blueIdx, i = 0; bidx 2637 modules/imgproc/src/color.cpp dst[bidx] = b; dst[1] = g; dst[bidx^2] = r; bidx 2664 modules/imgproc/src/color.cpp int dcn = dstcn, bidx = blueIdx; bidx 2678 modules/imgproc/src/color.cpp dst[bidx] = saturate_cast<_Tp>(b); bidx 2680 modules/imgproc/src/color.cpp dst[bidx^2] = saturate_cast<_Tp>(r); bidx 2713 modules/imgproc/src/color.cpp int dcn = dstcn, bidx = blueIdx, i = 0; bidx 2755 modules/imgproc/src/color.cpp v_dst.val[bidx] = v_b; bidx 2757 modules/imgproc/src/color.cpp v_dst.val[bidx^2] = v_r; bidx 2763 modules/imgproc/src/color.cpp v_dst.val[bidx] = v_b; bidx 2765 modules/imgproc/src/color.cpp v_dst.val[bidx^2] = v_r; bidx 2781 modules/imgproc/src/color.cpp dst[bidx] = saturate_cast<uchar>(b); bidx 2783 modules/imgproc/src/color.cpp dst[bidx^2] = saturate_cast<uchar>(r); bidx 2819 modules/imgproc/src/color.cpp int dcn = dstcn, bidx = blueIdx, i = 0; bidx 2857 modules/imgproc/src/color.cpp v_dst.val[bidx] = v_b; bidx 2859 modules/imgproc/src/color.cpp v_dst.val[bidx^2] = v_r; bidx 2865 modules/imgproc/src/color.cpp v_dst.val[bidx] = v_b; bidx 2867 modules/imgproc/src/color.cpp v_dst.val[bidx^2] = v_r; bidx 2895 modules/imgproc/src/color.cpp v_dst.val[bidx] = v_bd; bidx 2897 modules/imgproc/src/color.cpp v_dst.val[bidx^2] = v_rd; bidx 2903 modules/imgproc/src/color.cpp v_dst.val[bidx] = v_bd; bidx 2905 modules/imgproc/src/color.cpp v_dst.val[bidx^2] = v_rd; bidx 2921 modules/imgproc/src/color.cpp dst[bidx] = saturate_cast<ushort>(b); bidx 2923 modules/imgproc/src/color.cpp dst[bidx^2] = saturate_cast<ushort>(r); bidx 3012 modules/imgproc/src/color.cpp int dcn = dstcn, bidx = blueIdx, i = 0; bidx 3060 modules/imgproc/src/color.cpp if (bidx == 0) bidx 3099 modules/imgproc/src/color.cpp dst[bidx] = saturate_cast<uchar>(b); bidx 3101 modules/imgproc/src/color.cpp dst[bidx^2] = saturate_cast<uchar>(r); bidx 4132 modules/imgproc/src/color.cpp int i, bidx = blueIdx, scn = srccn; bidx 4158 modules/imgproc/src/color.cpp int b = src[bidx], g = src[1], r = src[bidx^2]; bidx 4197 modules/imgproc/src/color.cpp int i, bidx = blueIdx, scn = srccn; bidx 4203 modules/imgproc/src/color.cpp float b = src[bidx], g = src[1], r = src[bidx^2]; bidx 4246 modules/imgproc/src/color.cpp int i, bidx = blueIdx, dcn = dstcn; bidx 4287 modules/imgproc/src/color.cpp dst[bidx] = b; bidx 4289 modules/imgproc/src/color.cpp dst[bidx^2] = r; bidx 4513 modules/imgproc/src/color.cpp int i, bidx = blueIdx, scn = srccn; bidx 4519 modules/imgproc/src/color.cpp float b = src[bidx], g = src[1], r = src[bidx^2]; bidx 4755 modules/imgproc/src/color.cpp int i, bidx = blueIdx, dcn = dstcn; bidx 4797 modules/imgproc/src/color.cpp dst[bidx] = b; bidx 4799 modules/imgproc/src/color.cpp dst[bidx^2] = r; bidx 6683 modules/imgproc/src/color.cpp int scn = src.channels(), depth = src.depth(), bidx, uidx, yidx; bidx 6716 modules/imgproc/src/color.cpp bidx = code == COLOR_BGR5652BGR || code == COLOR_BGR5552BGR || bidx 6721 modules/imgproc/src/color.cpp opts + format("-D dcn=%d -D bidx=%d -D greenbits=%d", dcn, bidx, greenbits)); bidx 6728 modules/imgproc/src/color.cpp bidx = code == COLOR_BGR2BGR565 || code == COLOR_BGR2BGR555 || bidx 6734 modules/imgproc/src/color.cpp opts + format("-D dcn=2 -D bidx=%d -D greenbits=%d", bidx, greenbits)); bidx 6759 modules/imgproc/src/color.cpp bidx = code == COLOR_BGR2GRAY || code == COLOR_BGRA2GRAY ? 0 : 2; bidx 6763 modules/imgproc/src/color.cpp bidx, stripeSize)); bidx 6780 modules/imgproc/src/color.cpp bidx = code == COLOR_RGB2YUV ? 0 : 2; bidx 6783 modules/imgproc/src/color.cpp opts + format("-D dcn=3 -D bidx=%d", bidx)); bidx 6791 modules/imgproc/src/color.cpp bidx = code == COLOR_YUV2RGB ? 0 : 2; bidx 6793 modules/imgproc/src/color.cpp opts + format("-D dcn=%d -D bidx=%d", dcn, bidx)); bidx 6803 modules/imgproc/src/color.cpp bidx = code == COLOR_YUV2BGRA_NV12 || code == COLOR_YUV2BGR_NV12 || bidx 6811 modules/imgproc/src/color.cpp opts + format("-D dcn=%d -D bidx=%d -D uidx=%d", dcn, bidx, uidx)); bidx 6821 modules/imgproc/src/color.cpp bidx = code == COLOR_YUV2BGRA_YV12 || code == COLOR_YUV2BGR_YV12 || bidx 6829 modules/imgproc/src/color.cpp opts + format("-D dcn=%d -D bidx=%d -D uidx=%d%s", dcn, bidx, uidx, bidx 6851 modules/imgproc/src/color.cpp bidx = code == COLOR_BGRA2YUV_YV12 || code == COLOR_BGR2YUV_YV12 || bidx 6872 modules/imgproc/src/color.cpp opts + format("-D dcn=%d -D bidx=%d -D uidx=%d -D PIX_PER_WI_X=%d", dcn, bidx, uidx, pxPerWIx)); bidx 6884 modules/imgproc/src/color.cpp bidx = (code==COLOR_YUV2BGR_UYVY || code==COLOR_YUV2BGRA_UYVY || code==COLOR_YUV2BGRA_YUY2 || bidx 6895 modules/imgproc/src/color.cpp opts + format("-D dcn=%d -D bidx=%d -D uidx=%d -D yidx=%d%s", dcn, bidx, uidx, yidx, bidx 6903 modules/imgproc/src/color.cpp bidx = code == COLOR_BGR2YCrCb ? 0 : 2; bidx 6906 modules/imgproc/src/color.cpp opts + format("-D dcn=3 -D bidx=%d", bidx)); bidx 6915 modules/imgproc/src/color.cpp bidx = code == COLOR_YCrCb2BGR ? 0 : 2; bidx 6917 modules/imgproc/src/color.cpp opts + format("-D dcn=%d -D bidx=%d", dcn, bidx)); bidx 6923 modules/imgproc/src/color.cpp bidx = code == COLOR_BGR2XYZ ? 0 : 2; bidx 6934 modules/imgproc/src/color.cpp if (bidx == 0) bidx 6950 modules/imgproc/src/color.cpp if (bidx == 0) bidx 6963 modules/imgproc/src/color.cpp opts + format("-D dcn=3 -D bidx=%d", bidx)); bidx 6974 modules/imgproc/src/color.cpp bidx = code == COLOR_XYZ2BGR ? 0 : 2; bidx 6985 modules/imgproc/src/color.cpp if (bidx == 0) bidx 7001 modules/imgproc/src/color.cpp if (bidx == 0) bidx 7014 modules/imgproc/src/color.cpp opts + format("-D dcn=%d -D bidx=%d", dcn, bidx)); bidx 7024 modules/imgproc/src/color.cpp bidx = code == COLOR_BGR2HSV || code == COLOR_BGR2HLS || bidx 7071 modules/imgproc/src/color.cpp hrange, bidx)); bidx 7084 modules/imgproc/src/color.cpp hrange*(1.f/360.f), bidx)); bidx 7093 modules/imgproc/src/color.cpp bidx = code == COLOR_HSV2BGR || code == COLOR_HLS2BGR || bidx 7103 modules/imgproc/src/color.cpp dcn, bidx, hrange, 6.f/hrange)); bidx 7120 modules/imgproc/src/color.cpp bidx = code == CV_BGR2Lab || code == CV_LBGR2Lab || code == CV_BGR2Luv || code == CV_LBGR2Luv ? 0 : 2; bidx 7129 modules/imgproc/src/color.cpp dcn, bidx, srgb ? " -D SRGB" : "")); bidx 7164 modules/imgproc/src/color.cpp coeffs[i*3+(bidx^2)] = cvRound(_coeffs[i*3]*scale[i]); bidx 7166 modules/imgproc/src/color.cpp coeffs[i*3+bidx] = cvRound(_coeffs[i*3+2]*scale[i]); bidx 7199 modules/imgproc/src/color.cpp coeffs[j + (bidx ^ 2)] = _coeffs[j] * (lab ? scale[i] : 1); bidx 7201 modules/imgproc/src/color.cpp coeffs[j + bidx] = _coeffs[j + 2] * (lab ? scale[i] : 1); bidx 7245 modules/imgproc/src/color.cpp bidx = code == CV_Lab2BGR || code == CV_Lab2LBGR || code == CV_Luv2BGR || code == CV_Luv2LBGR ? 0 : 2; bidx 7253 modules/imgproc/src/color.cpp dcn, bidx, srgb ? " -D SRGB" : "")); bidx 7269 modules/imgproc/src/color.cpp coeffs[i+(bidx^2)*3] = _coeffs[i] * (lab ? _whitept[i] : 1); bidx 7271 modules/imgproc/src/color.cpp coeffs[i+bidx*3] = _coeffs[i+6] * (lab ? _whitept[i] : 1); bidx 7335 modules/imgproc/src/color.cpp int scn = CV_MAT_CN(stype), depth = CV_MAT_DEPTH(stype), bidx; bidx 7351 modules/imgproc/src/color.cpp bidx = code == CV_BGR2BGRA || code == CV_BGRA2BGR ? 0 : 2; bidx 7421 modules/imgproc/src/color.cpp if(tegra::useTegra() && tegra::cvtBGR2RGB(src, dst, bidx)) bidx 7424 modules/imgproc/src/color.cpp CvtColorLoop(src, dst, RGB2RGB<uchar>(scn, dcn, bidx)); bidx 7427 modules/imgproc/src/color.cpp CvtColorLoop(src, dst, RGB2RGB<ushort>(scn, dcn, bidx)); bidx 7429 modules/imgproc/src/color.cpp CvtColorLoop(src, dst, RGB2RGB<float>(scn, dcn, bidx)); bidx 7610 modules/imgproc/src/color.cpp bidx = code == CV_BGR2GRAY || code == CV_BGRA2GRAY ? 0 : 2; bidx 7615 modules/imgproc/src/color.cpp if(tegra::useTegra() && tegra::cvtRGB2Gray(src, dst, bidx)) bidx 7618 modules/imgproc/src/color.cpp CvtColorLoop(src, dst, RGB2Gray<uchar>(scn, bidx, 0)); bidx 7621 modules/imgproc/src/color.cpp CvtColorLoop(src, dst, RGB2Gray<ushort>(scn, bidx, 0)); bidx 7623 modules/imgproc/src/color.cpp CvtColorLoop(src, dst, RGB2Gray<float>(scn, bidx, 0)); bidx 7691 modules/imgproc/src/color.cpp bidx = code == CV_BGR2YCrCb || code == CV_BGR2YUV ? 0 : 2; bidx 7748 modules/imgproc/src/color.cpp if((code == CV_RGB2YCrCb || code == CV_BGR2YCrCb) && tegra::useTegra() && tegra::cvtRGB2YCrCb(src, dst, bidx)) bidx 7751 modules/imgproc/src/color.cpp CvtColorLoop(src, dst, RGB2YCrCb_i<uchar>(scn, bidx, coeffs_i)); bidx 7754 modules/imgproc/src/color.cpp CvtColorLoop(src, dst, RGB2YCrCb_i<ushort>(scn, bidx, coeffs_i)); bidx 7756 modules/imgproc/src/color.cpp CvtColorLoop(src, dst, RGB2YCrCb_f<float>(scn, bidx, coeffs_f)); bidx 7765 modules/imgproc/src/color.cpp bidx = code == CV_YCrCb2BGR || code == CV_YUV2BGR ? 0 : 2; bidx 7820 modules/imgproc/src/color.cpp CvtColorLoop(src, dst, YCrCb2RGB_i<uchar>(dcn, bidx, coeffs_i)); bidx 7822 modules/imgproc/src/color.cpp CvtColorLoop(src, dst, YCrCb2RGB_i<ushort>(dcn, bidx, coeffs_i)); bidx 7824 modules/imgproc/src/color.cpp CvtColorLoop(src, dst, YCrCb2RGB_f<float>(dcn, bidx, coeffs_f)); bidx 7830 modules/imgproc/src/color.cpp bidx = code == CV_BGR2XYZ ? 0 : 2; bidx 7878 modules/imgproc/src/color.cpp CvtColorLoop(src, dst, RGB2XYZ_i<uchar>(scn, bidx, 0)); bidx 7880 modules/imgproc/src/color.cpp CvtColorLoop(src, dst, RGB2XYZ_i<ushort>(scn, bidx, 0)); bidx 7882 modules/imgproc/src/color.cpp CvtColorLoop(src, dst, RGB2XYZ_f<float>(scn, bidx, 0)); bidx 7888 modules/imgproc/src/color.cpp bidx = code == CV_XYZ2BGR ? 0 : 2; bidx 7936 modules/imgproc/src/color.cpp CvtColorLoop(src, dst, XYZ2RGB_i<uchar>(dcn, bidx, 0)); bidx 7938 modules/imgproc/src/color.cpp CvtColorLoop(src, dst, XYZ2RGB_i<ushort>(dcn, bidx, 0)); bidx 7940 modules/imgproc/src/color.cpp CvtColorLoop(src, dst, XYZ2RGB_f<float>(dcn, bidx, 0)); bidx 7947 modules/imgproc/src/color.cpp bidx = code == CV_BGR2HSV || code == CV_BGR2HLS || bidx 8042 modules/imgproc/src/color.cpp if(tegra::useTegra() && tegra::cvtRGB2HSV(src, dst, bidx, hrange)) bidx 8046 modules/imgproc/src/color.cpp CvtColorLoop(src, dst, RGB2HSV_b(scn, bidx, hrange)); bidx 8048 modules/imgproc/src/color.cpp CvtColorLoop(src, dst, RGB2HSV_f(scn, bidx, (float)hrange)); bidx 8053 modules/imgproc/src/color.cpp CvtColorLoop(src, dst, RGB2HLS_b(scn, bidx, hrange)); bidx 8055 modules/imgproc/src/color.cpp CvtColorLoop(src, dst, RGB2HLS_f(scn, bidx, (float)hrange)); bidx 8065 modules/imgproc/src/color.cpp bidx = code == CV_HSV2BGR || code == CV_HLS2BGR || bidx 8158 modules/imgproc/src/color.cpp CvtColorLoop(src, dst, HSV2RGB_b(dcn, bidx, hrange)); bidx 8160 modules/imgproc/src/color.cpp CvtColorLoop(src, dst, HSV2RGB_f(dcn, bidx, (float)hrange)); bidx 8165 modules/imgproc/src/color.cpp CvtColorLoop(src, dst, HLS2RGB_b(dcn, bidx, hrange)); bidx 8167 modules/imgproc/src/color.cpp CvtColorLoop(src, dst, HLS2RGB_f(dcn, bidx, (float)hrange)); bidx 8176 modules/imgproc/src/color.cpp bidx = code == CV_BGR2Lab || code == CV_BGR2Luv || bidx 8273 modules/imgproc/src/color.cpp CvtColorLoop(src, dst, RGB2Lab_b(scn, bidx, 0, 0, srgb)); bidx 8275 modules/imgproc/src/color.cpp CvtColorLoop(src, dst, RGB2Lab_f(scn, bidx, 0, 0, srgb)); bidx 8280 modules/imgproc/src/color.cpp CvtColorLoop(src, dst, RGB2Luv_b(scn, bidx, 0, 0, srgb)); bidx 8282 modules/imgproc/src/color.cpp CvtColorLoop(src, dst, RGB2Luv_f(scn, bidx, 0, 0, srgb)); bidx 8292 modules/imgproc/src/color.cpp bidx = code == CV_Lab2BGR || code == CV_Luv2BGR || bidx 8381 modules/imgproc/src/color.cpp CvtColorLoop(src, dst, Lab2RGB_b(dcn, bidx, 0, 0, srgb)); bidx 8383 modules/imgproc/src/color.cpp CvtColorLoop(src, dst, Lab2RGB_f(dcn, bidx, 0, 0, srgb)); bidx 8388 modules/imgproc/src/color.cpp CvtColorLoop(src, dst, Luv2RGB_b(dcn, bidx, 0, 0, srgb)); bidx 8390 modules/imgproc/src/color.cpp CvtColorLoop(src, dst, Luv2RGB_f(dcn, bidx, 0, 0, srgb)); bidx 98 modules/imgproc/src/opencl/cvtcolor.cl #if bidx == 0 bidx 102 modules/imgproc/src/opencl/cvtcolor.cl #elif bidx == 2 bidx 106 modules/imgproc/src/opencl/cvtcolor.cl #elif bidx == 3 bidx 291 modules/imgproc/src/opencl/cvtcolor.cl dst[bidx] = SAT_CAST( b ); bidx 293 modules/imgproc/src/opencl/cvtcolor.cl dst[bidx^2] = SAT_CAST( r ); bidx 340 modules/imgproc/src/opencl/cvtcolor.cl dst1[2 - bidx] = convert_uchar_sat(Y1 + ruv); bidx 342 modules/imgproc/src/opencl/cvtcolor.cl dst1[bidx] = convert_uchar_sat(Y1 + buv); bidx 348 modules/imgproc/src/opencl/cvtcolor.cl dst1[dcn + 2 - bidx] = convert_uchar_sat(Y2 + ruv); bidx 350 modules/imgproc/src/opencl/cvtcolor.cl dst1[dcn + bidx] = convert_uchar_sat(Y2 + buv); bidx 356 modules/imgproc/src/opencl/cvtcolor.cl dst2[2 - bidx] = convert_uchar_sat(Y3 + ruv); bidx 358 modules/imgproc/src/opencl/cvtcolor.cl dst2[bidx] = convert_uchar_sat(Y3 + buv); bidx 364 modules/imgproc/src/opencl/cvtcolor.cl dst2[dcn + 2 - bidx] = convert_uchar_sat(Y4 + ruv); bidx 366 modules/imgproc/src/opencl/cvtcolor.cl dst2[dcn + bidx] = convert_uchar_sat(Y4 + buv); bidx 418 modules/imgproc/src/opencl/cvtcolor.cl dst1[2 - bidx] = convert_uchar_sat(Y1 + ruv); bidx 420 modules/imgproc/src/opencl/cvtcolor.cl dst1[bidx] = convert_uchar_sat(Y1 + buv); bidx 426 modules/imgproc/src/opencl/cvtcolor.cl dst1[dcn + 2 - bidx] = convert_uchar_sat(Y2 + ruv); bidx 428 modules/imgproc/src/opencl/cvtcolor.cl dst1[dcn + bidx] = convert_uchar_sat(Y2 + buv); bidx 434 modules/imgproc/src/opencl/cvtcolor.cl dst2[2 - bidx] = convert_uchar_sat(Y3 + ruv); bidx 436 modules/imgproc/src/opencl/cvtcolor.cl dst2[bidx] = convert_uchar_sat(Y3 + buv); bidx 442 modules/imgproc/src/opencl/cvtcolor.cl dst2[dcn + 2 - bidx] = convert_uchar_sat(Y4 + ruv); bidx 444 modules/imgproc/src/opencl/cvtcolor.cl dst2[dcn + bidx] = convert_uchar_sat(Y4 + buv); bidx 513 modules/imgproc/src/opencl/cvtcolor.cl y1.x = convert_uchar_sat(fma(coeffs[0], src_pix1[ 2-bidx], fma(coeffs[1], src_pix1[ 1], fma(coeffs[2], src_pix1[ bidx], 16.5f)))); bidx 514 modules/imgproc/src/opencl/cvtcolor.cl y1.y = convert_uchar_sat(fma(coeffs[0], src_pix1[ scn+2-bidx], fma(coeffs[1], src_pix1[ scn+1], fma(coeffs[2], src_pix1[ scn+bidx], 16.5f)))); bidx 515 modules/imgproc/src/opencl/cvtcolor.cl y1.z = convert_uchar_sat(fma(coeffs[0], src_pix1[2*scn+2-bidx], fma(coeffs[1], src_pix1[2*scn+1], fma(coeffs[2], src_pix1[2*scn+bidx], 16.5f)))); bidx 516 modules/imgproc/src/opencl/cvtcolor.cl y1.w = convert_uchar_sat(fma(coeffs[0], src_pix1[3*scn+2-bidx], fma(coeffs[1], src_pix1[3*scn+1], fma(coeffs[2], src_pix1[3*scn+bidx], 16.5f)))); bidx 517 modules/imgproc/src/opencl/cvtcolor.cl y2.x = convert_uchar_sat(fma(coeffs[0], src_pix2[ 2-bidx], fma(coeffs[1], src_pix2[ 1], fma(coeffs[2], src_pix2[ bidx], 16.5f)))); bidx 518 modules/imgproc/src/opencl/cvtcolor.cl y2.y = convert_uchar_sat(fma(coeffs[0], src_pix2[ scn+2-bidx], fma(coeffs[1], src_pix2[ scn+1], fma(coeffs[2], src_pix2[ scn+bidx], 16.5f)))); bidx 519 modules/imgproc/src/opencl/cvtcolor.cl y2.z = convert_uchar_sat(fma(coeffs[0], src_pix2[2*scn+2-bidx], fma(coeffs[1], src_pix2[2*scn+1], fma(coeffs[2], src_pix2[2*scn+bidx], 16.5f)))); bidx 520 modules/imgproc/src/opencl/cvtcolor.cl y2.w = convert_uchar_sat(fma(coeffs[0], src_pix2[3*scn+2-bidx], fma(coeffs[1], src_pix2[3*scn+1], fma(coeffs[2], src_pix2[3*scn+bidx], 16.5f)))); bidx 525 modules/imgproc/src/opencl/cvtcolor.cl float uv[4] = { fma(coeffs[3], src_pix1[ 2-bidx], fma(coeffs[4], src_pix1[ 1], fma(coeffs[5], src_pix1[ bidx], 128.5f))), bidx 526 modules/imgproc/src/opencl/cvtcolor.cl fma(coeffs[5], src_pix1[ 2-bidx], fma(coeffs[6], src_pix1[ 1], fma(coeffs[7], src_pix1[ bidx], 128.5f))), bidx 527 modules/imgproc/src/opencl/cvtcolor.cl fma(coeffs[3], src_pix1[2*scn+2-bidx], fma(coeffs[4], src_pix1[2*scn+1], fma(coeffs[5], src_pix1[2*scn+bidx], 128.5f))), bidx 528 modules/imgproc/src/opencl/cvtcolor.cl fma(coeffs[5], src_pix1[2*scn+2-bidx], fma(coeffs[6], src_pix1[2*scn+1], fma(coeffs[7], src_pix1[2*scn+bidx], 128.5f))) }; bidx 596 modules/imgproc/src/opencl/cvtcolor.cl dst[2 - bidx] = convert_uchar_sat(y00 + ruv); bidx 598 modules/imgproc/src/opencl/cvtcolor.cl dst[bidx] = convert_uchar_sat(y00 + buv); bidx 603 modules/imgproc/src/opencl/cvtcolor.cl dst[dcn + 2 - bidx] = convert_uchar_sat(y01 + ruv); bidx 605 modules/imgproc/src/opencl/cvtcolor.cl dst[dcn + bidx] = convert_uchar_sat(y01 + buv); bidx 707 modules/imgproc/src/opencl/cvtcolor.cl dstptr[(bidx^2)] = SAT_CAST(r); bidx 709 modules/imgproc/src/opencl/cvtcolor.cl dstptr[bidx] = SAT_CAST(b); bidx 894 modules/imgproc/src/opencl/cvtcolor.cl dst[dst_index + bidx] = (uchar)(t << 3); bidx 896 modules/imgproc/src/opencl/cvtcolor.cl dst[dst_index + (bidx^2)] = (uchar)((t >> 8) & ~7); bidx 898 modules/imgproc/src/opencl/cvtcolor.cl dst[dst_index + bidx] = (uchar)(t << 3); bidx 900 modules/imgproc/src/opencl/cvtcolor.cl dst[dst_index + (bidx^2)] = (uchar)((t >> 7) & ~7); bidx 1136 modules/imgproc/src/opencl/cvtcolor.cl dst[dst_index + bidx] = convert_uchar_sat_rte(b*255.f); bidx 1138 modules/imgproc/src/opencl/cvtcolor.cl dst[dst_index + (bidx^2)] = convert_uchar_sat_rte(r*255.f); bidx 1264 modules/imgproc/src/opencl/cvtcolor.cl dst[bidx] = b; bidx 1266 modules/imgproc/src/opencl/cvtcolor.cl dst[bidx^2] = r; bidx 1395 modules/imgproc/src/opencl/cvtcolor.cl dst[dst_index + bidx] = convert_uchar_sat_rte(b*255.f); bidx 1397 modules/imgproc/src/opencl/cvtcolor.cl dst[dst_index + (bidx^2)] = convert_uchar_sat_rte(r*255.f); bidx 1526 modules/imgproc/src/opencl/cvtcolor.cl dst[bidx] = b; bidx 1528 modules/imgproc/src/opencl/cvtcolor.cl dst[bidx^2] = r;