在emgucv 3.1中无法识别CvBox2D

时间:2016-12-27 18:41:50

标签: c# opencv emgucv

我想在emgucv 3.1.0.2504中使用CvBox2D类型,但它无法识别!

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;
        }

enter image description here

1 个答案:

答案 0 :(得分:3)

在版本2中,曾经有一个名为MCvBox2D的结构,它是

  

相当于CvBox2D的托管结构

在版本3中,虽然此结构已重命名为RotatedRect - 但它具有相同的描述并实现相同的接口。

因此,您应该可以在代码中使用RotatedRect