473,320 Members | 2,020 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

directX

Hi,
I'm completely new to DirectX in CS, so if my question is too advanced
for a simple answer, could someone point me at some good tutorials?
Thanks...
Im using http://www.codeproject.com/cs/media/directxcapture.asp to
capture video input from a webcam. Thats all working fine :)

What I want to do is draw lines/shapes over the image.

I'm actually doing some image processing/object tracking and I need to
draw a crosshair over the image to indicate where my software thinks its
located something.
Whats the best way to do this? Im guessing DirectDraw, but how do I go
about drawing lines over the image received from the webcam?

If you think the method in the given url is pants and have a better
idea, I'm open to all suggestions!
Thanks a lot for any help :)

Regards,

Andrew
May 7 '06 #1
2 3478
"Andrew Bullock" <an*********************@ANDntlworldTHIS.com> wrote in
message news:Lo****************@newsfe2-gui.ntli.net...
Hi,
I'm completely new to DirectX in CS, so if my question is too advanced
for a simple answer, could someone point me at some good tutorials?
Thanks...
Im using http://www.codeproject.com/cs/media/directxcapture.asp to capture
video input from a webcam. Thats all working fine :)

What I want to do is draw lines/shapes over the image.

I'm actually doing some image processing/object tracking and I need to
draw a crosshair over the image to indicate where my software thinks its
located something.
Whats the best way to do this? Im guessing DirectDraw, but how do I go
about drawing lines over the image received from the webcam?

If you think the method in the given url is pants and have a better idea,
I'm open to all suggestions!


Ask in microsoft.public.win32.programmer.directx.video. There are ways to
draw to the video frames as they come through. I think you could use the
sample grabber and modify the buffer of each frame as it comes through, or
there are other filters you can use that allow you to modify each frame.
Otherwise you could write a custom filter to do this.

Michael
May 8 '06 #2
Michael C wrote:
"Andrew Bullock" <an*********************@ANDntlworldTHIS.com> wrote in
message news:Lo****************@newsfe2-gui.ntli.net...
Hi,
I'm completely new to DirectX in CS, so if my question is too advanced
for a simple answer, could someone point me at some good tutorials?
Thanks...
Im using http://www.codeproject.com/cs/media/directxcapture.asp to capture
video input from a webcam. Thats all working fine :)

What I want to do is draw lines/shapes over the image.

I'm actually doing some image processing/object tracking and I need to
draw a crosshair over the image to indicate where my software thinks its
located something.
Whats the best way to do this? Im guessing DirectDraw, but how do I go
about drawing lines over the image received from the webcam?

If you think the method in the given url is pants and have a better idea,
I'm open to all suggestions!


Ask in microsoft.public.win32.programmer.directx.video. There are ways to
draw to the video frames as they come through. I think you could use the
sample grabber and modify the buffer of each frame as it comes through, or
there are other filters you can use that allow you to modify each frame.
Otherwise you could write a custom filter to do this.

Michael

Ace thanks :)
Andrew
May 8 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: kastillo | last post by:
Im trying to install directx 9.0 c , but i simply cant . When i run the installer it just says " The installed components are ready to use". This is the report on directx.log : 09/10/05...
2
by: Akkadian123 | last post by:
Hi guys, I'm a student of c#, and I was wondering how one would take advantage of multimedia in most c# apps/games. I assume one would use directx9, since there doesn't seem to be any support...
2
by: Michael Mayer | last post by:
First of all, sorry for the cross-post. Seems like there should be a managed directx newsgroup. I'm trying to open the following sample application that comes with the DirectX SDK....
6
by: ammd | last post by:
Hi, I installed Microsoft DirectX 9.0 SDK (Summer 2004) but when I create a project and try to add the necessary references I can't find them. Does anybody know where to look for them? BTW, I have VS...
2
by: Diego_Atos | last post by:
I want to create objects using directX. I downloaded SDK version of DirectX. I've installed it. Which is the right dll to add to references? I can't find it. thanks -- -Diego (Atos)-
4
by: Junaid Hussain | last post by:
Hi, I am thinking about developing a 3D pool game in C# using DirectX, however when I compile a C# at the command prompt using; csc PoolGame.cs , I get the following error message; The type or...
9
by: Mike P | last post by:
Problems, problems... Im trying to create DirectX Projects within C# and to also look at the latest DirectX C# Samples. I have just installed MS Visual C# .net Standard Edition on my Windows...
0
by: Harvey Cohen | last post by:
Hello all, I have some C# code that implements calls to DirectX.DirectSound. It compiles under both VS .NET 2003 and VS 2005 and runs under VS .NET 2003 and VS 2005 on a Compaq laptop (Windows...
14
by: Jessica Weiner | last post by:
I am writing an application in C# which need to plot graphs and simple shapes (polygons, circles, squares etc). Which library is better for this purpose and why? Thanks.
11
by: raylopez99 | last post by:
I just downloaded the apparently free SDK for DirectX 9, all 200+ MB of it, but as I read about WPF I wonder: is DirectX obsolete? Should I even bother learning how to use it? After all, the end...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.