<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: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";}
p.ecxmsonormal, li.ecxmsonormal, div.ecxmsonormal
        {mso-style-name:ecxmsonormal;
        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";}
p.ecxmsochpdefault, li.ecxmsochpdefault, div.ecxmsochpdefault
        {mso-style-name:ecxmsochpdefault;
        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.ecxmsohyperlink
        {mso-style-name:ecxmsohyperlink;}
span.ecxmsohyperlinkfollowed
        {mso-style-name:ecxmsohyperlinkfollowed;}
span.ecxemailstyle18
        {mso-style-name:ecxemailstyle18;}
p.ecxmsonormal1, li.ecxmsonormal1, div.ecxmsonormal1
        {mso-style-name:ecxmsonormal1;
        mso-margin-top-alt:auto;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.ecxmsohyperlink1
        {mso-style-name:ecxmsohyperlink1;
        color:blue;
        text-decoration:underline;}
span.ecxmsohyperlinkfollowed1
        {mso-style-name:ecxmsohyperlinkfollowed1;
        color:purple;
        text-decoration:underline;}
span.ecxemailstyle181
        {mso-style-name:ecxemailstyle181;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
p.ecxmsochpdefault1, li.ecxmsochpdefault1, div.ecxmsochpdefault1
        {mso-style-name:ecxmsochpdefault1;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:10.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle28
        {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'>vtkPolyDataTransformation is new to me.  I&#8217;ll give it a try.<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 was trying to position and orient the vtkActor to get it in
the correct spot.<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'>Thanks<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> Thursday, May 06, 2010 9:32 AM<br>
<b>To:</b> Scott Johnson; lars-friedrich@gmx.net; 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><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Scott,<br>
&nbsp;<br>
Sorry for not responding earlier.&nbsp; I was out on a trip.<br>
&nbsp;<br>
Have you resolved your issue yet? Did you get a vtkPolyData from cutting the
sphere?&nbsp; It seems your cutting plane is not orientated the same way as
your reslicer.&nbsp; What I did is first cut the structure with the orientaiton
and the origin corresponding to the reslicer, then use the
vtkPodyDataTransformation to transform the plydata from the patient coordiation
to the world coordination of vtkImageViewer.<br>
<br>
Xiaofeng<br>
<br>
<br>
&nbsp;<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 id=stopSpelling>

</span></div>

<p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif"'>Subject: RE: [vtkusers] Create an
approximate cross-section of a RT ROI<br>
Date: Tue, 4 May 2010 14:35:09 -0500<br>
From: Scott.Johnson@neuwave.com<br>
To: xf10036@hotmail.com; lars-friedrich@gmx.net; vtkusers@vtk.org<o:p></o:p></span></p>

<div>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hello Xiaofeng,</span><span style='font-size:10.0pt;font-family:
"Verdana","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>&nbsp;</span><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I&#8217;ll attach a picture of what I&#8217;m seeing.&nbsp; The image shows
a coronal, sagittal, axial, and 3D MIP rendering.</span><span style='font-size:
10.0pt;font-family:"Verdana","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>&nbsp;</span><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>The plane connected to the cutter has the same normal as the
vtkImageReslice that I&#8217;m using to extract the images.&nbsp; The vtkImageReslice
is the input to the vtkImageViewer2.&nbsp; I&#8217;ve added the vtkActor showing the
cut ROI to the vtkRenderer managed by the vtkImageViewer2.&nbsp; The little
green lines on the coronal and sagittal images should be the resulting circles
from cutting the sphere and they should appear over the image at the little
bright spots.&nbsp; They do show up when I get to the appropriate slice.</span><span
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>&nbsp;</span><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I&#8217;ve tried changing the orientation of the vtkActor to match the
ResliceAxes and the inverse of the ResliceAxes and get the same result.
&nbsp;This works on the axial slices with no extra processing, but not for the
coronal and sagittal images.</span><span style='font-size:10.0pt;font-family:
"Verdana","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>&nbsp;</span><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I&#8217;m sure I&#8217;m missing something fundamental, I just haven&#8217;t been
able to figure out what it is.</span><span style='font-size:10.0pt;font-family:
"Verdana","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>&nbsp;</span><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Thanks</span><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>&nbsp;</span><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-- Scott</span><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>&nbsp;</span><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><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"'>
vtkusers-bounces@vtk.org [mailto:vtkusers-bounces@vtk.org] <b>On Behalf Of </b>Xiaofeng
Z<br>
<b>Sent:</b> Tuesday, May 04, 2010 10:20 AM<br>
<b>To:</b> Scott Johnson; lars-friedrich@gmx.net; VTK<br>
<b>Subject:</b> Re: [vtkusers] Create an approximate cross-section of a RT ROI</span><span
style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>&nbsp;<o:p></o:p></span></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif"'>Scott,<br>
&nbsp;<br>
What I did is to transform the contour using the inverse of the&nbsp;reslice
axies as the transform matrix, works pretty well in transversal!&nbsp; Should
work in the other orientation too.<br>
<br>
Xiaofeng<br>
<br>
<br>
<br>
&nbsp;<br>
&gt; Subject: RE: [vtkusers] Create an approximate cross-section of a RT ROI<br>
&gt; Date: Tue, 4 May 2010 09:52:55 -0500<br>
&gt; From: Scott.Johnson@neuwave.com<br>
&gt; To: lars-friedrich@gmx.net; vtkusers@vtk.org; xf10036@hotmail.com<br>
&gt; <br>
&gt; Thanks Lars.<br>
&gt; <br>
&gt; I got around that problem, but now I've moved to using vtkImageReslice for
creating the other slice orientations and the ROI slice is floating out in
space away from the images. It works fine for the axial but sagittal, coronal,
and oblique slices of the ROI are in the wrong location.<br>
&gt; <br>
&gt; I've been playing with origins, centers, and positions of the vtkActor
connected to the vtkCutter without any luck.<br>
&gt; <br>
&gt; -- Scott<br>
&gt; <br>
&gt; -----Original Message-----<br>
&gt; From: Lars Friedrich Lars [mailto:lars-friedrich@gmx.net] <br>
&gt; Sent: Tuesday, May 04, 2010 9:36 AM<br>
&gt; To: Scott Johnson; vtkusers@vtk.org; xf10036@hotmail.com<br>
&gt; Subject: Re: [vtkusers] Create an approximate cross-section of a RT ROI<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
is redefining busy with tools for the New Busy. Get more from your inbox. <a
href="http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2">See
how.</a><o:p></o:p></span></p>

</div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'><o:p>&nbsp;</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
is redefining busy with tools for the New Busy. Get more from your inbox. <a
href="http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2"
target="_new">See how.</a><o:p></o:p></span></p>

</div>

</body>

</html>