aforge

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

∥☆過路亽.° 提交于 2019-11-29 16:32:55
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . 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 ? 回答1: Look up the documentation, find the VideoFileWriter Class,

cropping an area from BitmapData with C#

谁说我不能喝 提交于 2019-11-29 06:50:00
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 coordinates as well as H and W? The aim is to copy a small area from this image. This method might be

image focus calculation

蓝咒 提交于 2019-11-28 06:27:52
I'm trying to develop an image focusing algorithm for some test automation work. I've chosen to use AForge.net, since it seems like a nice mature .net friendly system. Unfortunately, I can't seem to find information on building autofocus algorithms from scratch, so I've given it my best try: take image. apply sobel edge detection filter, which generates a greyscale edge outline. generate a histogram and save the standard dev. move camera one step closer to subject and take another picture. if the standard dev is smaller than previous one, we're getting more in focus. otherwise, we've past the

How initialize AForge webcam

ε祈祈猫儿з 提交于 2019-11-28 05:14:39
问题 I try to write a small peace of code to capture a frame using Aforge I made a reference to Aforge.dll and AForge.Video.DirectShow.dll The code is below, but i am doing something wrong. The Warning i get "the name videoDevices does not exist in the current context. I think it has to do about where i try to create that variable but i'm not exactly sure as where to place that code of the button to get it initialized. The error is displayed in visual studio also as a redline under the object

image focus calculation

折月煮酒 提交于 2019-11-27 01:21:06
问题 I'm trying to develop an image focusing algorithm for some test automation work. I've chosen to use AForge.net, since it seems like a nice mature .net friendly system. Unfortunately, I can't seem to find information on building autofocus algorithms from scratch, so I've given it my best try: take image. apply sobel edge detection filter, which generates a greyscale edge outline. generate a histogram and save the standard dev. move camera one step closer to subject and take another picture. if

Image sequence to video stream?

て烟熏妆下的殇ゞ 提交于 2019-11-26 19:20:01
Like many people already seem to have (there are several threads on this subject here) I am looking for ways to create video from a sequence of images. I want to implement my functionality in C#! Here is what I wan't to do: /*Pseudo code*/ void CreateVideo(List<Image> imageSequence, long durationOfEachImageMs, string outputVideoFileName, string outputFormat) { // Info: imageSequence.Count will be > 30 000 images // Info: durationOfEachImageMs will be < 300 ms if (outputFormat = "mpeg") { } else if (outputFormat = "avi") { } else { } //Save video file do disk } I know there's a project called

Convert Kinect ColorImageFrame to Bitmap

你说的曾经没有我的故事 提交于 2019-11-26 17:45:42
问题 I´m using Kinect (Microsoft SDK) with XNA. I want to use GRATF for marker-recognition How to convert the data of a Kinect ColorImageFrame to a System.Drawing.Bitmap or AForge.Imaging.UnmanagedImage that I can process them with GRATF? void kinectSensor_ColorFrameReady(object sender, ColorImageFrameReadyEventArgs e) { Bitmap bitmap = null; ColorImageFrame frame = e.OpenColorImageFrame(); byte[] buffer = new byte[frame.PixelDataLength]; frame.CopyPixelData(buffer); // how to convert the data in