directX

A

Andrew Bullock

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
 
M

Michael C

Andrew Bullock said:
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
 
A

Andrew Bullock

Michael said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top