EmguCV: Can't find ColorType abstract class
- by roverred
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.