EmguCV: Can't find ColorType abstract class

Posted by roverred on Stack Overflow See other posts from Stack Overflow or by roverred
Published on 2013-10-18T21:50:54Z Indexed on 2013/10/18 21:53 UTC
Read the original article Hit count: 454

Filed under:
|
|
|

EmguCV ColorType wiki

I'm trying to create a ColorType abstract class variable but it says the type or namespace does not exist. However I have access to the classes that extend it. I also tried adding all Emgu.CV libraries and have all the references and .dll files in the bin folder.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
using Emgu.CV;
using Emgu.CV.Util;
using Emgu.CV.GPU;
using Emgu.CV.ML;
using Emgu.CV.OCR;
using Emgu.CV.OpenCL;
using Emgu.CV.Stitching;
using Emgu.CV.VideoStab;
using Emgu.CV.Structure;
using Emgu.CV.UI;
using Emgu.CV.CvEnum;

namespace mySpace
{

    class foo
    {

        private ColorType  the color; //invalid can't find ColorType
        private ColorType myColor = new Gray(); //invalid

    }
}

Any ideas? Thanks for any help.

© Stack Overflow or respective owner

Related posts about c#

Related posts about namespaces