Issue with invoking cvInRangeS under Linux ARM

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 (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,

unfortunately no more maintained, deadbeef. dont expect any help .

also not maintained from opencv. and the C-api calls it is trying to wrap are all gone today.

Thanks berak for the reply.
FWIW if anyone ever needs this - i cross compiled v4.1.1 and it did correct the issue.
Anyway im working around it.