guided-filter icon indicating copy to clipboard operation
guided-filter copied to clipboard

Feathering only edges?

Open antithing opened this issue 3 years ago • 1 comments

Hi, and thank you for making this code available! I am trying top use it to clean up edges (as in the feathering example). This works great, but it is also adding grey noise to the rest of the image. Am I doing something wrong?

filter

Using the settings:

           int r = 60;
	  double eps = 1e-6;
	  eps *= 255 * 255;  

	  cv::resize(image, image, cv::Size(1920, 1080));
	  cv::Mat matte = segmentor.Predict(image, "person");
	  cv::Mat q = guidedFilter(image, matte, r, eps);

What can I do to keep the feathering to the edges only?

antithing avatar May 04 '21 12:05 antithing

@antithing Did you manage to find a way forwards on this?

mxjones avatar Apr 06 '22 12:04 mxjones