Home | History | Annotate | Download | only in src

Lines Matching defs:thresh

50 thresh_8u( const Mat& _src, Mat& _dst, uchar thresh, uchar maxval, int type )
67 if (tegra::useTegra() && tegra::thresh_8u(_src, _dst, roi.width, roi.height, thresh, maxval, type))
80 if (_src.data == _dst.data && ippiThreshold_GT_8u_C1IR(_dst.ptr(), (int)dst_step, sz, thresh) >= 0)
86 if (ippiThreshold_GT_8u_C1R(_src.ptr(), (int)src_step, _dst.ptr(), (int)dst_step, sz, thresh) >= 0)
95 if (_src.data == _dst.data && ippiThreshold_LTVal_8u_C1IR(_dst.ptr(), (int)dst_step, sz, thresh+1, 0) >= 0)
101 if (ippiThreshold_LTVal_8u_C1R(_src.ptr(), (int)src_step, _dst.ptr(), (int)dst_step, sz, thresh+1, 0) >= 0)
110 if (_src.data == _dst.data && ippiThreshold_GTVal_8u_C1IR(_dst.ptr(), (int)dst_step, sz, thresh, 0) >= 0)
116 if (ippiThreshold_GTVal_8u_C1R(_src.ptr(), (int)src_step, _dst.ptr(), (int)dst_step, sz, thresh, 0) >= 0)
131 for( i = 0; i <= thresh; i++ )
137 for( i = 0; i <= thresh; i++ )
143 for( i = 0; i <= thresh; i++ )
146 tab[i] = thresh;
149 for( i = 0; i <= thresh; i++ )
155 for( i = 0; i <= thresh; i++ )
168 __m128i thresh_u = _mm_set1_epi8(thresh);
169 __m128i thresh_s = _mm_set1_epi8(thresh ^ 0x80);
289 uint8x16_t v_thresh = vdupq_n_u8(thresh), v_maxval = vdupq_n_u8(maxval);
389 thresh_16s( const Mat& _src, Mat& _dst, short thresh, short maxval, int type )
411 if (tegra::useTegra() && tegra::thresh_16s(_src, _dst, roi.width, roi.height, thresh, maxval, type))
424 if (_src.data == _dst.data && ippiThreshold_GT_16s_C1IR(dst, (int)dst_step*sizeof(dst[0]), sz, thresh) >= 0)
430 if (ippiThreshold_GT_16s_C1R(src, (int)src_step*sizeof(src[0]), dst, (int)dst_step*sizeof(dst[0]), sz, thresh) >= 0)
439 if (_src.data == _dst.data && ippiThreshold_LTVal_16s_C1IR(dst, (int)dst_step*sizeof(dst[0]), sz, thresh + 1, 0) >= 0)
445 if (ippiThreshold_LTVal_16s_C1R(src, (int)src_step*sizeof(src[0]), dst, (int)dst_step*sizeof(dst[0]), sz, thresh+1, 0) >= 0)
454 thresh, 0) >= 0)
460 if (ippiThreshold_GTVal_16s_C1R(src, (int)src_step*sizeof(src[0]), dst, (int)dst_step*sizeof(dst[0]), sz, thresh, 0) >= 0)
481 __m128i thresh8 = _mm_set1_epi16(thresh), maxval8 = _mm_set1_epi16(maxval);
496 int16x8_t v_thresh = vdupq_n_s16(thresh), v_maxval = vdupq_n_s16(maxval);
506 dst[j] = src[j] > thresh ? maxval : 0;
517 __m128i thresh8 = _mm_set1_epi16(thresh), maxval8 = _mm_set1_epi16(maxval);
532 int16x8_t v_thresh = vdupq_n_s16(thresh), v_maxval = vdupq_n_s16(maxval);
542 dst[j] = src[j] <= thresh ? maxval : 0;
553 __m128i thresh8 = _mm_set1_epi16(thresh);
566 int16x8_t v_thresh = vdupq_n_s16(thresh);
573 dst[j] = std::min(src[j], thresh);
584 __m128i thresh8 = _mm_set1_epi16(thresh);
597 int16x8_t v_thresh = vdupq_n_s16(thresh);
610 dst[j] = v > thresh ? v : 0;
622 __m128i thresh8 = _mm_set1_epi16(thresh);
635 int16x8_t v_thresh = vdupq_n_s16(thresh);
647 dst[j] = v <= thresh ? v : 0;
658 thresh_32f( const Mat& _src, Mat& _dst, float thresh, float maxval, int type )
679 if (tegra::useTegra() && tegra::thresh_32f(_src, _dst, roi.width, roi.height, thresh, maxval, type))
690 if (0 <= ippiThreshold_GT_32f_C1R(src, (int)src_step*sizeof(src[0]), dst, (int)dst_step*sizeof(dst[0]), sz, thresh))
698 if (0 <= ippiThreshold_LTVal_32f_C1R(src, (int)src_step*sizeof(src[0]), dst, (int)dst_step*sizeof(dst[0]), sz, thresh+FLT_EPSILON, 0))
706 if (0 <= ippiThreshold_GTVal_32f_C1R(src, (int)src_step*sizeof(src[0]), dst, (int)dst_step*sizeof(dst[0]), sz, thresh, 0))
726 __m128 thresh4 = _mm_set1_ps(thresh), maxval4 = _mm_set1_ps(maxval);
741 float32x4_t v_thresh = vdupq_n_f32(thresh);
753 dst[j] = src[j] > thresh ? maxval : 0;
764 __m128 thresh4 = _mm_set1_ps(thresh), maxval4 = _mm_set1_ps(maxval);
779 float32x4_t v_thresh = vdupq_n_f32(thresh);
791 dst[j] = src[j] <= thresh ? maxval : 0;
802 __m128 thresh4 = _mm_set1_ps(thresh);
815 float32x4_t v_thresh = vdupq_n_f32(thresh);
822 dst[j] = std::min(src[j], thresh);
833 __m128 thresh4 = _mm_set1_ps(thresh);
846 float32x4_t v_thresh = vdupq_n_f32(thresh);
860 dst[j] = v > thresh ? v : 0;
872 __m128 thresh4 = _mm_set1_ps(thresh);
885 float32x4_t v_thresh = vdupq_n_f32(thresh);
898 dst[j] = v <= thresh ? v : 0;
924 Ipp8u thresh;
926 IppStatus ok = ippiComputeThreshold_Otsu_8u_C1R(_src.ptr(), step, srcSize, &thresh);
931 return thresh;
1068 double thresh = left_bound;
1082 thresh = i;
1085 thresh--;
1088 thresh = N-1-thresh;
1090 return thresh;
1101 thresh = _thresh;
1116 thresh_8u( srcStripe, dstStripe, (uchar)thresh, (uchar)maxval, thresholdType );
1120 thresh_16s( srcStripe, dstStripe, (short)thresh, (short)maxval, thresholdType );
1124 thresh_32f( srcStripe, dstStripe, (float)thresh, (float)maxval, thresholdType );
1132 double thresh;
1139 static bool ocl_threshold( InputArray _src, OutputArray _dst, double & thresh, double maxval, int thresh_type )
1167 thresh = cvFloor(thresh);
1173 ocl::KernelArg::Constant(Mat(1, 1, depth, Scalar::all(thresh))),
1186 double cv::threshold( InputArray _src, OutputArray _dst, double thresh, double maxval, int type )
1189 ocl_threshold(_src, _dst, thresh, maxval, type), thresh)
1199 thresh = getThreshVal_Otsu_8u( src );
1204 thresh = getThreshVal_Triangle_8u( src );
1212 int ithresh = cvFloor(thresh);
1213 thresh = ithresh;
1232 return thresh;
1234 thresh = ithresh;
1239 int ithresh = cvFloor(thresh);
1240 thresh = ithresh;
1259 return thresh;
1261 thresh = ithresh;
1270 ThresholdRunner(src, dst, thresh, maxval, type),
1272 return thresh;
1338 cvThreshold( const void* srcarr, void* dstarr, double thresh, double maxval, int type )
1345 thresh = cv::threshold( src, dst, thresh, maxval, type );
1348 return thresh;