Reputation: 2035
I want to use CvBox2D type in emgucv 3.1.0.2504, but it is not recognized!
using Emgu.CV;
using Emgu.CV.CvEnum;
using Emgu.CV.Structure;
using Emgu.CV.UI;
using Emgu.CV.Util;
using Emgu.Util;
using System;
static CvBox2D GetROIRegion(XPointF p1, XPointF p2)
{
CvBox2D result = new CvBox2D();
...
return result;
}
Upvotes: 2
Views: 1067
Reputation: 8110
In version 2 there used to be a structure called MCvBox2D which is a
Managed structure equivalent to CvBox2D
In version 3 though this structure was renamed to RotatedRect - it has the same description and implements the same interfaces.
So you should be able to use RotatedRect
in your code.
Upvotes: 4