imaging/cv_mat/filters.cpp: merge filter accept the number of channels (default is 3)