<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>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I&#8217;m not working with scenes that are that complex, but I don&#8217;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>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I&#8217;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>&nbsp;</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>&nbsp;</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>&nbsp;</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>
&nbsp;<br>
Since you&nbsp;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).&nbsp; create a surface from the contours and use
vtkCutter to get the cross-section is certainly a more &quot;accurate&quot; way
than the rudimentary method of connecting the points, but in myexperience, the
cutting of a typical RT case takes over a second.&nbsp; 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.).&nbsp; Make
sure to set the transformation of the mapper to world coordinate system:<br>
&nbsp;<br>
</span><span style='font-size:10.0pt;font-family:Consolas'>vtkCoordinate*
coordinate = vtkCoordinate::New();<br>
coordinate-&gt;SetCoordinateSystemToWorld();<br>
vtkPolyDataMapper2D* mapper = vtkPolyDataMapper2D::New();<br>
mapper-&gt;SetColorModeToDefault();<br>
mapper-&gt;SetTransformCoordinate(coordinate);<br>
</span><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>&nbsp;<br>
Regards,<br>
Xiaofeng<br>
<br>
<br>
&nbsp;<br>
&gt; Date: Tue, 4 May 2010 16:36:14 +0200<br>
&gt; From: lars-friedrich@gmx.net<br>
&gt; Subject: Re: [vtkusers] Create an approximate cross-section of a RT ROI<br>
&gt; To: Scott.Johnson@neuwave.com; vtkusers@vtk.org; xf10036@hotmail.com<br>
&gt; <br>
&gt; Scott,<br>
&gt; <br>
&gt; 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>
&gt; <br>
&gt; regards,<br>
&gt; <br>
&gt; lars<br>
&gt; <br>
&gt; -------- Original-Nachricht --------<br>
&gt; &gt; Datum: Tue, 4 May 2010 09:12:33 -0500<br>
&gt; &gt; Von: &quot;Scott Johnson&quot; &lt;Scott.Johnson@neuwave.com&gt;<br>
&gt; &gt; An: &quot;Xiaofeng Z&quot; &lt;xf10036@hotmail.com&gt;,
&quot;VTK&quot; &lt;vtkusers@vtk.org&gt;<br>
&gt; &gt; Betreff: Re: [vtkusers] Create an approximate cross-section of a RT
ROI<br>
&gt; <br>
&gt; &gt; Hello Xiaofeng,<br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; I've been working on something similar, but am not quite there yet. I<br>
&gt; &gt; can get you started.<br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; The general idea is that you will need to create a polygonal shape
from<br>
&gt; &gt; the contours in the RT structure set, then create a vtkPlane which<br>
&gt; &gt; represents the plane you wish to cut. You can then create a pipeline<br>
&gt; &gt; which looks something like:<br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; vtkCutter -&gt; vtkPolyDataMapper -&gt; vtkActor<br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; Set the properties of the actor to have EdgeVisibilityOn and an<br>
&gt; &gt; EdgeColor or the cut shape will not be visible. The actor will show a<br>
&gt; &gt; cross section of the ROI intersected with the plane.<br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; The issue I'm having is properly displaying the vtkActor with the<br>
&gt; &gt; images. I've extended beyond axial sagittal and coronal and I seem to<br>
&gt; &gt; be missing something in the coordinate conversions.<br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; Good luck.<br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; -- Scott<br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; From: vtkusers-bounces@vtk.org [mailto:vtkusers-bounces@vtk.org] On<br>
&gt; &gt; Behalf Of Xiaofeng Z<br>
&gt; &gt; Sent: Monday, May 03, 2010 7:12 PM<br>
&gt; &gt; To: VTK<br>
&gt; &gt; Subject: [vtkusers] Create an approximate cross-section of a RT ROI<br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; Hi vtkUsers,<br>
&gt; &gt; <br>
&gt; &gt; I have a set of contours in axial orientation representing a ROI. I<br>
&gt; &gt; need to sketch the ROI in coronal and sagittal plane, by connection
the<br>
&gt; &gt; points made from the intersection of the contours and the cutting
plane.<br>
&gt; &gt; Is there a function to do that in vtk or in ITK?<br>
&gt; &gt; <br>
&gt; &gt; I know the result is not &quot;precise&quot; in a sense that the
contours make<br>
&gt; &gt; this way is not always consistent between themselves. But it seemed
to<br>
&gt; &gt; be the only viable way to sketch a ROI in a multi-planar rendering in<br>
&gt; &gt; real time.<br>
&gt; &gt; <br>
&gt; &gt; Many thanks!<br>
&gt; &gt; Xiaofeng<br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; &gt; ________________________________<br>
&gt; &gt; <br>
&gt; &gt; The New Busy is not the old busy. Search, chat and e-mail from your<br>
&gt; &gt; inbox. Get started.<br>
&gt; &gt;
&lt;http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL<br>
&gt; &gt; :ON:WL:en-US:WM_HMP:042010_3&gt; <br>
&gt; &gt; <br>
&gt; <br>
&gt; -- <br>
&gt; GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!<br>
&gt; 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>