Hi all,
Am struggling to work out why this code works on my Desktop, but fails under a Linux environment.
Hsv lower = new Hsv(65, 48, 148);
Hsv upper = new Hsv(175, 255, 255);
IntPtr newImg = CvInvoke.cvCreateImage(new Size(320, 240), IPL_DEPTH.IPL_DEPTH_8U, 1);
IntPtr newImg2 = CvInvoke.cvCreateImage(new Size(320, 240), IPL_DEPTH.IPL_DEPTH_8U, 1);
CvInvoke.cvInRangeS(newImg2, lower.MCvScalar, upper.MCvScalar, newImg);
(using the Emgu C# wrapper, but doesnt appear to be a C# issue).
It errors with:
Emgu.CV.CvException : OpenCV: src1.size == dst.size && dst.type() == CV_8U
Was hoping to see if someone had any insight?
I’m using older Open CV versions 2.4.2 and 2.1.0.793 (cross-compiled for my platform). ARM environment is armv5tejl. Both versions exhibit the same issue.
but as per my code, i have it set for 8 bit unsigned with a depth of 1, and the sizes are the same…
Thanks for your time,
Dan