Lines Matching defs:smooth
90 SmoothContext *smooth = s->priv;
93 smooth->param1 = 3;
94 smooth->param2 = 0;
95 smooth->param3 = 0.0;
96 smooth->param4 = 0.0;
99 sscanf(args, "%127[^|]|%d|%d|%lf|%lf", type_str, &smooth->param1, &smooth->param2, &smooth->param3, &smooth->param4);
101 if (!strcmp(type_str, "blur" )) smooth->type = CV_BLUR;
102 else if (!strcmp(type_str, "blur_no_scale")) smooth->type = CV_BLUR_NO_SCALE;
103 else if (!strcmp(type_str, "median" )) smooth->type = CV_MEDIAN;
104 else if (!strcmp(type_str, "gaussian" )) smooth->type = CV_GAUSSIAN;
105 else if (!strcmp(type_str, "bilateral" )) smooth->type = CV_BILATERAL;
111 if (smooth->param1 < 0 || !(smooth->param1%2)) {
114 smooth->param1);
117 if ((smooth->type == CV_BLUR || smooth->type == CV_BLUR_NO_SCALE || smooth->type == CV_GAUSSIAN) &&
118 (smooth->param2 < 0 || (smooth->param2 && !(smooth->param2%2)))) {
121 smooth->param2);
126 type_str, smooth->param1, smooth->param2, smooth->param3, smooth->param4);
133 SmoothContext *smooth = s->priv;
134 cvSmooth(inimg, outimg, smooth->type, smooth->param1, smooth->param2, smooth->param3, smooth->param4);
316 { "smooth", sizeof(SmoothContext), smooth_init, NULL, smooth_end_frame_filter },