If the user passes an empty output matrix, initialize it to identity.
If the user passes an empty output matrix, initialize it to identity.

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