Mat mat_img; //.... IplImage ipl_img = mat_img; 这将会在mat_img上方放置一个IplImage的头部,从而避免了复制。你可以将&ipl_img传递给需要IplImage*的函数。