No, we do not want to use the legacy opencv IplImage any more. Are you sure it doesn't work with cv::Mat?