<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
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><FONT size=2 face=Consolas><FONT size=2 face=Consolas>
vtkCoordinate* coordinate = vtkCoordinate::New();<BR>
coordinate->SetCoordinateSystemToWorld();<BR>
vtkPolyDataMapper2D* mapper = vtkPolyDataMapper2D::New();<BR>
mapper->SetColorModeToDefault();<BR>
mapper->SetTransformCoordinate(coordinate);<BR></FONT></FONT>
<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<BR>                                            <br /><hr />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></body>
</html>