Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feathering only edges? #4

Open
antithing opened this issue May 4, 2021 · 1 comment
Open

Feathering only edges? #4

antithing opened this issue May 4, 2021 · 1 comment

Comments

@antithing
Copy link

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?

@mxjones
Copy link

mxjones commented Apr 6, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants