<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.6000.16735" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>Hi all,</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><?xml:namespace prefix = o ns =
"urn:schemas-microsoft-com:office:office" /><o:p><FONT face="Times New Roman"
size=3> </FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><SPAN lang=EN-GB
style="mso-ansi-language: EN-GB"><FONT face="Times New Roman" size=3>I¡¯m new for
VTK, so if I made any stupid mistake, please forgive me.</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman"
size=3> </FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman">The VTK image is a contour of tumor. The real time video
is ultrasound image from ultrasound scanner. In fact I want to show the contour
of tumor on an ultrasound video stream.<SPAN style="mso-spacerun: yes">
</SPAN></FONT></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman"
size=3> </FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>The ultrasound video is captured from a digital box through Directshow.
And I draw the video on a static picture box. The VTK image is from a 3D model
of tumor and I cut it with vtkcutter to a 2D image. </FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman"
size=3> </FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>The three possible solutions I think are as below:</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman"
size=3> </FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT
face="Times New Roman"><FONT size=3>(1) Do all the jobs in VTK, and then I need
to take the video as a data source in VTK. I think it means I need to redo the
video capture in VTK. I do not know which class I need to use. It seems
that<SPAN style="mso-spacerun: yes"> </SPAN></FONT><SPAN
style="FONT-SIZE: 10.5pt">vtkWin32VideoSource can do this job but I can not find
VC++ sample program on it. Without the sample, too many stuffs are not clear.
For an example, how to choose the capture device? Use VideoSourceDialog ( ) ?
Another thing is in case we can do capturing in VTK, how to do the
overlay?<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman"
size=3> </FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>(2) Do all the jobs in Directshow, and then I need to take the VTK data
as a source in Directshow. I do not know if and how can I do it.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman"
size=3> </FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>(3) If the background of vtkrenderer can be set to be transparent, then I
can draw the 2D vtk image on the same static picture box. If the background is
transparent, the contour will be overlaid on the video. I am not sure if this
method will work¡ª draw two images on one picture box. </FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman"
size=3> </FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>I am new in VTK, and my experiences in directshow are also limited. If
you have any advice, could you please let me know? Thanks.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman"
size=3> </FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>Do you think any of the three methods will succeed? If so, which one is
better? Thanks again.</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman"
size=3> </FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>Best regards</FONT></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman"
size=3> </FONT></o:p></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman">Leo</FONT></FONT></P></FONT></DIV></BODY></HTML>