Home
last modified time | relevance | path

Searched refs:thresh (Results 1 – 25 of 152) sorted by relevance

1234567

/external/webp/src/dsp/
Ddec_mips32.c69 static WEBP_INLINE int hev(const uint8_t* p, int step, int thresh) { in hev() argument
71 return (abs_mips32(p1 - p0) > thresh) || (abs_mips32(q1 - q0) > thresh); in hev()
94 int thresh, int ithresh, int hev_thresh) { in FilterLoop26() argument
95 const int thresh2 = 2 * thresh + 1; in FilterLoop26()
110 int thresh, int ithresh, int hev_thresh) { in FilterLoop24() argument
111 const int thresh2 = 2 * thresh + 1; in FilterLoop24()
126 int thresh, int ithresh, int hev_thresh) { in VFilter16() argument
127 FilterLoop26(p, stride, 1, 16, thresh, ithresh, hev_thresh); in VFilter16()
131 int thresh, int ithresh, int hev_thresh) { in HFilter16() argument
132 FilterLoop26(p, 1, stride, 16, thresh, ithresh, hev_thresh); in HFilter16()
[all …]
Ddec_mips_dsp_r2.c162 int thresh, int ithresh, int hev_thresh) { in FilterLoop26() argument
163 const int thresh2 = 2 * thresh + 1; in FilterLoop26()
300 int thresh, int ithresh, int hev_thresh) { in FilterLoop24() argument
305 const int thresh2 = 2 * thresh + 1; in FilterLoop24()
429 int thresh, int ithresh, int hev_thresh) { in VFilter16() argument
430 FilterLoop26(p, stride, 1, 16, thresh, ithresh, hev_thresh); in VFilter16()
434 int thresh, int ithresh, int hev_thresh) { in HFilter16() argument
435 FilterLoop26(p, 1, stride, 16, thresh, ithresh, hev_thresh); in HFilter16()
440 int thresh, int ithresh, int hev_thresh) { in VFilter8() argument
441 FilterLoop26(u, stride, 1, 8, thresh, ithresh, hev_thresh); in VFilter8()
[all …]
Ddec.c505 static WEBP_INLINE int hev(const uint8_t* p, int step, int thresh) { in hev() argument
507 return (VP8kabs0[p1 - p0] > thresh) || (VP8kabs0[q1 - q0] > thresh); in hev()
529 static void SimpleVFilter16(uint8_t* p, int stride, int thresh) { in SimpleVFilter16() argument
531 const int thresh2 = 2 * thresh + 1; in SimpleVFilter16()
539 static void SimpleHFilter16(uint8_t* p, int stride, int thresh) { in SimpleHFilter16() argument
541 const int thresh2 = 2 * thresh + 1; in SimpleHFilter16()
549 static void SimpleVFilter16i(uint8_t* p, int stride, int thresh) { in SimpleVFilter16i() argument
553 SimpleVFilter16(p, stride, thresh); in SimpleVFilter16i()
557 static void SimpleHFilter16i(uint8_t* p, int stride, int thresh) { in SimpleHFilter16i() argument
561 SimpleHFilter16(p, stride, thresh); in SimpleHFilter16i()
[all …]
/external/opencv3/modules/imgproc/src/
Dthresh.cpp50 thresh_8u( const Mat& _src, Mat& _dst, uchar thresh, uchar maxval, int type ) in thresh_8u() argument
67 …if (tegra::useTegra() && tegra::thresh_8u(_src, _dst, roi.width, roi.height, thresh, maxval, type)) in thresh_8u()
80 …if (_src.data == _dst.data && ippiThreshold_GT_8u_C1IR(_dst.ptr(), (int)dst_step, sz, thresh) >= 0) in thresh_8u()
86 …if (ippiThreshold_GT_8u_C1R(_src.ptr(), (int)src_step, _dst.ptr(), (int)dst_step, sz, thresh) >= 0) in thresh_8u()
95 ….data == _dst.data && ippiThreshold_LTVal_8u_C1IR(_dst.ptr(), (int)dst_step, sz, thresh+1, 0) >= 0) in thresh_8u()
101 …Threshold_LTVal_8u_C1R(_src.ptr(), (int)src_step, _dst.ptr(), (int)dst_step, sz, thresh+1, 0) >= 0) in thresh_8u()
110 …rc.data == _dst.data && ippiThreshold_GTVal_8u_C1IR(_dst.ptr(), (int)dst_step, sz, thresh, 0) >= 0) in thresh_8u()
116 …piThreshold_GTVal_8u_C1R(_src.ptr(), (int)src_step, _dst.ptr(), (int)dst_step, sz, thresh, 0) >= 0) in thresh_8u()
131 for( i = 0; i <= thresh; i++ ) in thresh_8u()
137 for( i = 0; i <= thresh; i++ ) in thresh_8u()
[all …]
/external/opencv3/3rdparty/libwebp/dsp/
Ddec_neon.c36 #define NEEDS_FILTER(p1, p0, q0, q1, thresh, mask) \ argument
42 "vdup.8 q14, " #thresh " \n" \
64 #define DO_FILTER2(p1, p0, q0, q1, thresh) \ argument
65 NEEDS_FILTER(p1, p0, q0, q1, thresh, q9) /* filter mask in q9 */ \
97 static void SimpleVFilter16NEON(uint8_t* p, int stride, int thresh) { in SimpleVFilter16NEON() argument
106 DO_FILTER2(q1, q2, q3, q4, %[thresh]) in SimpleVFilter16NEON()
113 : [stride] "r"(stride), [thresh] "r"(thresh) in SimpleVFilter16NEON()
118 static void SimpleHFilter16NEON(uint8_t* p, int stride, int thresh) { in SimpleHFilter16NEON() argument
130 DO_FILTER2(q1, q2, q3, q4, %[thresh]) in SimpleHFilter16NEON()
139 : [stride] "r"(stride), [thresh] "r"(thresh) in SimpleHFilter16NEON()
[all …]
Ddec.c533 static WEBP_INLINE int hev(const uint8_t* p, int step, int thresh) { in hev() argument
535 return (abs0[255 + p1 - p0] > thresh) || (abs0[255 + q1 - q0] > thresh); in hev()
538 static WEBP_INLINE int needs_filter(const uint8_t* p, int step, int thresh) { in needs_filter() argument
540 return (2 * abs0[255 + p0 - q0] + abs1[255 + p1 - q1]) <= thresh; in needs_filter()
557 static void SimpleVFilter16(uint8_t* p, int stride, int thresh) { in SimpleVFilter16() argument
560 if (needs_filter(p + i, stride, thresh)) { in SimpleVFilter16()
566 static void SimpleHFilter16(uint8_t* p, int stride, int thresh) { in SimpleHFilter16() argument
569 if (needs_filter(p + i * stride, 1, thresh)) { in SimpleHFilter16()
575 static void SimpleVFilter16i(uint8_t* p, int stride, int thresh) { in SimpleVFilter16i() argument
579 SimpleVFilter16(p, stride, thresh); in SimpleVFilter16i()
[all …]
Ddec_sse2.c329 const __m128i* q1, int thresh, __m128i *mask) { in NeedsFilter() argument
339 t1 = _mm_set1_epi8(thresh); in NeedsFilter()
349 const __m128i* q1, int thresh) { in DoFilter2() argument
355 NeedsFilter(p1, p0, q0, q1, thresh, &mask); in DoFilter2()
599 static void SimpleVFilter16SSE2(uint8_t* p, int stride, int thresh) { in SimpleVFilter16SSE2() argument
606 DoFilter2(&p1, &p0, &q0, &q1, thresh); in SimpleVFilter16SSE2()
613 static void SimpleHFilter16SSE2(uint8_t* p, int stride, int thresh) { in SimpleHFilter16SSE2() argument
619 DoFilter2(&p1, &p0, &q0, &q1, thresh); in SimpleHFilter16SSE2()
623 static void SimpleVFilter16iSSE2(uint8_t* p, int stride, int thresh) { in SimpleVFilter16iSSE2() argument
627 SimpleVFilter16SSE2(p, stride, thresh); in SimpleVFilter16iSSE2()
[all …]
/external/libvpx/libvpx/vpx_dsp/
Dloopfilter.c52 static INLINE int8_t flat_mask4(uint8_t thresh, in flat_mask4() argument
58 mask |= (abs(p1 - p0) > thresh) * -1; in flat_mask4()
59 mask |= (abs(q1 - q0) > thresh) * -1; in flat_mask4()
60 mask |= (abs(p2 - p0) > thresh) * -1; in flat_mask4()
61 mask |= (abs(q2 - q0) > thresh) * -1; in flat_mask4()
62 mask |= (abs(p3 - p0) > thresh) * -1; in flat_mask4()
63 mask |= (abs(q3 - q0) > thresh) * -1; in flat_mask4()
67 static INLINE int8_t flat_mask5(uint8_t thresh, in flat_mask5() argument
73 int8_t mask = ~flat_mask4(thresh, p3, p2, p1, p0, q0, q1, q2, q3); in flat_mask5()
74 mask |= (abs(p4 - p0) > thresh) * -1; in flat_mask5()
[all …]
/external/opencv/cv/src/
Dcvthresh.cpp46 CvSize roi, uchar thresh, uchar maxval, int type ) in icvThresh_8u_C1R() argument
54 for( i = 0; i <= thresh; i++ ) in icvThresh_8u_C1R()
60 for( i = 0; i <= thresh; i++ ) in icvThresh_8u_C1R()
66 for( i = 0; i <= thresh; i++ ) in icvThresh_8u_C1R()
69 tab[i] = thresh; in icvThresh_8u_C1R()
72 for( i = 0; i <= thresh; i++ ) in icvThresh_8u_C1R()
78 for( i = 0; i <= thresh; i++ ) in icvThresh_8u_C1R()
114 CvSize roi, float thresh, float maxval, int type ) in icvThresh_32f_C1R() argument
122 v.f = thresh; iThresh = CV_TOGGLE_FLT(v.i); in icvThresh_32f_C1R()
159 if( temp > thresh ) in icvThresh_32f_C1R()
[all …]
/external/libvpx/libvpx/test/
Dlpf_8_test.cc39 const uint8_t *limit, const uint8_t *thresh,
47 const uint8_t *limit, const uint8_t *thresh,
61 const uint8_t *limit, const uint8_t *thresh, in wrapper_vertical_16_sse2() argument
63 vpx_highbd_lpf_vertical_16_sse2(s, p, blimit, limit, thresh, bd); in wrapper_vertical_16_sse2()
67 const uint8_t *limit, const uint8_t *thresh, in wrapper_vertical_16_c() argument
69 vpx_highbd_lpf_vertical_16_c(s, p, blimit, limit, thresh, bd); in wrapper_vertical_16_c()
73 const uint8_t *limit, const uint8_t *thresh, in wrapper_vertical_16_dual_sse2() argument
75 vpx_highbd_lpf_vertical_16_dual_sse2(s, p, blimit, limit, thresh, bd); in wrapper_vertical_16_dual_sse2()
79 const uint8_t *limit, const uint8_t *thresh, in wrapper_vertical_16_dual_c() argument
81 vpx_highbd_lpf_vertical_16_dual_c(s, p, blimit, limit, thresh, bd); in wrapper_vertical_16_dual_c()
[all …]
/external/opencv3/3rdparty/libwebp/enc/
Dfilter.c76 static WEBP_INLINE int hev(const uint8_t* p, int step, int thresh) { in hev() argument
78 return (abs0[255 + p1 - p0] > thresh) || (abs0[255 + q1 - q0] > thresh); in hev()
81 static WEBP_INLINE int needs_filter(const uint8_t* p, int step, int thresh) { in needs_filter() argument
83 return (2 * abs0[255 + p0 - q0] + abs1[255 + p1 - q1]) <= thresh; in needs_filter()
100 static void SimpleVFilter16(uint8_t* p, int stride, int thresh) { in SimpleVFilter16() argument
103 if (needs_filter(p + i, stride, thresh)) { in SimpleVFilter16()
109 static void SimpleHFilter16(uint8_t* p, int stride, int thresh) { in SimpleHFilter16() argument
112 if (needs_filter(p + i * stride, 1, thresh)) { in SimpleHFilter16()
118 static void SimpleVFilter16i(uint8_t* p, int stride, int thresh) { in SimpleVFilter16i() argument
122 SimpleVFilter16(p, stride, thresh); in SimpleVFilter16i()
[all …]
/external/opencv3/modules/cudev/include/opencv2/cudev/expr/
Dper_element_func.hpp82 threshBinary_(const SrcPtr& src, typename PtrTraits<SrcPtr>::value_type thresh, typename PtrTraits<… in threshBinary_() argument
84 return makeExpr(transformPtr(src, thresh_binary_func(thresh, maxVal))); in threshBinary_()
89 threshBinaryInv_(const SrcPtr& src, typename PtrTraits<SrcPtr>::value_type thresh, typename PtrTrai… in threshBinaryInv_() argument
91 return makeExpr(transformPtr(src, thresh_binary_inv_func(thresh, maxVal))); in threshBinaryInv_()
96 threshTrunc_(const SrcPtr& src, typename PtrTraits<SrcPtr>::value_type thresh) in threshTrunc_() argument
98 return makeExpr(transformPtr(src, thresh_trunc_func(thresh))); in threshTrunc_()
103 threshToZero_(const SrcPtr& src, typename PtrTraits<SrcPtr>::value_type thresh) in threshToZero_() argument
105 return makeExpr(transformPtr(src, thresh_to_zero_func(thresh))); in threshToZero_()
110 threshToZeroInv_(const SrcPtr& src, typename PtrTraits<SrcPtr>::value_type thresh) in threshToZeroInv_() argument
112 return makeExpr(transformPtr(src, thresh_to_zero_inv_func(thresh))); in threshToZeroInv_()
/external/opencv3/modules/cudaarithm/src/cuda/
Dthreshold.cu72 …void thresholdImpl(const GpuMat& src, GpuMat& dst, double thresh, double maxVal, int type, Stream&… in thresholdImpl() argument
74 const T thresh_ = static_cast<T>(thresh); in thresholdImpl()
98 double cv::cuda::threshold(InputArray _src, OutputArray _dst, double thresh, double maxVal, int typ… in threshold() argument
118 …dst.ptr<Npp32f>(), static_cast<int>(dst.step), sz, static_cast<Npp32f>(thresh), NPP_CMP_GREATER) ); in threshold()
125 …typedef void (*func_t)(const GpuMat& src, GpuMat& dst, double thresh, double maxVal, int type, Str… in threshold()
139 thresh = cvFloor(thresh); in threshold()
143 funcs[depth](src, dst, thresh, maxVal, type, stream); in threshold()
148 return thresh; in threshold()
/external/opencv3/modules/calib3d/src/
Dcheckchessboard.cpp137 IplImage* thresh = cvCreateImage(cvGetSize(src), IPL_DEPTH_8U, 1); in cvCheckChessboard() local
142 cvThreshold(white, thresh, thresh_level + black_white_gap, 255, CV_THRESH_BINARY); in cvCheckChessboard()
145 cvShowImage("1", thresh); in cvCheckChessboard()
151 cvFindContours(thresh, storage, &first, sizeof(CvContour), CV_RETR_CCOMP); in cvCheckChessboard()
154 cvThreshold(black, thresh, thresh_level, 255, CV_THRESH_BINARY_INV); in cvCheckChessboard()
157 cvShowImage("1", thresh); in cvCheckChessboard()
161 cvFindContours(thresh, storage, &first, sizeof(CvContour), CV_RETR_CCOMP); in cvCheckChessboard()
201 cvReleaseImage(&thresh); in cvCheckChessboard()
/external/opencv3/modules/cudev/include/opencv2/cudev/functional/
Dfunctional.hpp675 T thresh; member
680 return saturate_cast<T>(src > thresh) * maxVal; in operator ()()
685 __host__ __device__ ThreshBinaryFunc<T> thresh_binary_func(T thresh, T maxVal) in thresh_binary_func() argument
688 f.thresh = thresh; in thresh_binary_func()
695 T thresh; member
700 return saturate_cast<T>(src <= thresh) * maxVal; in operator ()()
705 __host__ __device__ ThreshBinaryInvFunc<T> thresh_binary_inv_func(T thresh, T maxVal) in thresh_binary_inv_func() argument
708 f.thresh = thresh; in thresh_binary_inv_func()
715 T thresh; member
720 return minOp(src, thresh); in operator ()()
[all …]
/external/opencv3/modules/core/include/opencv2/core/cuda/
Dfunctional.hpp552 …__host__ __device__ __forceinline__ thresh_binary_func(T thresh_, T maxVal_) : thresh(thresh_), ma… in thresh_binary_func()
556 return (src > thresh) * maxVal; in operator ()()
561 : thresh(other.thresh), maxVal(other.maxVal) {} in thresh_binary_func()
563 T thresh; member
569 …__host__ __device__ __forceinline__ thresh_binary_inv_func(T thresh_, T maxVal_) : thresh(thresh_)… in thresh_binary_inv_func()
573 return (src <= thresh) * maxVal; in operator ()()
578 : thresh(other.thresh), maxVal(other.maxVal) {} in thresh_binary_inv_func()
580 T thresh; member
586 …__device__ __forceinline__ thresh_trunc_func(T thresh_, T maxVal_ = 0) : thresh(thresh_) {(void)ma… in thresh_trunc_func()
590 return minimum<T>()(src, thresh); in operator ()()
[all …]
/external/opencv3/modules/videostab/include/opencv2/videostab/
Dmotion_core.hpp76 float thresh; //!< max error to classify as inlier member
80 RansacParams() : size(0), thresh(0), eps(0), prob(0) {} in RansacParams()
87 RansacParams(int size, float thresh, float eps, float prob);
122 : size(_size), thresh(_thresh), eps(_eps), prob(_prob) {} in RansacParams()
/external/libvpx/libvpx/vp8/common/mips/dspr2/
Dvp8_loopfilter_filters_dspr2.c55 uint32_t thresh, in vp8_filter_mask_vec_mips() argument
121 [q2] "r" (q2), [q3] "r" (q3), [thresh] "r" (thresh) in vp8_filter_mask_vec_mips()
349 unsigned int thresh, in vp8_loop_filter_horizontal_edge_mips() argument
401 thresh, &hev, &mask); in vp8_loop_filter_horizontal_edge_mips()
446 thresh, &hev, &mask); in vp8_loop_filter_horizontal_edge_mips()
491 thresh, &hev, &mask); in vp8_loop_filter_horizontal_edge_mips()
536 thresh, &hev, &mask); in vp8_loop_filter_horizontal_edge_mips()
559 unsigned int thresh, in vp8_loop_filter_uvhorizontal_edge_mips() argument
608 thresh, &hev, &mask); in vp8_loop_filter_uvhorizontal_edge_mips()
653 thresh, &hev, &mask); in vp8_loop_filter_uvhorizontal_edge_mips()
[all …]
/external/opencv3/samples/cpp/tutorial_code/ShapeDescriptors/
DfindContours_demo.cpp18 int thresh = 100; variable
47 createTrackbar( " Canny thresh:", "Source", &thresh, max_thresh, thresh_callback ); in main()
64 Canny( src_gray, canny_output, thresh, thresh*2, 3 ); in thresh_callback()
/external/libvpx/libvpx/vpx_dsp/mips/
Dloopfilter_masks_dspr2.h32 uint32_t thresh, uint32_t *hev, in filter_hev_mask_dspr2() argument
95 [q2] "r" (q2), [q3] "r" (q3), [thresh] "r" (thresh) in filter_hev_mask_dspr2()
134 uint32_t thresh, in filter_hev_mask_flatmask4_dspr2() argument
243 [q2] "r" (q2), [q3] "r" (q3), [thresh] "r" (thresh), in filter_hev_mask_flatmask4_dspr2()
Dloopfilter_8_msa.c19 v16u8 mask, hev, flat, thresh, b_limit, limit; in vpx_lpf_horizontal_8_msa() local
31 thresh = (v16u8)__msa_fill_b(*thresh_ptr); in vpx_lpf_horizontal_8_msa()
35 LPF_MASK_HEV(p3, p2, p1, p0, q0, q1, q2, q3, limit, b_limit, thresh, in vpx_lpf_horizontal_8_msa()
95 v16u8 flat, mask, hev, tmp, thresh, b_limit, limit; in vpx_lpf_horizontal_8_dual_msa() local
105 thresh = (v16u8)__msa_fill_b(*thresh0); in vpx_lpf_horizontal_8_dual_msa()
107 thresh = (v16u8)__msa_ilvr_d((v2i64)tmp, (v2i64)thresh); in vpx_lpf_horizontal_8_dual_msa()
118 LPF_MASK_HEV(p3, p2, p1, p0, q0, q1, q2, q3, limit, b_limit, thresh, in vpx_lpf_horizontal_8_dual_msa()
168 v16u8 flat, mask, hev, thresh, b_limit, limit; in vpx_lpf_vertical_8_msa() local
182 thresh = (v16u8)__msa_fill_b(*thresh_ptr); in vpx_lpf_vertical_8_msa()
187 LPF_MASK_HEV(p3, p2, p1, p0, q0, q1, q2, q3, limit, b_limit, thresh, in vpx_lpf_vertical_8_msa()
[all …]
/external/opencv3/modules/features2d/test/
Dtest_mser.cpp110 int thresh = thresharr[rng.uniform(0, 5)]; in TEST() local
130 threshold(src, src, thresh, 255, THRESH_BINARY); in TEST()
136 if( binarize && (thresh == 0 || thresh == 255) ) in TEST()
148 (int)invert, (int)binarize, thresh, (int)blur); in TEST()
/external/opencv3/doc/tutorials/imgproc/threshold/
Dthreshold.markdown39 line represents the threshold \f$thresh\f$ (fixed).
47 …\f[\texttt{dst} (x,y) = \fork{\texttt{maxVal}}{if \(\texttt{src}(x,y) > \texttt{thresh}\)}{0}{oth…
49 - So, if the intensity of the pixel \f$src(x,y)\f$ is higher than \f$thresh\f$, then the new pixel
58 …\f[\texttt{dst} (x,y) = \fork{0}{if \(\texttt{src}(x,y) > \texttt{thresh}\)}{\texttt{maxVal}}{oth…
60 - If the intensity of the pixel \f$src(x,y)\f$ is higher than \f$thresh\f$, then the new pixel in…
69 …\f[\texttt{dst} (x,y) = \fork{\texttt{threshold}}{if \(\texttt{src}(x,y) > \texttt{thresh}\)}{\te…
71 - The maximum intensity value for the pixels is \f$thresh\f$, if \f$src(x,y)\f$ is greater, then …
80 …\f[\texttt{dst} (x,y) = \fork{\texttt{src}(x,y)}{if \(\texttt{src}(x,y) > \texttt{thresh}\)}{0}{o…
82 - If \f$src(x,y)\f$ is lower than \f$thresh\f$, the new pixel value will be set to \f$0\f$.
90 …\f[\texttt{dst} (x,y) = \fork{0}{if \(\texttt{src}(x,y) > \texttt{thresh}\)}{\texttt{src}(x,y)}{o…
[all …]
/external/libvpx/libvpx/vp8/common/
Dloopfilter_filters.c43 static signed char vp8_hevmask(uc thresh, uc p1, uc p0, uc q0, uc q1) in vp8_hevmask() argument
46 hev |= (abs(p1 - p0) > thresh) * -1; in vp8_hevmask()
47 hev |= (abs(q1 - q0) > thresh) * -1; in vp8_hevmask()
104 const unsigned char *thresh, in vp8_loop_filter_horizontal_edge_c() argument
121 hev = vp8_hevmask(thresh[0], s[-2*p], s[-1*p], s[0*p], s[1*p]); in vp8_loop_filter_horizontal_edge_c()
136 const unsigned char *thresh, in vp8_loop_filter_vertical_edge_c() argument
152 hev = vp8_hevmask(thresh[0], s[-2], s[-1], s[0], s[1]); in vp8_loop_filter_vertical_edge_c()
222 const unsigned char *thresh, in vp8_mbloop_filter_horizontal_edge_c() argument
240 hev = vp8_hevmask(thresh[0], s[-2*p], s[-1*p], s[0*p], s[1*p]); in vp8_mbloop_filter_horizontal_edge_c()
257 const unsigned char *thresh, in vp8_mbloop_filter_vertical_edge_c() argument
[all …]
/external/opencv3/modules/imgproc/test/
Dtest_thresh.cpp123 float thresh, float maxval, int thresh_type ) in test_threshold() argument
128 int ithresh = cvFloor(thresh); in test_threshold()
173 dst[j] = src[j] > thresh ? maxval : 0.f; in test_threshold()
199 dst[j] = src[j] > thresh ? 0.f : maxval; in test_threshold()
233 dst[j] = s > thresh ? thresh : s; in test_threshold()
268 dst[j] = s > thresh ? s : 0.f; in test_threshold()
303 dst[j] = s > thresh ? 0.f : s; in test_threshold()

1234567