Search found 15 matches

by mruce
Sun Jan 22, 2012 10:37 am
Forum: C# Help
Topic: VideoWriter problem
Replies: 3
Views: 2395

VideoWriter problem

Hi, I' trying to write a video file using code: videoWriter = new VideoWriter(fileName, -1, fps, width, height, true); The videoWriter object is being created without errors, but codec selection dialog doesn't show up. When I try to write a frame "Unable to write frame to the video writer"...
by mruce
Tue Jun 21, 2011 5:35 am
Forum: C# Help
Topic: How does Image.Action() work?
Replies: 2
Views: 781

How does Image.Action() work?

Can I change values of picture's data using it?
For example

Code: Select all

newImage.Action(delegate(float f) { f=0; });

doesn't affect newImage at all.
by mruce
Mon Oct 25, 2010 6:06 pm
Forum: C# Help
Topic: Webcam frame -> XNA texture
Replies: 1
Views: 2342

Re: Webcam frame -> XNA texture

You can use this class: using System; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System.Drawing; using System.Drawing.Imaging; using System.Runtime.InteropServices; namespace MrXNAHelper { public class ImageToTexture { byte[] bmpBytes; Texture2D background; int widt...
by mruce
Wed Oct 06, 2010 8:04 am
Forum: C# Help
Topic: Downgrade code to work with .NET 2.
Replies: 0
Views: 396

Downgrade code to work with .NET 2.

Hi, I have this piece of code working nice with emgu 2.x. The problem is I want it to work on .NET 2.0 instead of 3.5, so I have to downgrade it to emgu 1.x. I tried multiple times, but i can't make it work (or it works much slower then the original code). Would appriciate any help on this. Code: Ho...
by mruce
Thu Aug 12, 2010 12:50 pm
Forum: C# Help
Topic: Video with alpha channel
Replies: 0
Views: 648

Video with alpha channel

I'd like to play video with alpha channel, but Capture.QueryFrame gets image in Bgr (not Bgra) color. Is it possible to play movies with transparency without loosing alpha information?
by mruce
Wed Jul 07, 2010 6:17 am
Forum: C# Help
Topic: CameraCalibration anyone?
Replies: 9
Views: 7655

Re: CameraCalibration anyone?

Hi,
I'm using code listed above (with CALIB_TYPE changed to DEFAULT), but I'm still getting NANs from InitUndistortMap.
Any ideas?
by mruce
Tue Jul 06, 2010 5:42 am
Forum: C# Help
Topic: Playstation Eye camera
Replies: 0
Views: 1047

Playstation Eye camera

Hi, I want to use great Playstation eye camera ( http://en.wikipedia.org/wiki/PlayStation_Eye ) with Code Laboratories SDK ( http://codelaboratories.com/ ). Every frame I get a bitmap from a camera (using Code Laboratories driver) and set it to Image.Bitmap image.Bitmap = bmpGraph; It works, but not...
by mruce
Mon Feb 01, 2010 5:12 pm
Forum: C# Help
Topic: BGCodeBookModel doesn't work?
Replies: 1
Views: 768

Re: BGCodeBookModel doesn't work?

Same here - VideoSurveilance example doesn't work, unless I change BGCodeBookModel to for example BGStatModel. Any ideas?
by mruce
Thu Apr 23, 2009 3:00 am
Forum: C# Help
Topic: Butt compare
Replies: 2
Views: 785

Re: Butt compare

Thanks for answering.

Yes, tried it; it works great, but it's to slow - I want to use it real time. Moreover, my image has good scale, rotation and translation already, so SURF is to powerful for me - and therefore takes more (to much) computing time.
by mruce
Tue Apr 21, 2009 12:17 pm
Forum: C# Help
Topic: Butt compare
Replies: 2
Views: 785

Butt compare

I'm looking for a way to compare an image with pattern; both images have same size and orientation (if they match). One of them might be slightly shifted, rotated, distorted or blurred. I tried different approaches, with no luck. Butt - sample images are here: http://f.imagehost.org/0453/pattern.jpg...

Go to advanced search