Saturday, October 26, 2013

Image Filtering : Opencv Interface

In the previous post we have seen how to manually define custom filters.
We made use of filter2D function with Gaussian kernel and Blur operator to demonstrate working of this function.

Opencv provides predefined functions for most common operators like blur operator, Gaussian operator, in this post we are going to discuss how to make use of this interface.


  1. Blur operator
    We have already discussed this filter in this post.
  2. Gaussian Filter
    Gaussian filter is discussed here.
  3. Median Filter
    As the name suggests median operator takes median of all the elements covered by mask, and replaces center pixel with this median.
Code:
Results:

No comments:

Post a Comment