-
-
Notifications
You must be signed in to change notification settings - Fork 208
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
Add simple temporal smoothing #498
Conversation
@umireon What do you think? |
I will try this change this week |
@umireon perfect! |
I understand that this implements a low-pass filter for matt. |
Sort of, yes, but temporal. Really all it does is linearly blend the last mask with the current one. |
I'm doing z-transformation. Please wait. |
I think the inverse of the current smooth factor value corresponds to the cut-off frequency and thus I suppose the value of the factor of addWeighted should be inverted on the configuration screen and it will work more straightforwardly. |
the way i have it is that 1.0 corresponds to "no temporal filter" everything is taken from the current mask |
It makes sense. Thank you! In addition, the addWeighted operation can be done on GPU shader and it would be more efficient than OpenCV's function. |
i think this cv operation on the CPU is very quick |
@umireon can you approve so i can merge it in? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
To handle some of the flickering that often happens with some models