building a filter based on the opencv library.