Changes between Version 5 and Version 6 of libpipi/research/filters


Ignore:
Timestamp:
08/21/2008 01:38:22 PM (16 years ago)
Author:
Sam Hocevar
Comment:

more information

Legend:

Unmodified
Added
Removed
Modified
  • libpipi/research/filters

    v5 v6  
    2828There are several ways to optimise a median filter.
    2929
    30 Random links for now:
     30The first idea is an approximation, based upon the assumption that the median of subset medians is close to the median of the whole set. It can already be simulated by doing `--median 5x0 --median 0x5` in `pipi`, so there is no real point in studying this specific optimisation.
     31
     32The second idea is to optimise the median selection. The most naive method is to bubble-sort the neighbourhood values and select the middle point, which has complexity O(n²). Improving on the sort algorithm by using eg. heapsort or quicksort, reduces the complexity to O(n.log2(n)). But since we’re only interested in the median and not in ordering the rest of the data, we can use an efficient median selection algorithm. This operation can be done in fewer than 3n tests ![1] but the practical implementation is extremely complex.
     33
     34=== Links ===
     35
    3136 * [http://coding.derkeiler.com/Archive/General/comp.programming/2004-10/0289.html Sliding median filter]
    3237 * [http://iris.usc.edu/Vision-Notes/bibliography/twod268.html A shitload of papers about median filtering and its derivatives]
     38
     39=== References ===
     40
     41 * ![1] Uri Zwick, [http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.5.2770 Selecting the median], In Proceedings of the 6rd Annual ACM-SIAM Symposium on Discrete Algorithms (1995)
    3342
    3443= Dilate / erode =
     
    5463}}}
    5564
    56 === References ===
     65=== Links ===
    5766
    5867 * [http://ostermiller.org/dilate_and_erode.html Efficiently Implementing Dilate and Erode Image Functions]