1 | initial version |
What is the source of flicker? Is it that you get blank frames or there is too much noise? If there is flicker due to noise, you may want to run a median filter or blur filter before erode/dilate.
If you can give more information on the source/type of flicker, you may get better suggestions.