Removed IplImage when using OpenCV3 (issue #3)
This commit is contained in:
parent
bb097b2bab
commit
a4a9b8ca5f
@ -41,11 +41,13 @@ FINDOBJECT_EXP QImage cvtCvMat2QImage(const cv::Mat & image, bool isBgr = true);
|
||||
// Convert QImage to OpenCV matrix
|
||||
FINDOBJECT_EXP cv::Mat cvtQImage2CvMat(const QImage & image);
|
||||
|
||||
#if CV_MAJOR_VERSION < 3
|
||||
// Convert IplImage to QImage
|
||||
FINDOBJECT_EXP QImage cvtIplImage2QImage(const IplImage * image);
|
||||
|
||||
// Convert QImage to IplImage
|
||||
FINDOBJECT_EXP IplImage * cvtQImage2IplImage(const QImage & image);
|
||||
#endif
|
||||
|
||||
} // namespace find_object
|
||||
|
||||
|
||||
@ -102,7 +102,7 @@ cv::Mat cvtQImage2CvMat(const QImage & image)
|
||||
return cvImage;
|
||||
}
|
||||
|
||||
|
||||
#if CV_MAJOR_VERSION < 3
|
||||
QImage cvtIplImage2QImage(const IplImage * image)
|
||||
{
|
||||
QImage qtemp;
|
||||
@ -154,5 +154,6 @@ IplImage * cvtQImage2IplImage(const QImage & image)
|
||||
}
|
||||
return iplTmp;
|
||||
}
|
||||
#endif
|
||||
|
||||
} // namespace find_object
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user