<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
I create my own library to read RT structure. There's a also article in Insight Journal that discusses about import RT Structure using Insight. You should be able to find it with a simple google search.<BR><BR>Xiaofeng<BR><BR><BR> <BR>> Date: Tue, 4 May 2010 17:54:36 +0100<BR>> Subject: Re: [vtkusers] Fwd: Re: RE: Create an approximate cross-section of a RT ROI<BR>> From: jothybasu@gmail.com<BR>> To: xf10036@hotmail.com<BR>> CC: lars-friedrich@gmx.net; vtkusers@vtk.org<BR>> <BR>> I cut with vtkCutter,but the first step is to read RT structure data<BR>> as vtkPolyData. How would you do that?<BR>> <BR>> I found one example in gdcm, but its in c++ and it was very comples<BR>> for me who use python,to understand.<BR>> <BR>> An example of reading RT structure should be nice one for vtk wiki!<BR>> <BR>> Thanks,<BR>> <BR>> Jothy<BR>> <BR>> On Tue, May 4, 2010 at 5:44 PM, Xiaofeng Z <xf10036@hotmail.com> wrote:<BR>> > Some vtkCutter and vtkVoxelContoursToSurfaceFilter test example should tell<BR>> > the story well.<BR>> ><BR>> > Xiaofeng<BR>> ><BR>> ><BR>> ><BR>> >> Date: Tue, 4 May 2010 17:12:31 +0100<BR>> >> Subject: Re: [vtkusers] Fwd: Re: RE: Create an approximate cross-section<BR>> >> of a RT ROI<BR>> >> From: jothybasu@gmail.com<BR>> >> To: xf10036@hotmail.com<BR>> >> CC: lars-friedrich@gmx.net; vtkusers@vtk.org<BR>> >><BR>> >> Hi Guys,<BR>> >><BR>> >> You seems to be creating some dicom RT viewer, are you importing RT<BR>> >> structs into your applications and converting into 3D meshes. If yes,<BR>> >> could some one give me the steps involved in that, maybe some<BR>> >> flowchart type ( or if you don't mind, the function in any language).<BR>> >> After some time I might have to do this , so if anyone can give me<BR>> >> some guidance so my life will be easier :).<BR>> >><BR>> >> Thanks,<BR>> >><BR>> >> Jothy<BR>> >><BR>> >> On Tue, May 4, 2010 at 4:59 PM, Xiaofeng Z <xf10036@hotmail.com> wrote:<BR>> >> > Thanks for the information. I may revisit this later. Maybe I did<BR>> >> > something wrong that causes the performance issue.<BR>> >> ><BR>> >> > I use a dual Xeon computer. Although I have eight processing cores, the<BR>> >> > speed of each core is not very fast (2GHz).<BR>> >> ><BR>> >> > Another reason I am not using vtkVoxelContoursToSurfaceFilter is that<BR>> >> > it<BR>> >> > requires contours with integer vertices while dicom RT contour points<BR>> >> > can be<BR>> >> > off voxel centers. I wonder what do you do to make sure you don't loss<BR>> >> > resolution.<BR>> >> ><BR>> >> > Thanks!<BR>> >> ><BR>> >> > Xiaofeng<BR>> >> ><BR>> >> ><BR>> >> ><BR>> >> >> Date: Tue, 4 May 2010 17:50:37 +0200<BR>> >> >> From: lars-friedrich@gmx.net<BR>> >> >> Subject: Re: RE: [vtkusers] Fwd: Re: RE: Create an approximate<BR>> >> >> cross-section of a RT ROI<BR>> >> >> To: xf10036@hotmail.com; vtkusers@vtk.org<BR>> >> >><BR>> >> >> No, using a 'modern' PC is usually sufficient, all keeps flowing when a<BR>> >> >> user interactively modifies the cut plane (although 3 planes are cut<BR>> >> >> simultaneously and a 3D scene is updated as well). In our case we<BR>> >> >> usually<BR>> >> >> represent the 3D structures with transparency; as we update the 3D<BR>> >> >> scene as<BR>> >> >> well this makes the application sometimes a bit stuttering. But as I<BR>> >> >> understand your plan you do not have to update any 3D scene during<BR>> >> >> cutting.<BR>> >> >> The cutting is really fast.<BR>> >> >><BR>> >> >> lars<BR>> >> >><BR>> >> >> -------- Original-Nachricht --------<BR>> >> >> > Datum: Tue, 4 May 2010 11:12:05 -0400<BR>> >> >> > Von: Xiaofeng Z <xf10036@hotmail.com><BR>> >> >> > An: lars-friedrich@gmx.net, VTK <vtkusers@vtk.org><BR>> >> >> > Betreff: RE: [vtkusers] Fwd: Re: RE: Create an approximate<BR>> >> >> > cross-section<BR>> >> >> > of a RT ROI<BR>> >> >><BR>> >> >> ><BR>> >> >> > Lars,<BR>> >> >> ><BR>> >> >> ><BR>> >> >> ><BR>> >> >> > Is there any noticable lagging at all?<BR>> >> >> ><BR>> >> >> ><BR>> >> >> ><BR>> >> >> > Thanks!<BR>> >> >> > Xiaofeng<BR>> >> >> ><BR>> >> >> ><BR>> >> >> ><BR>> >> >> > > Date: Tue, 4 May 2010 16:34:24 +0200<BR>> >> >> > > From: lars-friedrich@gmx.net<BR>> >> >> > > To: vtkusers@vtk.org<BR>> >> >> > > Subject: [vtkusers] Fwd: Re: RE: Create an approximate<BR>> >> >> > > cross-section<BR>> >> >> > > of<BR>> >> >> > a RT ROI<BR>> >> >> > ><BR>> >> >> > ><BR>> >> >> > > Xiaofeng,<BR>> >> >> > ><BR>> >> >> > > I use a quite comparable approach for the same purpose as you, I<BR>> >> >> > > guess:<BR>> >> >> > I cut multiple (!) 3D RT structures in 3 orthogonal planes<BR>> >> >> > simultaneously<BR>> >> >> > and cut the referenced RT volume (CT) at the same time. The<BR>> >> >> > structures<BR>> >> >> > include quite complex anatomy such as the skeletons with many<BR>> >> >> > vertices.<BR>> >> >> > > In my implementation (and that is nothing more than I wrote in the<BR>> >> >> > morning) this works 'very' interactively. For me that is real-time<BR>> >> >> > enough ;)<BR>> >> >> > ><BR>> >> >> > > regards,<BR>> >> >> > ><BR>> >> >> > > lars<BR>> >> >> > ><BR>> >> >> > ><BR>> >> >> > > -------- Original-Nachricht --------<BR>> >> >> > > > Datum: Tue, 4 May 2010 09:37:22 -0400<BR>> >> >> > > > Von: Xiaofeng Z <xf10036@hotmail.com><BR>> >> >> > > > An: lars-friedrich@gmx.net<BR>> >> >> > > > Betreff: RE: [vtkusers] Create an approximate cross-section of a<BR>> >> >> > > > RT<BR>> >> >> > ROI<BR>> >> >> > ><BR>> >> >> > > ><BR>> >> >> > > > lars,<BR>> >> >> > > ><BR>> >> >> > > ><BR>> >> >> > > ><BR>> >> >> > > > I consider the method you described a more accurate way to do it.<BR>> >> >> > > > Unfortunately, vtkCutter is too slow to be used in real time.<BR>> >> >> > > ><BR>> >> >> > > ><BR>> >> >> > > ><BR>> >> >> > > > Thanks for your reply though!<BR>> >> >> > > ><BR>> >> >> > > > Xiaofeng<BR>> >> >> > > ><BR>> >> >> > > ><BR>> >> >> > > ><BR>> >> >> > > > > Date: Tue, 4 May 2010 07:55:33 +0200<BR>> >> >> > > > > From: lars-friedrich@gmx.net<BR>> >> >> > > > > Subject: Re: [vtkusers] Create an approximate cross-section of<BR>> >> >> > > > > a<BR>> >> >> > > > > RT<BR>> >> >> > ROI<BR>> >> >> > > > > To: xf10036@hotmail.com; vtkusers@vtk.org<BR>> >> >> > > > ><BR>> >> >> > > > > Hi Xiaofeng,<BR>> >> >> > > > ><BR>> >> >> > > > > just an idea:<BR>> >> >> > > > > - produce a surface from the axial contours by using<BR>> >> >> > > > vtkVoxelContoursToSurfaceFilter (which works quite well provided<BR>> >> >> > > > your<BR>> >> >> > source contours are<BR>> >> >> > > > evenly distributed)<BR>> >> >> > > > > - take vtkCutter(s) with plane implicit functions that define<BR>> >> >> > > > > your<BR>> >> >> > new<BR>> >> >> > > > contouring orientation(s) and cut the volume to produce new<BR>> >> >> > > > contours<BR>> >> >> > from<BR>> >> >> > > > that directions<BR>> >> >> > > > ><BR>> >> >> > > > > HTH,<BR>> >> >> > > > > lars<BR>> >> >> > > > ><BR>> >> >> > > > ><BR>> >> >> > > > > -------- Original-Nachricht --------<BR>> >> >> > > > > > Datum: Mon, 3 May 2010 20:12:22 -0400<BR>> >> >> > > > > > Von: Xiaofeng Z <xf10036@hotmail.com><BR>> >> >> > > > > > An: VTK <vtkusers@vtk.org><BR>> >> >> > > > > > Betreff: [vtkusers] Create an approximate cross-section of a<BR>> >> >> > > > > > RT<BR>> >> >> > ROI<BR>> >> >> > > > ><BR>> >> >> > > > > ><BR>> >> >> > > > > > Hi vtkUsers,<BR>> >> >> > > > > ><BR>> >> >> > > > > > I have a set of contours in axial orientation representing a<BR>> >> >> > > > > > ROI.<BR>> >> >> > I<BR>> >> >> > > > need<BR>> >> >> > > > > > to sketch the ROI in coronal and sagittal plane, by<BR>> >> >> > > > > > connection<BR>> >> >> > > > > > the<BR>> >> >> > > > points<BR>> >> >> > > > > > made from the intersection of the contours and the cutting<BR>> >> >> > > > > > plane.<BR>> >> >> > Is<BR>> >> >> > > > there<BR>> >> >> > > > > > a function to do that in vtk or in ITK?<BR>> >> >> > > > > ><BR>> >> >> > > > > > I know the result is not "precise" in a sense that the<BR>> >> >> > > > > > contours<BR>> >> >> > make<BR>> >> >> > > > this<BR>> >> >> > > > > > way is not always consistent between themselves. But it<BR>> >> >> > > > > > seemed<BR>> >> >> > > > > > to<BR>> >> >> > be<BR>> >> >> > > > the<BR>> >> >> > > > > > only viable way to sketch a ROI in a multi-planar rendering<BR>> >> >> > > > > > in<BR>> >> >> > real<BR>> >> >> > > > time.<BR>> >> >> > > > > ><BR>> >> >> > > > > > Many thanks!<BR>> >> >> > > > > > Xiaofeng<BR>> >> >> > > > > ><BR>> >> >> > > > > ><BR>> >> >> > > > > ><BR>> >> >> > > > > ><BR>> >> >> > > > > ><BR>> >> >> > > > > ><BR>> >> >> > > > > > _________________________________________________________________<BR>> >> >> > > > > > The New Busy is not the old busy. Search, chat and e-mail<BR>> >> >> > > > > > from<BR>> >> >> > your<BR>> >> >> > > > inbox.<BR>> >> >> > > > > ><BR>> >> >> > > ><BR>> >> >> ><BR>> >> >> ><BR>> >> >> > http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3<BR>> >> >> > > > ><BR>> >> >> > > > > --<BR>> >> >> > > > > GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!<BR>> >> >> > > > > Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01<BR>> >> >> > > ><BR>> >> >> > > > _________________________________________________________________<BR>> >> >> > > > Hotmail is redefining busy with tools for the New Busy. Get more<BR>> >> >> > > > from<BR>> >> >> > your<BR>> >> >> > > > inbox.<BR>> >> >> > > ><BR>> >> >> ><BR>> >> >> ><BR>> >> >> > http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2<BR>> >> >> > ><BR>> >> >> > > --<BR>> >> >> > > GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!<BR>> >> >> > > Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01<BR>> >> >> > ><BR>> >> >> > > --<BR>> >> >> > > GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!<BR>> >> >> > > Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01<BR>> >> >> > > _______________________________________________<BR>> >> >> > > Powered by www.kitware.com<BR>> >> >> > ><BR>> >> >> > > Visit other Kitware open-source projects at<BR>> >> >> > http://www.kitware.com/opensource/opensource.html<BR>> >> >> > ><BR>> >> >> > > Please keep messages on-topic and check the VTK FAQ at:<BR>> >> >> > http://www.vtk.org/Wiki/VTK_FAQ<BR>> >> >> > ><BR>> >> >> > > Follow this link to subscribe/unsubscribe:<BR>> >> >> > > http://www.vtk.org/mailman/listinfo/vtkusers<BR>> >> >> ><BR>> >> >> > _________________________________________________________________<BR>> >> >> > The New Busy is not the old busy. Search, chat and e-mail from your<BR>> >> >> > inbox.<BR>> >> >> ><BR>> >> >> ><BR>> >> >> > http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3<BR>> >> >><BR>> >> >> --<BR>> >> >> GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!<BR>> >> >> Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01<BR>> >> ><BR>> >> > ________________________________<BR>> >> > Hotmail has tools for the New Busy. Search, chat and e-mail from your<BR>> >> > inbox.<BR>> >> > Learn more.<BR>> >> > _______________________________________________<BR>> >> > Powered by www.kitware.com<BR>> >> ><BR>> >> > Visit other Kitware open-source projects at<BR>> >> > http://www.kitware.com/opensource/opensource.html<BR>> >> ><BR>> >> > Please keep messages on-topic and check the VTK FAQ at:<BR>> >> > http://www.vtk.org/Wiki/VTK_FAQ<BR>> >> ><BR>> >> > Follow this link to subscribe/unsubscribe:<BR>> >> > http://www.vtk.org/mailman/listinfo/vtkusers<BR>> >> ><BR>> >> ><BR>> ><BR>> > ________________________________<BR>> > Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox.<BR>> > Learn more.<BR>                                            <br /><hr />The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail. <a href='http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4' target='_new'>Get busy.</a></body>
</html>