joaofaro / KCFcpp

C++ Implementation of KCF Tracker
BSD 3-Clause "New" or "Revised" License
895 stars 446 forks source link

iplImage #31

Open li829 opened 4 years ago

li829 commented 4 years ago

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 commented 4 years ago

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

BerkantOdevci commented 2 years ago

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_image image(z); it doesn't work :( How can I solve this problem. Thanks