MAX 285 3rdparty/libjpeg/jcmaster.c cinfo->max_h_samp_factor = MAX(cinfo->max_h_samp_factor, MAX 287 3rdparty/libjpeg/jcmaster.c cinfo->max_v_samp_factor = MAX(cinfo->max_v_samp_factor, MAX 594 3rdparty/libjpeg/jcparam.c cinfo->script_space_size = MAX(nscans, 10); MAX 236 3rdparty/libjpeg/jdinput.c cinfo->max_h_samp_factor = MAX(cinfo->max_h_samp_factor, MAX 238 3rdparty/libjpeg/jdinput.c cinfo->max_v_samp_factor = MAX(cinfo->max_v_samp_factor, MAX 390 apps/createsamples/utility.cpp int iy_min = MAX( cvRound(y_min), 0 ) + 1; MAX 399 apps/createsamples/utility.cpp int ix_min = MAX( cvRound( x_min ), 0 ); MAX 749 apps/createsamples/utility.cpp cr.width = (int) (MAX( quad[1][0], quad[2][0] ) + 0.5F ) - cr.x; MAX 750 apps/createsamples/utility.cpp cr.height = (int) (MAX( quad[2][1], quad[3][1] ) + 0.5F ) - cr.y; MAX 767 apps/createsamples/utility.cpp scale = MAX( ((float) cr.width) / bgimg->cols, ((float) cr.height) / bgimg->rows ); MAX 793 apps/createsamples/utility.cpp chartmp = (uchar) MAX( 0, MIN( 255, forecolordev + (*pimg) ) ); MAX 1048 apps/createsamples/utility.cpp reader->scale = MAX( MAX 1663 apps/createsamples/utility.cpp scaled_sample = cvCreateMat( MAX( 1, cvCeil( scale * winheight ) ), MAX 1664 apps/createsamples/utility.cpp MAX( 1, cvCeil( scale * winwidth ) ), MAX 520 apps/traincascade/boost.cpp max_c_count = MAX( 2, featureEvaluator->getMaxCatCount() ); MAX 544 apps/traincascade/boost.cpp int maxSplitSize = cvAlign(sizeof(CvDTreeSplit) + (MAX(0,max_c_count - 33)/32)*sizeof(int),sizeof(void*)); MAX 545 apps/traincascade/boost.cpp int treeBlockSize = MAX((int)sizeof(CvDTreeNode)*8, maxSplitSize); MAX 546 apps/traincascade/boost.cpp treeBlockSize = MAX(treeBlockSize + BlockSizeDelta, MinBlockSize); MAX 585 apps/traincascade/boost.cpp max_c_count = MAX( 2, featureEvaluator->getMaxCatCount() ); MAX 663 apps/traincascade/boost.cpp (MAX(0,sample_count - 33)/32)*sizeof(int),sizeof(void*)); MAX 664 apps/traincascade/boost.cpp int treeBlockSize = MAX((int)sizeof(CvDTreeNode)*8, maxSplitSize); MAX 665 apps/traincascade/boost.cpp treeBlockSize = MAX(treeBlockSize + BlockSizeDelta, MinBlockSize); MAX 670 apps/traincascade/boost.cpp nvSize = cvAlign(MAX( nvSize, (int)sizeof(CvSetElem) ), sizeof(void*)); MAX 672 apps/traincascade/boost.cpp tempBlockSize = MAX( tempBlockSize + BlockSizeDelta, MinBlockSize ); MAX 699 apps/traincascade/boost.cpp (MAX(0,max_c_count - 33)/32)*sizeof(int),sizeof(void*)); MAX 1626 apps/traincascade/boost.cpp w = MAX( w, lbWeightThresh ); MAX 105 apps/traincascade/old_ml.hpp pl.max_val = MAX( min_val, max_val ); MAX 106 apps/traincascade/old_ml.hpp pl.step = MAX( log_step, 1. ); MAX 48 apps/traincascade/old_ml_boost.cpp val = MAX( val, eps ); MAX 245 apps/traincascade/old_ml_boost.cpp node->maxlr = MAX( L, R ); MAX 331 apps/traincascade/old_ml_boost.cpp val = MAX(val, val2); MAX 456 apps/traincascade/old_ml_boost.cpp val = MAX(val, val2); MAX 996 apps/traincascade/old_ml_boost.cpp params.weak_count = MAX( params.weak_count, 1 ); MAX 997 apps/traincascade/old_ml_boost.cpp params.weight_trim_rate = MAX( params.weight_trim_rate, 0. ); MAX 1379 apps/traincascade/old_ml_boost.cpp w = MAX( w, lb_weight_thresh ); MAX 103 apps/traincascade/old_ml_tree.cpp params.min_sample_count = MAX(params.min_sample_count,1); MAX 349 apps/traincascade/old_ml_tree.cpp (MAX(0,sample_count - 33)/32)*sizeof(int),sizeof(void*)); MAX 350 apps/traincascade/old_ml_tree.cpp tree_block_size = MAX((int)sizeof(CvDTreeNode)*8, max_split_size); MAX 351 apps/traincascade/old_ml_tree.cpp tree_block_size = MAX(tree_block_size + block_size_delta, min_block_size); MAX 356 apps/traincascade/old_ml_tree.cpp nv_size = cvAlign(MAX( nv_size, (int)sizeof(CvSetElem) ), sizeof(void*)); MAX 362 apps/traincascade/old_ml_tree.cpp if( sample_count < cv_n*MAX(params.min_sample_count,10) ) MAX 367 apps/traincascade/old_ml_tree.cpp temp_block_size = MAX(temp_block_size, cv_size); MAX 370 apps/traincascade/old_ml_tree.cpp temp_block_size = MAX( temp_block_size + block_size_delta, min_block_size ); MAX 490 apps/traincascade/old_ml_tree.cpp max_c_count = MAX( max_c_count, c_count ); MAX 499 apps/traincascade/old_ml_tree.cpp MAX(cat_map->cols*3/2,total_c_count+c_count), CV_32SC1 )); MAX 639 apps/traincascade/old_ml_tree.cpp cat_map->cols = MAX( total_c_count, 1 ); MAX 642 apps/traincascade/old_ml_tree.cpp (MAX(0,max_c_count - 33)/32)*sizeof(int),sizeof(void*)); MAX 1476 apps/traincascade/old_ml_tree.cpp max_c_count = MAX( max_c_count, val ); MAX 1486 apps/traincascade/old_ml_tree.cpp (MAX(0,max_c_count - 33)/32)*sizeof(int),sizeof(void*)); MAX 1488 apps/traincascade/old_ml_tree.cpp tree_block_size = MAX((int)sizeof(CvDTreeNode)*8, max_split_size); MAX 1489 apps/traincascade/old_ml_tree.cpp tree_block_size = MAX(tree_block_size + block_size_delta, min_block_size); MAX 1875 apps/traincascade/old_ml_tree.cpp node->maxlr = MAX( L, R ); MAX 2479 apps/traincascade/old_ml_tree.cpp sum[i] /= MAX(counts[i],1); MAX 2937 apps/traincascade/old_ml_tree.cpp double r = si/MAX(ci,1); MAX 133 modules/calib3d/src/calibinit.cpp return sum/MAX(n,1); MAX 356 modules/calib3d/src/calibinit.cpp thresh_level = MAX( thresh_level, 10 ); MAX 483 modules/calib3d/src/calibinit.cpp prev_sqr_size = cvRound(sum_dist/MAX(total, 1)); MAX 1372 modules/calib3d/src/calibinit.cpp if( right->count != 3 || out_corner_count >= MAX(pattern_size.width,pattern_size.height) ) MAX 410 modules/calib3d/src/calibration.cpp rx = std::sqrt(MAX(t,0.)); MAX 412 modules/calib3d/src/calibration.cpp ry = std::sqrt(MAX(t,0.))*(R[1] < 0 ? -1. : 1.); MAX 414 modules/calib3d/src/calibration.cpp rz = std::sqrt(MAX(t,0.))*(R[2] < 0 ? -1. : 1.); MAX 952 modules/calib3d/src/calibration.cpp count = MAX(objectPoints->cols, objectPoints->rows); MAX 1028 modules/calib3d/src/calibration.cpp cvScale( &_h1, &_h1, 1./MAX(h1_norm, DBL_EPSILON) ); MAX 1029 modules/calib3d/src/calibration.cpp cvScale( &_h2, &_h2, 1./MAX(h2_norm, DBL_EPSILON) ); MAX 1030 modules/calib3d/src/calibration.cpp cvScale( &_h3, &_t, 2./MAX(h1_norm + h2_norm, DBL_EPSILON)); MAX 1309 modules/calib3d/src/calibration.cpp maxPoints = MAX( maxPoints, ni ); MAX 1673 modules/calib3d/src/calibration.cpp maxPoints = MAX(maxPoints, npoints->data.i[i]); MAX 2122 modules/calib3d/src/calibration.cpp oX1 = MAX(oX1, p.x); MAX 2124 modules/calib3d/src/calibration.cpp oY1 = MAX(oY1, p.y); MAX 2127 modules/calib3d/src/calibration.cpp iX0 = MAX(iX0, p.x); MAX 2131 modules/calib3d/src/calibration.cpp iY0 = MAX(iY0, p.y); MAX 2533 modules/calib3d/src/calibration.cpp double d = MAX(std::sqrt(e2[0]*e2[0] + e2[1]*e2[1]),DBL_EPSILON); MAX 69 modules/calib3d/src/checkchessboard.cpp float box_size = MAX(box.size.width, box.size.height); MAX 75 modules/calib3d/src/checkchessboard.cpp float aspect_ratio = box.size.width/MAX(box.size.height, 1); MAX 109 modules/calib3d/src/compat_ptsetreg.cpp criteria.max_iter = MIN(MAX(criteria.max_iter,1),1000); MAX 113 modules/calib3d/src/compat_ptsetreg.cpp criteria.epsilon = MAX(criteria.epsilon, 0); MAX 175 modules/calib3d/src/compat_ptsetreg.cpp lambdaLg10 = MAX(lambdaLg10-1, -16); MAX 244 modules/calib3d/src/compat_ptsetreg.cpp lambdaLg10 = MAX(lambdaLg10-1, -16); MAX 824 modules/calib3d/src/fundam.cpp int ltype = CV_MAKETYPE(MAX(depth, CV_32F), 3); MAX 176 modules/calib3d/src/posit.cpp diff = MAX( diff, (float) fabs( imgVectors[i] - old )); MAX 181 modules/calib3d/src/posit.cpp diff = MAX( diff, (float) fabs( imgVectors[N + i] - old )); MAX 58 modules/calib3d/src/ptsetreg.cpp p = MAX(p, 0.); MAX 60 modules/calib3d/src/ptsetreg.cpp ep = MAX(ep, 0.); MAX 64 modules/calib3d/src/ptsetreg.cpp double num = MAX(1. - p, DBL_MIN); MAX 170 modules/calib3d/src/ptsetreg.cpp int iter, niters = MAX(maxIters, 1); MAX 232 modules/calib3d/src/ptsetreg.cpp if( goodCount > MAX(maxGoodCount, modelPoints-1) ) MAX 315 modules/calib3d/src/ptsetreg.cpp niters = MAX(niters, 3); MAX 363 modules/calib3d/src/ptsetreg.cpp sigma = MAX( sigma, 0.001 ); MAX 137 modules/calib3d/src/stereobm.cpp const uchar* top = sptr + srcstep*MAX(y-wsz2-1,0); MAX 139 modules/calib3d/src/stereobm.cpp const uchar* prev = sptr + srcstep*MAX(y-1,0); MAX 329 modules/calib3d/src/stereobm.cpp int lofs = MAX(ndisp - 1 + mindisp, 0); MAX 369 modules/calib3d/src/stereobm.cpp lptr = lptr0 + MIN(MAX(x, -lofs), width-lofs-1) - dy0*sstep; MAX 370 modules/calib3d/src/stereobm.cpp rptr = rptr0 + MIN(MAX(x, -rofs), width-rofs-1) - dy0*sstep; MAX 409 modules/calib3d/src/stereobm.cpp lptr_sub = lptr0 + MIN(MAX(x0, -lofs), width-1-lofs) - dy0*sstep; MAX 410 modules/calib3d/src/stereobm.cpp lptr = lptr0 + MIN(MAX(x1, -lofs), width-1-lofs) - dy0*sstep; MAX 411 modules/calib3d/src/stereobm.cpp rptr = rptr0 + MIN(MAX(x1, -rofs), width-1-rofs) - dy0*sstep; MAX 468 modules/calib3d/src/stereobm.cpp hsad_sub = hsad0 + MAX(y - wsz2 - 1, -dy0)*ndisp; MAX 579 modules/calib3d/src/stereobm.cpp int lofs = MAX(ndisp - 1 + mindisp, 0); MAX 675 modules/calib3d/src/stereobm.cpp lptr_sub = lptr0 + MIN(MAX(x0, -lofs), width-1-lofs) - dy0*sstep; MAX 676 modules/calib3d/src/stereobm.cpp lptr = lptr0 + MIN(MAX(x1, -lofs), width-1-lofs) - dy0*sstep; MAX 677 modules/calib3d/src/stereobm.cpp rptr = rptr0 + MIN(MAX(x1, -rofs), width-1-rofs) - dy0*sstep; MAX 750 modules/calib3d/src/stereobm.cpp hsad_sub = hsad0 + MAX(y - wsz2 - 1, -dy0)*ndisp; MAX 117 modules/calib3d/test/test_chesscorners.cpp dx = MAX( dx, dy ); MAX 278 modules/calib3d/test/test_chesscorners.cpp max_rough_error = MAX( max_rough_error, err ); MAX 298 modules/calib3d/test/test_chesscorners.cpp max_precise_error = MAX( max_precise_error, err ); MAX 843 modules/calib3d/test/test_fundam.cpp pt_count = MAX( pt_count, 8 + (method == CV_FM_8POINT) ); MAX 981 modules/calib3d/test/test_fundam.cpp f_result = cvFindFundamentalMat( &_input0, &_input1, &F, method, MAX(sigma*3, 0.01), 0, &mask ); MAX 1133 modules/calib3d/test/test_fundam.cpp int pt_count = MAX(5, cvRound(exp(pt_count_exp))); MAX 1285 modules/calib3d/test/test_fundam.cpp E = cv::findEssentialMat( _input0, _input1, focal, pp, method, 0.99, MAX(sigma*3, 0.0001), mask1 ); MAX 1465 modules/calib3d/test/test_fundam.cpp pt_count = MAX( pt_count, 5 ); MAX 1602 modules/calib3d/test/test_fundam.cpp pt_count = MAX( pt_count, 1 ); MAX 106 modules/calib3d/test/test_undistort.cpp double sz = MAX(img_size.width, img_size.height); MAX 291 modules/calib3d/test/test_undistort.cpp double sz = MAX(img_size.width,img_size.height); MAX 715 modules/calib3d/test/test_undistort.cpp double sz = MAX(img_size.width,img_size.height); MAX 183 modules/core/include/opencv2/core/cvdef.h #ifndef MAX MAX 41 modules/core/perf/perf_math.cpp N0 = rng.uniform(1, MAX(N/10, 2)); MAX 1793 modules/core/src/arithm.cpp maxval = MAX(maxval, ival); MAX 559 modules/core/src/array.cpp CvSparseMat* arr = (CvSparseMat*)cvAlloc(sizeof(*arr)+MAX(0,dims-CV_MAX_DIM)*sizeof(arr->size[0])); MAX 702 modules/core/src/array.cpp int newsize = MAX( mat->hashsize*2, CV_SPARSE_HASH_SIZE0); MAX 2954 modules/core/src/array.cpp image->nChannels = MAX( channels, 1 ); MAX 3188 modules/core/src/array.cpp crit.epsilon = (float)MAX( 0, crit.epsilon ); MAX 3189 modules/core/src/array.cpp crit.max_iter = MAX( 1, crit.max_iter ); MAX 129 modules/core/src/conjugate_gradient.cpp int ndim=MAX(x_mat.rows,x_mat.cols); MAX 168 modules/core/src/conjugate_gradient.cpp double beta=MAX(0.0,(r_norm_sq-r.dot(r_old))/r_norm_sq); MAX 6079 modules/core/src/convert.cpp double dmin = MIN( a, b ), dmax = MAX( a, b ); MAX 425 modules/core/src/datastructs.cpp delta_elements = MAX( delta_elements, 1 ); MAX 672 modules/core/src/datastructs.cpp int small_block_size = MAX(1, delta_elems/3)*elem_size + MAX 432 modules/core/src/gl_core_3_1.hpp MAX = 0x8008, MAX 431 modules/core/src/kmeans.cpp if( ++iter == MAX(criteria.maxCount, 2) || max_center_shift <= criteria.epsilon ) MAX 148 modules/core/src/parallel.cpp nstripes = cvRound(_nstripes <= 0 ? len : MIN(MAX(_nstripes, 1.), len)); MAX 266 modules/core/src/parallel.cpp parallel(MAX(0, numThreads)) MAX 465 modules/core/src/persistence.cpp new_size = MAX( written_len + len, new_size ); MAX 2872 modules/core/src/persistence.cpp buf_size = MAX( buf_size, (size_t)(CV_FS_MAX_LEN*2 + 1024) ); MAX 4475 modules/core/src/persistence.cpp write_buf_size = MAX( 3*graph->elem_size, 1 << 16 ); MAX 4476 modules/core/src/persistence.cpp write_buf_size = MAX( 3*graph->edges->elem_size, write_buf_size ); MAX 4671 modules/core/src/persistence.cpp read_buf_size = MAX( src_vtx_size*3, 1 << 16 ); MAX 4672 modules/core/src/persistence.cpp read_buf_size = MAX( src_edge_size*3, read_buf_size ); MAX 4693 modules/core/src/persistence.cpp int read_max = read_buf_size /MAX(src_elem_size, 1), read_count = 0; MAX 621 modules/core/src/rand.cpp _parambuf.allocate(MAX(n1, cn) + MAX(n2, cn)); MAX 49 modules/core/test/test_downhill_simplex.cpp int ndim=MAX(step.cols,step.rows); MAX 145 modules/core/test/test_ds.cpp set_header->count = MAX( set_header->count, idx + 1 ); MAX 543 modules/core/test/test_ds.cpp Mat m( 1, MAX(sseq->count,1)*elem_size, CV_8UC1, sseq->array ); MAX 738 modules/core/test/test_ds.cpp max_elem_size = MAX( max_elem_size, ((CvSeq*)cxcore_struct[i])->elem_size ); MAX 842 modules/core/test/test_ds.cpp elem_mat = Mat(1, MAX(count,1) * elem_size, CV_8U, elem); MAX 867 modules/core/test/test_ds.cpp pos = count > 0 ? (int)(cvtest::randInt(rng) % count + pos) : MAX(pos-1,0); MAX 1012 modules/core/test/test_ds.cpp if( test_get_seq_elem( i, MAX(iterations/3,7) ) < 0 ) MAX 1015 modules/core/test/test_ds.cpp if( test_get_seq_reading( i, MAX(iterations/3,7) ) < 0 ) MAX 1099 modules/core/test/test_ds.cpp max_size = MAX( max_size, sseq->count*sseq->elem_size ); MAX 1242 modules/core/test/test_ds.cpp max_elem_size = MAX( max_elem_size, ((CvSeq*)cxcore_struct[i])->elem_size ); MAX 1393 modules/core/test/test_ds.cpp elem_size = MAX( elem_size, (int)sizeof(CvSetElem) ); MAX 1456 modules/core/test/test_ds.cpp max_elem_size = MAX( max_elem_size, graph->elem_size ); MAX 1457 modules/core/test/test_ds.cpp max_elem_size = MAX( max_elem_size, graph->edges->elem_size ); MAX 1810 modules/core/test/test_ds.cpp block_size = MAX(block_size, (int)(sizeof(CvGraph) + sizeof(CvMemBlock) + sizeof(CvSeqBlock))); MAX 1878 modules/core/test/test_ds.cpp int edge_count = cvtest::randInt(rng) % MAX(vtx_count*20, 1); MAX 1927 modules/core/test/test_ds.cpp storage_blocksize = MAX(storage_blocksize, (int)(sizeof(CvGraph) + sizeof(CvMemBlock) + sizeof(CvSeqBlock))); MAX 1928 modules/core/test/test_ds.cpp storage_blocksize = MAX(storage_blocksize, (int)(sizeof(CvGraphEdge) + sizeof(CvMemBlock) + sizeof(CvSeqBlock))); MAX 1929 modules/core/test/test_ds.cpp storage_blocksize = MAX(storage_blocksize, (int)(sizeof(CvGraphVtx) + sizeof(CvMemBlock) + sizeof(CvSeqBlock))); MAX 1950 modules/core/test/test_ds.cpp vtx_count = MAX( vtx_count, edges[i][0] ); MAX 1951 modules/core/test/test_ds.cpp vtx_count = MAX( vtx_count, edges[i][1] ); MAX 566 modules/core/test/test_dxt.cpp size.width = MAX(size.width, 1); MAX 568 modules/core/test/test_dxt.cpp size.height = MAX(size.height, 1); MAX 428 modules/core/test/test_math.cpp return MAX(input_precision, output_precision); MAX 741 modules/core/test/test_math.cpp dst_type = MAX( dst_type, src_type ); MAX 1185 modules/core/test/test_math.cpp count = MAX(count, min_count); MAX 1192 modules/core/test/test_math.cpp count = MAX(count, min_count); MAX 1921 modules/core/test/test_math.cpp return MAX(input_precision, output_precision); MAX 2658 modules/core/test/test_math.cpp N0 = rng.uniform(1, MAX(N/10, 2)); MAX 150 modules/core/test/test_rand.cpp int mindiv = MAX(vrange/20, 5); MAX 130 modules/features2d/src/draw.cpp Size size( img1size.width + img2size.width, MAX(img1size.height, img2size.height) ); MAX 293 modules/highgui/src/window_carbon.cpp width = MAX(MAX(window->image->width, width), minWidth); MAX 1343 modules/highgui/src/window_w32.cpp minmax->ptMinTrackSize.x = MAX(rect.right - rect.left + HG_BUDDY_WIDTH, HG_BUDDY_WIDTH*2); MAX 1429 modules/highgui/src/window_w32.cpp window->on_mouse( event, pt.x*size.cx/MAX(rect.right - rect.left,1), MAX 1430 modules/highgui/src/window_w32.cpp pt.y*size.cy/MAX(rect.bottom - rect.top,1), flags, MAX 1621 modules/highgui/src/window_w32.cpp window->on_mouse( event, pt.x*size.cx/MAX(rect.right - rect.left,1), MAX 1622 modules/highgui/src/window_w32.cpp pt.y*size.cy/MAX(rect.bottom - rect.top,1), flags, MAX 501 modules/imgcodecs/src/grfmt_exr.cpp ((unsigned *)data)[y * step + x * 3 + 0] = (unsigned)MAX(t, 0); MAX 503 modules/imgcodecs/src/grfmt_exr.cpp ((unsigned *)data)[y * step + x * 3 + 1] = (unsigned)MAX(t, 0); MAX 505 modules/imgcodecs/src/grfmt_exr.cpp ((unsigned *)data)[y * step + x * 3 + 2] = (unsigned)MAX(t, 0); MAX 612 modules/imgcodecs/src/grfmt_jpeg.cpp quality = MIN(MAX(quality, 0), 100); MAX 629 modules/imgcodecs/src/grfmt_jpeg.cpp luma_quality = MIN(MAX(params[i+1], 0), 100); MAX 644 modules/imgcodecs/src/grfmt_jpeg.cpp chroma_quality = MIN(MAX(params[i+1], 0), 100); MAX 651 modules/imgcodecs/src/grfmt_jpeg.cpp rst_interval = MIN(MAX(rst_interval, 0), 65535L); MAX 133 modules/imgcodecs/src/grfmt_jpeg2000.cpp depth = MAX(depth, depth_i); MAX 302 modules/imgcodecs/src/grfmt_jpeg2000.cpp int lshift = MAX(0, -rshift); MAX 303 modules/imgcodecs/src/grfmt_jpeg2000.cpp rshift = MAX(0, rshift); MAX 366 modules/imgcodecs/src/grfmt_jpeg2000.cpp int lshift = MAX(0, -rshift); MAX 367 modules/imgcodecs/src/grfmt_jpeg2000.cpp rshift = MAX(0, rshift); MAX 383 modules/imgcodecs/src/grfmt_png.cpp compression_level = MIN(MAX(compression_level, 0), Z_BEST_COMPRESSION); MAX 388 modules/imgcodecs/src/grfmt_png.cpp compression_strategy = MIN(MAX(compression_strategy, 0), Z_FIXED); MAX 96 modules/imgproc/src/connectedcomponents.cpp row[CC_STAT_WIDTH] = MAX(row[CC_STAT_WIDTH], c); MAX 98 modules/imgproc/src/connectedcomponents.cpp row[CC_STAT_HEIGHT] = MAX(row[CC_STAT_HEIGHT], r); MAX 50 modules/imgproc/src/cornersubpix.cpp int max_iters = (criteria.type & CV_TERMCRIT_ITER) ? MIN(MAX(criteria.maxCount, 1), MAX_ITERS) : MAX_ITERS; MAX 51 modules/imgproc/src/cornersubpix.cpp double eps = (criteria.type & CV_TERMCRIT_EPS) ? MAX(criteria.epsilon, 0.) : 0; MAX 1061 modules/imgproc/src/demosaicing.cpp int T = minGrad + MAX(maxGrad/2, 1); MAX 1133 modules/imgproc/src/demosaicing.cpp int T = minGrad + MAX(maxGrad/2, 1); MAX 2388 modules/imgproc/src/drawing.cpp maxLevel = MAX(maxLevel, INT_MIN+2); MAX 511 modules/imgproc/src/floodfill.cpp size_t buffer_size = MAX( size.width, size.height ) * 2; MAX 3025 modules/imgproc/src/histogram.cpp result = sqrt(MAX(result,0.)); MAX 1026 modules/imgproc/src/hough.cpp cvCanny( img, edges, MAX(canny_threshold/2,1), canny_threshold, 3 ); MAX 1122 modules/imgproc/src/hough.cpp sort_buf.resize( MAX(center_count,nz_count) ); MAX 1134 modules/imgproc/src/hough.cpp min_dist = MAX( min_dist, dp ); MAX 1248 modules/imgproc/src/hough.cpp min_radius = MAX( min_radius, 0 ); MAX 1250 modules/imgproc/src/hough.cpp max_radius = MAX( img->rows, img->cols ); MAX 5233 modules/imgproc/src/imgwarp.cpp const int AB_BITS = MAX(10, (int)INTER_BITS); MAX 5606 modules/imgproc/src/imgwarp.cpp const int AB_BITS = MAX(10, (int)INTER_BITS); MAX 193 modules/imgproc/src/linefit.cpp n = (float)MAX(n, eps); MAX 257 modules/imgproc/src/linefit.cpp w[i] = (float)(1. / MAX(t, eps)); MAX 393 modules/imgproc/src/linefit.cpp t = MAX(t,-1.); MAX 528 modules/imgproc/src/linefit.cpp t = MAX(t,-1.); MAX 239 modules/imgproc/src/samplers.cpp a = MAX(a,0.0001f); MAX 71 modules/imgproc/src/segmentation.cpp int newsz = MAX(128, sz*3/2); MAX 359 modules/imgproc/src/segmentation.cpp int isr2 = cvRound(sr2), isr22 = MAX(isr2,16); MAX 374 modules/imgproc/src/segmentation.cpp termcrit.maxCount = MAX(termcrit.maxCount,1); MAX 378 modules/imgproc/src/segmentation.cpp termcrit.epsilon = MAX(termcrit.epsilon, 0.f); MAX 411 modules/imgproc/src/segmentation.cpp sp = MAX( sp, 1 ); MAX 467 modules/imgproc/src/segmentation.cpp minx = cvRound(x0 - sp); minx = MAX(minx, 0); MAX 468 modules/imgproc/src/segmentation.cpp miny = cvRound(y0 - sp); miny = MAX(miny, 0); MAX 284 modules/imgproc/src/shapedescr.cpp radius = MAX(radius, t); MAX 648 modules/imgproc/src/shapedescr.cpp k_min = MAX(j-1, xmax); MAX 1933 modules/imgproc/src/smooth.cpp histogram_sub_simd( &h_fine[16*(n*(16*c+k)+MAX(luc[c][k]-2*r-1,0))], H[c].fine[k] ); MAX 1938 modules/imgproc/src/smooth.cpp histogram_sub_simd( &h_coarse[16*(n*c+MAX(j-r,0))], H[c].coarse ); MAX 1996 modules/imgproc/src/smooth.cpp histogram_sub( &h_fine[16*(n*(16*c+k)+MAX(luc[c][k]-2*r-1,0))], H[c].fine[k] ); MAX 2001 modules/imgproc/src/smooth.cpp histogram_sub( &h_coarse[16*(n*c+MAX(j-r,0))], H[c].coarse ); MAX 2992 modules/imgproc/src/smooth.cpp radius = MAX(radius, 1); MAX 3080 modules/imgproc/src/smooth.cpp radius = MAX(radius, 1); MAX 3346 modules/imgproc/src/smooth.cpp radius = MAX(radius, 1); MAX 488 modules/imgproc/src/subdivision2d.cpp float big_coord = 3.f * MAX( rect.width, rect.height ); MAX 1065 modules/imgproc/src/templmatch.cpp num = MAX(num, 0.); MAX 1071 modules/imgproc/src/templmatch.cpp t = std::sqrt(MAX(wndSum2 - wndMean2,0))*templNorm; MAX 153 modules/imgproc/test/test_approxpoly.cpp max_x = MAX( max_x, pt.x ); MAX 154 modules/imgproc/test/test_approxpoly.cpp max_y = MAX( max_y, pt.y ); MAX 127 modules/imgproc/test/test_bilateral_filter.cpp radius = MAX(radius, 1); MAX 169 modules/imgproc/test/test_canny.cpp float highThreshold = (float)MAX(threshold1, threshold2); MAX 275 modules/imgproc/test/test_canny.cpp err = (err/255/MAX(nz0,100))*100; MAX 649 modules/imgproc/test/test_color.cpp float v = MAX(r,g); MAX 652 modules/imgproc/test/test_color.cpp v = MAX(v,b); MAX 774 modules/imgproc/test/test_color.cpp float v = MAX(r,g); MAX 777 modules/imgproc/test/test_color.cpp v = MAX(v,b); MAX 724 modules/imgproc/test/test_convhull.cpp if( fabs(d0 - d1) + fabs(x0 - x1) + fabs(y0 - y1) > eps*MAX(d0,d1) ) MAX 1167 modules/imgproc/test/test_convhull.cpp box0.size.width = (float)(MAX(high.val[0] - low.val[0], min_ellipse_size)*2); MAX 1168 modules/imgproc/test/test_convhull.cpp box0.size.height = (float)(MAX(high.val[1] - low.val[1], min_ellipse_size)*2); MAX 1228 modules/imgproc/test/test_convhull.cpp min_log_size = MAX(min_log_size,4); MAX 1229 modules/imgproc/test/test_convhull.cpp max_log_size = MAX(min_log_size,max_log_size); MAX 1378 modules/imgproc/test/test_convhull.cpp int height = (int)(MAX(high.val[0] - low.val[0], min_ellipse_size)); MAX 1379 modules/imgproc/test/test_convhull.cpp int width = (int)(MAX(high.val[1] - low.val[1], min_ellipse_size)); MAX 1526 modules/imgproc/test/test_convhull.cpp min_log_size = MAX(min_log_size,5); MAX 1527 modules/imgproc/test/test_convhull.cpp max_log_size = MAX(min_log_size,max_log_size); MAX 1606 modules/imgproc/test/test_convhull.cpp if( sqrt(vec_diff) > 1*MAX(fabs(t),1) ) MAX 1736 modules/imgproc/test/test_convhull.cpp max_sz = MAX(axes.width, axes.height); MAX 1758 modules/imgproc/test/test_convhull.cpp min_log_size = MAX(min_log_size,3); MAX 1760 modules/imgproc/test/test_convhull.cpp max_log_size = MAX(min_log_size,max_log_size); MAX 1797 modules/imgproc/test/test_convhull.cpp max_v0 = MAX(max_v0, t); MAX 113 modules/imgproc/test/test_distancetransform.cpp return dist_type == CV_DIST_C || dist_type == CV_DIST_L1 ? 0 : 0.01*MAX(sz.width, sz.height); MAX 1072 modules/imgproc/test/test_filter.cpp sz.width = MAX( sizes[INPUT][0].width/2, 1 ); MAX 1073 modules/imgproc/test/test_filter.cpp sz.height = MAX( sizes[INPUT][0].height/2, 1 ); MAX 1285 modules/imgproc/test/test_filter.cpp sizes[INPUT][0].width = MAX( sizes[INPUT][0].width, asz + block_size ); MAX 1286 modules/imgproc/test/test_filter.cpp sizes[INPUT][0].height = MAX( sizes[INPUT][0].height, asz + block_size ); MAX 225 modules/imgproc/test/test_histograms.cpp delta = MAX(delta, 1.); MAX 263 modules/imgproc/test/test_histograms.cpp nz_count = cvtest::randInt(rng) % MAX( totalSize/4, 100 ); MAX 377 modules/imgproc/test/test_histograms.cpp iters = (cvtest::randInt(rng) % MAX(total_size/10,100)) + 1; MAX 1083 modules/imgproc/test/test_histograms.cpp result0[CV_COMP_BHATTACHARYYA] = sqrt(MAX(s0,0.)); MAX 1103 modules/imgproc/test/test_histograms.cpp else if( fabs(v0 - v) > FLT_EPSILON*14*MAX(fabs(v0),0.1) ) MAX 240 modules/imgproc/test/test_imgwarp.cpp sz.width = MAX(sz.width,1); MAX 242 modules/imgproc/test/test_imgwarp.cpp sz.height = MAX(sz.height,1); MAX 361 modules/imgproc/test/test_imgwarp.cpp scols = MAX(scols - 3, 0); MAX 362 modules/imgproc/test/test_imgwarp.cpp srows = MAX(srows - 3, 0); MAX 365 modules/imgproc/test/test_imgwarp.cpp int scols1 = MAX(scols - 2, 0); MAX 366 modules/imgproc/test/test_imgwarp.cpp int srows1 = MAX(srows - 2, 0); MAX 759 modules/imgproc/test/test_imgwarp.cpp double sz = MAX(src.rows, src.cols); MAX 892 modules/imgproc/test/test_imgwarp.cpp double sz = MAX(src.rows, src.cols); MAX 1012 modules/imgproc/test/test_imgwarp.cpp sz.width = MAX(sz.width,16); MAX 1013 modules/imgproc/test/test_imgwarp.cpp sz.height = MAX(sz.height,16); MAX 1049 modules/imgproc/test/test_imgwarp.cpp double sz = MAX(mapx.rows, mapx.cols); MAX 1285 modules/imgproc/test/test_imgwarp.cpp sz.width = MAX(sz.width,min_size); MAX 1286 modules/imgproc/test/test_imgwarp.cpp sz.height = MAX(sz.height,min_size); MAX 1294 modules/imgproc/test/test_imgwarp.cpp dsz.width = MAX(dsz.width,min_size); MAX 1295 modules/imgproc/test/test_imgwarp.cpp dsz.height = MAX(dsz.height,min_size); MAX 1522 modules/imgproc/test/test_imgwarp.cpp int rmin = MAX(dy - radius, 0), rmax = MIN(dy + radius, dsize.height); MAX 1523 modules/imgproc/test/test_imgwarp.cpp int cmin = MAX(dx - radius, 0), cmax = MIN(dx + radius, dsize.width); MAX 306 modules/imgproc/test/test_imgwarp_strict.cpp int rmin = MAX(dy - radius, 0), rmax = MIN(dy + radius, dsize.height); MAX 307 modules/imgproc/test/test_imgwarp_strict.cpp int cmin = MAX(dx / cn - radius, 0), cmax = MIN(dx / cn + radius, dsize.width); MAX 1075 modules/imgproc/test/test_imgwarp_strict.cpp const int AB_BITS = MAX(10, (int)INTER_BITS); MAX 138 modules/imgproc/test/test_moments.cpp sizes[INPUT][0].width = MAX(sizes[INPUT][0].width, 3); MAX 295 modules/imgproc/test/test_templmatch.cpp denom = sqrt(MAX(denom,0))*b_denom; MAX 712 modules/ml/src/svm.cpp double delta = (-G[i]-G[j])/MAX(fabs(denom),FLT_EPSILON); MAX 742 modules/ml/src/svm.cpp double delta = (G[i]-G[j])/MAX(fabs(denom),FLT_EPSILON); MAX 870 modules/ml/src/svm.cpp lb = MAX(lb,yG); MAX 877 modules/ml/src/svm.cpp lb = MAX(lb,yG); MAX 943 modules/ml/src/svm.cpp if( MAX(Gmax1 + Gmax2, Gmax3 + Gmax4) < eps ) MAX 978 modules/ml/src/svm.cpp lb1 = MAX( lb1, G_i ); MAX 990 modules/ml/src/svm.cpp lb2 = MAX( lb2, G_i ); MAX 226 modules/objdetect/src/haar.cpp max_count = MAX( max_count, stage_classifier->count ); MAX 45 modules/photo/src/denoise_tvl1.cpp #define ABSCLIP(val,threshold) MIN(MAX((val),-(threshold)),(threshold)) MAX 756 modules/photo/src/inpaint.cpp range = MAX(range,1); MAX 1988 modules/ts/src/ts_func.cpp maxval = MAX(maxval, 1.); MAX 2079 modules/ts/src/ts_func.cpp *_realmaxdiff = MAX(*_realmaxdiff, realmaxdiff); MAX 82 modules/video/src/bgfg_KNN.cpp nkNN=MAX(1,cvRound(0.1*nN*3+0.40)); MAX 107 modules/video/src/bgfg_KNN.cpp nkNN=MAX(1,cvRound(0.1*nN*3+0.40)); MAX 545 modules/video/src/bgfg_gaussmix2.cpp varMax = MAX(_varMin, _varMax); MAX 643 modules/video/src/bgfg_gaussmix2.cpp varnew = MAX(varnew, varMin); MAX 765 modules/video/src/bgfg_gaussmix2.cpp float varMax = MAX(fVarMin, fVarMax); MAX 184 modules/video/src/camshift.cpp t0 = MAX( t0, t1 ) + 2; MAX 190 modules/video/src/camshift.cpp t0 = MAX( t0, t1 ) + 2; MAX 193 modules/video/src/camshift.cpp window.x = MAX( 0, _xc - window.width / 2 ); MAX 194 modules/video/src/camshift.cpp window.y = MAX( 0, _yc - window.height / 2 ); MAX 81 modules/video/test/test_accum.cpp accdepth = MAX(accdepth, depth); MAX 171 modules/video/test/test_camshift.cpp m = MAX( box0.size.width, box0.size.height ); MAX 241 modules/video/test/test_camshift.cpp m = MAX(box0.size.width,box0.size.height)*0.8; MAX 273 modules/video/test/test_camshift.cpp double m = MAX(box0.size.width, box0.size.height), delta; MAX 440 modules/video/test/test_camshift.cpp double m = MAX(box0.size.width, box0.size.height), delta; MAX 835 modules/videoio/src/cap_dc1394.cpp val = (int)MIN(maxval, MAX((unsigned)val, minval)); MAX 125 samples/cpp/camshiftdemo.cpp Scalar(180, 256, MAX(_vmin, _vmax)), mask); MAX 58 samples/cpp/drawing.cpp rectangle( image, pt1, pt2, randomColor(rng), MAX(thickness, -1), lineType ); MAX 82 samples/cpp/fitellipse.cpp if( MAX(box.size.width, box.size.height) > MIN(box.size.width, box.size.height)*30 ) MAX 241 samples/cpp/smiledetect.cpp max_neighbors = MAX(max_neighbors, smile_neighbors); MAX 114 samples/cpp/squares.cpp maxCosine = MAX(maxCosine, cosine); MAX 124 samples/cpp/stereo_calib.cpp double sf = 640./MAX(img.rows, img.cols); MAX 287 samples/cpp/stereo_calib.cpp sf = 600./MAX(imageSize.width, imageSize.height); MAX 294 samples/cpp/stereo_calib.cpp sf = 300./MAX(imageSize.width, imageSize.height); MAX 61 samples/cpp/tutorial_code/Histograms_Matching/calcBackProject_Demo1.cpp int histSize = MAX( bins, 2 ); MAX 144 samples/cpp/tutorial_code/core/Matrix/Drawing_2.cpp rectangle( image, pt1, pt2, randomColor(rng), MAX( thickness, -1 ), lineType ); MAX 101 samples/tapi/squares.cpp maxCosine = MAX(maxCosine, cosine);