First time here? Check out the FAQ!
answered 2014-03-19 19:05:14 -0600
Hi, the same like odd length kernel, for example:
Mat ker=(Mat_<float>(2,2)<< 0.0,-1.0, 1.0,0.0); filter2D(src,dst,prewit,CV_32FC,ker)//other paramemter set default
....................