emgucv

EmguCV TypeInitializationException

与世无争的帅哥 提交于 2019-12-17 07:33:15
问题 i really a newbie with EgmuCV i try to capture images from webcam with the following code: //Program.cs (Winform) using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using Emgu.CV; using Emgu.CV.UI; using Emgu.Util; using Emgu.CV.Structure; namespace EgmuCVTest { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1

Emgu CV image load notworking

和自甴很熟 提交于 2019-12-13 20:04:41
问题 I am using emgu cv version 3. I try to load image to process. but it will provide error for me. According to the error it will say image cannot be read. But i have a image under that location. This is my code line.. Image<Bgr, Byte> image = new Image<Bgr, Byte>("image.jpg"); 回答1: Code line that you have provided is correct. Please check this with absolute path. It will be worked because if your image is not within your source directory your relative path (you have given only name of image

EmguCV SURF - Determine matched pairs of points

元气小坏坏 提交于 2019-12-13 19:44:15
问题 I'm currently modifying EmguCV's (Ver 3.0.0.2157) SurfFeature example (Seen here). I'm trying to determine the amount of matched pairs of points in order to calculate a percentage of similarity between the inputted images. From what I understand, this information is stored in the mask variable, but I don't know how to access it? (This question has been asked before here, but the example source code being referenced is using an older version of EmguCV) Thanks in advance! 回答1: p determine

How can I change the contrast of an image using OpenCV?

老子叫甜甜 提交于 2019-12-13 16:23:34
问题 I'd like to look at the contrast of an image in a certain masked region, and reduce it if it is too great. Are there built-in functions that can help me with this? If not, what sort of algorithm should I be looking at? I assume I would be looking at/changing the value of pixels to bring them closer to the average, and perhaps average distance from the average is a good measure of initial contrast? I am using EmguCV if that is relevant. 回答1: Contrast is a bit of an imprecise term in image

Why might EmguCV Gaussian blur not return identical results as OpenCV Gaussian blur?

为君一笑 提交于 2019-12-13 14:17:59
问题 I'm experiencing a mismatch between the OpenCV GaussianBlur function and the EmguCv CvInvoke.cvSmooth/Image.SmoothGaussian functions. The GaussianBlur call: GaussianBlur(src, dest, Size(13,13), 1.5, BORDER_REPLICATE); The EmguCV call: CvInvoke.cvSmooth(src, dst, SMOOTH_TYPE.CV_GAUSSIAN, 13, 13, 1.5, 0); In both cases, src is a 32F, 3 channel image. I have verified that the contents of src are identical (saved them as bmp and did binary diff). The cvSmooth call in opencv looks like this: CV

Face Recognition code using emgu cv and C# and it returns a black image and unknown/unrecognized label all time

独自空忆成欢 提交于 2019-12-13 06:26:16
问题 I was working on Face Recognition project. After training the database and calling EigenObjectRecognizer, the result is a black image with unrecognized label.When the code runs, it looks like the following http://www.mediafire.com/view/?ewns4iqvd51adsc .And as shown in the picture the detected and supposed to be recognized and extracted face in the image box is totally black. And the input image for recognition is exactly the same as the one the database is trained with.So why it has kept

watershed function provided by EmguCv

我与影子孤独终老i 提交于 2019-12-13 05:28:09
问题 I want to use watershed function provided by emgucv.I used the following code but all I get is a white picture.Please help me and correct this code.Thanks. Image im; Bitmap bm; Bitmap bmF; private void button1_Click(object sender, EventArgs e)//setting the background image { if (openFileDialog1.ShowDialog() == DialogResult.OK) { im = Image.FromFile(openFileDialog1.FileName); bm = new Bitmap(im); } panel1.BackgroundImage = im; panel1.Width = im.Width; panel1.Height = im.Height; panel1.Visible

opencv_imgproc.dll throws BadImageFormatException

蹲街弑〆低调 提交于 2019-12-13 03:59:49
问题 I'm building an image processing application using Emgu CV (for x64) and I want to use the filtering functions on images. So, I use opencv_imgproc.dll but it throws BadImageFormatException Solution Platform : x86 Operating System : Windows 7 - 64 Language: C# IDE: Visual C# 2010 express 回答1: Emgu is a managed wrapper for OpenCV. Because OpenCV is unmanaged, you will need to ensure that you are compiling with the correct settings for the version of Emgu you are using. Based on the exceptions

Skeletonization using EmguCV

放肆的年华 提交于 2019-12-13 02:50:31
问题 I am trying to make a Skeletonization in C# using EmguCV. I am using the sample at the bottom of this page which is in C++ and I tried that and it works: http://felix.abecassis.me/2011/09/opencv-morphological-skeleton/ I have converted the cod to C# as follows: Image<Gray, Byte> eroded = new Image<Gray, byte>(img2.Size); Image<Gray, Byte> temp = new Image<Gray, byte>(img2.Size); Image<Gray, Byte> skel = new Image<Gray, byte>(img2.Size); skel.SetValue(0); CvInvoke.cvThreshold(img2, img2, 127,

How do I take the advantage of OpenCL in an Emgu CV project

不问归期 提交于 2019-12-12 16:11:02
问题 I'm newbie in using Emgu CV and started to create small sample projects, for example face detection, eye detection,..etc. It would be good if I could take the advantage of OpenCL to accelerate the process using gpu. Otherwise, it causes massive cpu utilization when I decrease the scaleFactor. How can I do that? Thanks. 回答1: As far as I know (from the official page of Emgu look at the bootom of the page) the UMat image format uses automatically the OpenCL Engine. First you have to set the