Feature request: Add Median filter #814
Comments
Referring to gitter talk witn @antonfirsov i take that issue. I will start implementing it in february |
@michasacuer great news! Thanks! |
Just in case it helps (probably not, but I don't think it can hurt to mention it) I was recently working on basic median filtering, i.e. simply taking the median of a square window. You can see the most up-to-date version of the fastest program I came up with here - feel free to look at everything else in the repo, but I think that'll be by far the most useful part of it. It is written in F# though, so might not be of as much use to you. Moreover, I have undoubtedly done something silly, or somehow not used ImageSharp effectively. I also didn't get around to implementing more interesting types of median filters. Based on some quick profiling of my program, it appears to spend about 60% of its time in the I hope that this helps EDIT: Just remembered something else that might be of interest: I created a Golang version of the F# program to have a quick comparison (hidden away elsewhere in that repo). When running them both sequentially, the Golang version runs about 1.75x faster, though I never could determine exactly why that should be the case. .NET provides a much easier way to parallelise array operations however (I literally just need to change |
Thanks for help! I will start to implementing this after my exams (i think it will be int the next one, two weeks) |
Isn't this a 9 tap tent filter, as described by Smith? https://pdfs.semanticscholar.org/cdf7/1f6ea2178cfa210a30c5870c235f3acdc42a.pdf In HLSL:
not sure how fast this is in CPU space however. |
This is a simple filter which can be used to filter out noise.
Here is one paper on fast Median and Bilateral filtering:
http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.93.1608&rep=rep1&type=pdf
The text was updated successfully, but these errors were encountered: