<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hello Xiaofeng,<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I’m not working with scenes that are that complex, but I don’t
see a delay as I move through image slices with 2 ROIs.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I’ll try vtkPolyDataMapper2D. Thanks for the pointer.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'> -- Scott<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Xiaofeng Z
[mailto:xf10036@hotmail.com] <br>
<b>Sent:</b> Tuesday, May 04, 2010 10:04 AM<br>
<b>To:</b> lars-friedrich@gmx.net; Scott Johnson; VTK<br>
<b>Subject:</b> RE: [vtkusers] Create an approximate cross-section of a RT ROI<o:p></o:p></span></p>
</div>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif"'>Scott and lars,<br>
<br>
Since you are working on the similar thing, I would be interested to know
how satisfactory is the performance (how long does it take to cut in a typical
RT case of 20 or so ROIs). create a surface from the contours and use
vtkCutter to get the cross-section is certainly a more "accurate" way
than the rudimentary method of connecting the points, but in myexperience, the
cutting of a typical RT case takes over a second. I can't use that in
real time.<br>
<br>
Also I found that using vtkPolyMapper2D in conjuction of vtkActor2D makes a
better contour display (no artificial shifing of the contour, etc.). Make
sure to set the transformation of the mapper to world coordinate system:<br>
<br>
</span><span style='font-size:10.0pt;font-family:Consolas'>vtkCoordinate*
coordinate = vtkCoordinate::New();<br>
coordinate->SetCoordinateSystemToWorld();<br>
vtkPolyDataMapper2D* mapper = vtkPolyDataMapper2D::New();<br>
mapper->SetColorModeToDefault();<br>
mapper->SetTransformCoordinate(coordinate);<br>
</span><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'> <br>
Regards,<br>
Xiaofeng<br>
<br>
<br>
<br>
> Date: Tue, 4 May 2010 16:36:14 +0200<br>
> From: lars-friedrich@gmx.net<br>
> Subject: Re: [vtkusers] Create an approximate cross-section of a RT ROI<br>
> To: Scott.Johnson@neuwave.com; vtkusers@vtk.org; xf10036@hotmail.com<br>
> <br>
> Scott,<br>
> <br>
> I had a similar problem with 'free planes' at the beginning, but I usually
define the cut plane 'a bit' (0.001 mm or so) in front of the image slice
(towards view position).<br>
> <br>
> regards,<br>
> <br>
> lars<br>
> <br>
> -------- Original-Nachricht --------<br>
> > Datum: Tue, 4 May 2010 09:12:33 -0500<br>
> > Von: "Scott Johnson" <Scott.Johnson@neuwave.com><br>
> > An: "Xiaofeng Z" <xf10036@hotmail.com>,
"VTK" <vtkusers@vtk.org><br>
> > Betreff: Re: [vtkusers] Create an approximate cross-section of a RT
ROI<br>
> <br>
> > Hello Xiaofeng,<br>
> > <br>
> > <br>
> > <br>
> > I've been working on something similar, but am not quite there yet. I<br>
> > can get you started.<br>
> > <br>
> > <br>
> > <br>
> > The general idea is that you will need to create a polygonal shape
from<br>
> > the contours in the RT structure set, then create a vtkPlane which<br>
> > represents the plane you wish to cut. You can then create a pipeline<br>
> > which looks something like:<br>
> > <br>
> > <br>
> > <br>
> > vtkCutter -> vtkPolyDataMapper -> vtkActor<br>
> > <br>
> > <br>
> > <br>
> > Set the properties of the actor to have EdgeVisibilityOn and an<br>
> > EdgeColor or the cut shape will not be visible. The actor will show a<br>
> > cross section of the ROI intersected with the plane.<br>
> > <br>
> > <br>
> > <br>
> > The issue I'm having is properly displaying the vtkActor with the<br>
> > images. I've extended beyond axial sagittal and coronal and I seem to<br>
> > be missing something in the coordinate conversions.<br>
> > <br>
> > <br>
> > <br>
> > Good luck.<br>
> > <br>
> > <br>
> > <br>
> > -- Scott<br>
> > <br>
> > <br>
> > <br>
> > From: vtkusers-bounces@vtk.org [mailto:vtkusers-bounces@vtk.org] On<br>
> > Behalf Of Xiaofeng Z<br>
> > Sent: Monday, May 03, 2010 7:12 PM<br>
> > To: VTK<br>
> > Subject: [vtkusers] Create an approximate cross-section of a RT ROI<br>
> > <br>
> > <br>
> > <br>
> > Hi vtkUsers,<br>
> > <br>
> > I have a set of contours in axial orientation representing a ROI. I<br>
> > need to sketch the ROI in coronal and sagittal plane, by connection
the<br>
> > points made from the intersection of the contours and the cutting
plane.<br>
> > Is there a function to do that in vtk or in ITK?<br>
> > <br>
> > I know the result is not "precise" in a sense that the
contours make<br>
> > this way is not always consistent between themselves. But it seemed
to<br>
> > be the only viable way to sketch a ROI in a multi-planar rendering in<br>
> > real time.<br>
> > <br>
> > Many thanks!<br>
> > Xiaofeng<br>
> > <br>
> > <br>
> > <br>
> > <br>
> > ________________________________<br>
> > <br>
> > The New Busy is not the old busy. Search, chat and e-mail from your<br>
> > inbox. Get started.<br>
> >
<http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL<br>
> > :ON:WL:en-US:WM_HMP:042010_3> <br>
> > <br>
> <br>
> -- <br>
> GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!<br>
> Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01<o:p></o:p></span></p>
<div class=MsoNormal align=center style='text-align:center'><span
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>
<hr size=2 width="100%" align=center>
</span></div>
<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Hotmail
has tools for the New Busy. Search, chat and e-mail from your inbox. <a
href="http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1"
target="_new">Learn more.</a><o:p></o:p></span></p>
</div>
</body>
</html>