在Visual Studio 2010中使用c#中的opencv进行图像处理 [英] image processing using opencv in c# in visual studio 2010

查看:536
本文介绍了在Visual Studio 2010中使用c#中的opencv进行图像处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在c#中使用opencv使用visual studio模糊图像?

如果我使用c#模糊图像太慢当图片使用高分辨率时

解决方案

//


如果您使用的是EmguCV 2.4.9版本..

以下部分代码将是解决方案...... 。





private Capture _capture = null;

Image< Bgr,Byte>框架;





_capture = new Capture(0);

_capture.SetCaptureProperty(Emgu.CV。 CvEnum.CAP_PROP.CV_CAP_PROP_FPS,30);

_capture.SetCaptureProperty(Emgu.CV.CvEnum.CAP_PROP.CV_CAP_PROP_FRAME_HEIGHT,240); _capture.SetCaptureProperty(Emgu.CV.CvEnum.CAP_PROP.CV_CAP_PROP_FRAME_WIDTH,320);



frame = _capture.QueryFrame();

frame .SmoothBlur(320,240);< / pre>



/ *

类似功能

frame .SmoothBlur;

frame.SmoothGaussian;

frame.SmoothMedian;

* /





i做了一些google ..去... ..

http://www.emgu.com/wiki/files/2.0.0.0/html/4d3d4a90-feb3-ff76-0471-7ae2d3917e7c.htm [ ^ ]



[ ^ ]



http://stackoverflow.com/questions/7914243/emgucv-how-to-specify-jpeg-quality-when-saving-image [< a href =http://stackoverflow.com/questions/7914243/emgucv-how-to-specify-jpeg-quality-when-saving-imagetarget =_ blanktitle =New Window> ^

how can i blurring image using opencv in c# using visual studio??
if i using c# blurring image is too slow when the picture use high resolution

解决方案

//
if you are using EmguCV 2.4.9 version..
following part code will be the solutions....


private Capture _capture = null;
Image<Bgr, Byte> frame;


_capture = new Capture(0);
_capture.SetCaptureProperty(Emgu.CV.CvEnum.CAP_PROP.CV_CAP_PROP_FPS, 30);
_capture.SetCaptureProperty(Emgu.CV.CvEnum.CAP_PROP.CV_CAP_PROP_FRAME_HEIGHT,240); _capture.SetCaptureProperty(Emgu.CV.CvEnum.CAP_PROP.CV_CAP_PROP_FRAME_WIDTH, 320);

frame = _capture.QueryFrame();
frame.SmoothBlur(320, 240);</pre>

/*
similar function
frame.SmoothBlur;
frame.SmoothGaussian;
frame.SmoothMedian;
*/


i Have done some google.. go for..
http://www.emgu.com/wiki/files/2.0.0.0/html/4d3d4a90-feb3-ff76-0471-7ae2d3917e7c.htm[^]

[^]

http://stackoverflow.com/questions/7914243/emgucv-how-to-specify-jpeg-quality-when-saving-image[^]


这篇关于在Visual Studio 2010中使用c#中的opencv进行图像处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆