fix an error while setting kernel argument for a 3-D matrix.
fix an error while setting kernel argument for a 3-D matrix.

opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv