imaging/cv_mat/filters: split filter made generic