title: Special ImageFilter
body: <p>Please have a look at the image attached. It's a small part of a matrix generated by reading in a larger 16bit image. 
  I want to devise a filter so that all the non-zero values get the value of the most frequent number I was thinking to use a modal filter which will pick the mode(most frequent number in a kernel overlap) but it won't work for the non-zero numbers at the edges because then 0 would be the mode. Any ideas? It would be better if I find such a filter in Emgu CV library<img src="https://i.stack.imgur.com/AcChU.png" alt="Showing only 8x7 pixels of a larger image"></p>