Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iplImage #31

Open
li829 opened this issue Apr 24, 2020 · 2 comments
Open

iplImage #31

li829 opened this issue Apr 24, 2020 · 2 comments

Comments

@li829
Copy link

li829 commented Apr 24, 2020

My opencv is opencv4.2, and I get this problem:
IplImage z_ipl = z;
conversion from ‘cv::Mat’ to non-scalar type ‘IplImage {aka _IplImage}’ requested

How can I solve this problem. Thanks a lot.

@iraadit
Copy link

iraadit commented Sep 9, 2020

Replace
IplImage z_ipl = z;
by
IplImage z_ipl = cvIplImage(z);

@BerkantOdevci
Copy link

I am using Opencv 4.5.4 version. I get this problem:
IplImage z_ipl = z;
Error: conversion from ‘cv::Mat’ to non-scalar type ‘IplImage {aka _IplImage}’ requested.
I tried 'IplImage z_ipl = cvIplImage(z);' but I don't solve this problem. I also set dlib library and try;
IplImage z_ipl = cvIplImage(z);
dlib::cv_imagedlib::rgb_pixel image(z);
it doesn't work :( How can I solve this problem. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants