Lines Matching defs:smooth
87 SmoothContext *smooth = ocv->priv;
90 smooth->param1 = 3;
91 smooth->param2 = 0;
92 smooth->param3 = 0.0;
93 smooth->param4 = 0.0;
96 sscanf(args, "%127[^:]:%d:%d:%lf:%lf", type_str, &smooth->param1, &smooth->param2, &smooth->param3, &smooth->param4);
98 if (!strcmp(type_str, "blur" )) smooth->type = CV_BLUR;
99 else if (!strcmp(type_str, "blur_no_scale")) smooth->type = CV_BLUR_NO_SCALE;
100 else if (!strcmp(type_str, "median" )) smooth->type = CV_MEDIAN;
101 else if (!strcmp(type_str, "gaussian" )) smooth->type = CV_GAUSSIAN;
102 else if (!strcmp(type_str, "bilateral" )) smooth->type = CV_BILATERAL;
108 if (smooth->param1 < 0 || !(smooth->param1%2)) {
111 smooth->param1);
114 if ((smooth->type == CV_BLUR || smooth->type == CV_BLUR_NO_SCALE || smooth->type == CV_GAUSSIAN) &&
115 (smooth->param2 < 0 || (smooth->param2 && !(smooth->param2%2)))) {
118 smooth->param2);
123 type_str, smooth->param1, smooth->param2, smooth->param3, smooth->param4);
130 SmoothContext *smooth = ocv->priv;
131 cvSmooth(inimg, outimg, smooth->type, smooth->param1, smooth->param2, smooth->param3, smooth->param4);
312 { "smooth", sizeof(SmoothContext), smooth_init, NULL, smooth_end_frame_filter },