aforge

Matlab vs Aforge vs OpenCV

拟墨画扇 提交于 2019-12-03 02:22:39
I am about to start a project in visual image-processing and have no had experience with Matlab, Aforge, OpenCV and was wondering if anyone had any experiences with these different software packages. I was also wondering which of the three packages were most efficient I assume OpenCV but has anyone had any experience? Thanks Jamie. The question you need to ask yourself is which is more important - your time or the computer's time. If your task is really simple, you may be able to code it up in MATLAB and have it work right off the bat. MATLAB is by far the easiest for development - a scripted

Differences between AForge and OpenCV

谁都会走 提交于 2019-12-03 01:36:10
问题 I am just learning about computer vision and C#. It seems like two prominent image processing libraries are OpenCV and AForge. What are some of the differences of the two? I am making a basic image editor in C# and while researching I have come across articles on both. But I don't really know why I would choose one over the other. I would like to eventually improve the app to include more advanced functions. Thanks. 回答1: I am using OpenCV for a project in school right now, and I browsed the

Automatic enhancement of scanned images

做~自己de王妃 提交于 2019-12-02 17:58:12
I'm developing a routine for automatic enhancement of scanned 35 mm slides. I'm looking for a good algorithm for increasing contrast and removing color cast. The algorithm will have to be completely automatic, since there will be thousands of images to process. These are a couple of sample images straight from the scanner, only cropped and downsized for web: I'm using the AForge.NET library and have tried both the HistogramEqualization and ContrastStretch filters. HistogramEqualization is good for maximizing local contrast but does not produce pleasing results overall. ContrastStretch is way

Sound volume on defined frequency (C#)

跟風遠走 提交于 2019-12-02 08:29:40
I do not understand why the volume defined frequency is not as expected. I send sounds to my microphone with a few specified frequencies in turn. I then do FFT of my microphone buffer. On exit of FFT, I have an array of complex numbers. To know the volume of sound on the defined frequency, I look at my array, the number of element in this array I get this way: MyFrequency = n*SamplingRate/SizeOfArray. Next, I get the magnitude of complex number (sqrt(Re^2+Im^2) If I'm right, this shows me the volume of sound on this frequency. But this value changes strongly, depending on the frequency. If I'm

AForge camera memory leak

天大地大妈咪最大 提交于 2019-12-02 01:07:34
I'm developing an application in C#, and I developed a library that does some stuff with Aforge cameras. One of the points is to simply capture images of what is in front of the Web Cam and show it on a specific PictureBox to do so: camera.NewFrame += NewFrame; private void NewFrame(object sender, NewFrameEventArgs args) { Bitmap newFrame = new Bitmap(args.Frame); args.Frame.Dispose(); PictureBox.FromBitmapImage(newFrame); newFrame.Dispose(); newFrame = null; } What I do here, I get every frame and paint it into the PictureBox . My doubt is: In some computers, this way of painting produces a

Find a smaller image within another big one and fast

主宰稳场 提交于 2019-12-01 05:52:31
问题 Anyway to make this thing go faster ? coz right now it's like 6 seconds on the sourceImage the size of 1024x768 and template 50x50 around. This is using AForge, if anyone knows other faster and rather simple ways please submit. The task i'm trying to do is to find a smaller image within a screenshot. And preferably fast my limit is 1 second. The image i'm looking for is a red rectangle simple image and the screenshot is more complex. System.Drawing.Bitmap sourceImage = (Bitmap)Bitmap.FromFile

Implementing a WebCam on a WPF App using AForge.Net

荒凉一梦 提交于 2019-11-30 13:17:26
I'm writing an WPF application where I need to show a Webcam feed. I was able to do this easly with the AForge framework.But when I've changed from a computer to a another computer the same code doesn't work the same way. In the first one the webcam feed works perfectly, but in the other one this does't occur, the feed has a lot of delay, and the application doesn't work properly. Here is the code: private void video_NewFrame(object sender, NewFrameEventArgs eventArgs) { Bitmap img = (Bitmap)eventArgs.Frame.Clone(); this.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Render,

How to create video file from Images sequence file? [closed]

一曲冷凌霜 提交于 2019-11-30 10:58:57
I have 400 sequence images. I want to create from them video file ( clip .. mpeg ) I download the 'AForge.NET' and i try to look into it to see if it possible - but i don't fine any way to do it. How can i do it ? Look up the documentation , find the VideoFileWriter Class , look at it's members , see the WriteVideoFrame method(s) , read the line : "Write new video frame into currently opened video file.". Bingo. Half way there. If you can't connect the dots when reading the methods' signature ( WriteVideoFrame(Bitmap) ) or don't understand how to use the Open() overloads or Close() method (why

cropping an area from BitmapData with C#

浪子不回头ぞ 提交于 2019-11-30 08:31:39
问题 I have a bitmap sourceImage.bmp locking it's bits: BitmapData dataOriginal = sourceImage.LockBits(new Rectangle(0, 0, sourceImage.Width, sourceImage.Height), ImageLockMode.ReadOnly, PixelFormat.Format32bppArgb); Do analysis, get a clone : Bitmap originalClone = AForge.Imaging.Image.Clone(dataOriginal); unlocking bits: sourceImage.UnlockBits(dataOriginal); is it possible to specify which part of "dataOriginal" to copy (x,y,w,h)? or to create new data from the dataOriginal, specifying X and Y

Implementing a WebCam on a WPF App using AForge.Net

人走茶凉 提交于 2019-11-29 18:34:55
问题 I'm writing an WPF application where I need to show a Webcam feed. I was able to do this easly with the AForge framework.But when I've changed from a computer to a another computer the same code doesn't work the same way. In the first one the webcam feed works perfectly, but in the other one this does't occur, the feed has a lot of delay, and the application doesn't work properly. Here is the code: private void video_NewFrame(object sender, NewFrameEventArgs eventArgs) { Bitmap img = (Bitmap