[vtkusers] Create an approximate cross-section of a RT ROI
Scott Johnson
Scott.Johnson at neuwave.com
Tue May 4 11:15:07 EDT 2010
Hello Xiaofeng,
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.
I'll try vtkPolyDataMapper2D. Thanks for the pointer.
-- Scott
From: Xiaofeng Z [mailto:xf10036 at hotmail.com]
Sent: Tuesday, May 04, 2010 10:04 AM
To: lars-friedrich at gmx.net; Scott Johnson; VTK
Subject: RE: [vtkusers] Create an approximate cross-section of a RT ROI
Scott and lars,
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.
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:
vtkCoordinate* coordinate = vtkCoordinate::New();
coordinate->SetCoordinateSystemToWorld();
vtkPolyDataMapper2D* mapper = vtkPolyDataMapper2D::New();
mapper->SetColorModeToDefault();
mapper->SetTransformCoordinate(coordinate);
Regards,
Xiaofeng
> Date: Tue, 4 May 2010 16:36:14 +0200
> From: lars-friedrich at gmx.net
> Subject: Re: [vtkusers] Create an approximate cross-section of a RT ROI
> To: Scott.Johnson at neuwave.com; vtkusers at vtk.org; xf10036 at hotmail.com
>
> Scott,
>
> 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).
>
> regards,
>
> lars
>
> -------- Original-Nachricht --------
> > Datum: Tue, 4 May 2010 09:12:33 -0500
> > Von: "Scott Johnson" <Scott.Johnson at neuwave.com>
> > An: "Xiaofeng Z" <xf10036 at hotmail.com>, "VTK" <vtkusers at vtk.org>
> > Betreff: Re: [vtkusers] Create an approximate cross-section of a RT ROI
>
> > Hello Xiaofeng,
> >
> >
> >
> > I've been working on something similar, but am not quite there yet. I
> > can get you started.
> >
> >
> >
> > The general idea is that you will need to create a polygonal shape from
> > the contours in the RT structure set, then create a vtkPlane which
> > represents the plane you wish to cut. You can then create a pipeline
> > which looks something like:
> >
> >
> >
> > vtkCutter -> vtkPolyDataMapper -> vtkActor
> >
> >
> >
> > Set the properties of the actor to have EdgeVisibilityOn and an
> > EdgeColor or the cut shape will not be visible. The actor will show a
> > cross section of the ROI intersected with the plane.
> >
> >
> >
> > The issue I'm having is properly displaying the vtkActor with the
> > images. I've extended beyond axial sagittal and coronal and I seem to
> > be missing something in the coordinate conversions.
> >
> >
> >
> > Good luck.
> >
> >
> >
> > -- Scott
> >
> >
> >
> > From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On
> > Behalf Of Xiaofeng Z
> > Sent: Monday, May 03, 2010 7:12 PM
> > To: VTK
> > Subject: [vtkusers] Create an approximate cross-section of a RT ROI
> >
> >
> >
> > Hi vtkUsers,
> >
> > I have a set of contours in axial orientation representing a ROI. I
> > need to sketch the ROI in coronal and sagittal plane, by connection the
> > points made from the intersection of the contours and the cutting plane.
> > Is there a function to do that in vtk or in ITK?
> >
> > I know the result is not "precise" in a sense that the contours make
> > this way is not always consistent between themselves. But it seemed to
> > be the only viable way to sketch a ROI in a multi-planar rendering in
> > real time.
> >
> > Many thanks!
> > Xiaofeng
> >
> >
> >
> >
> > ________________________________
> >
> > The New Busy is not the old busy. Search, chat and e-mail from your
> > inbox. Get started.
> > <http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL
> > :ON:WL:en-US:WM_HMP:042010_3>
> >
>
> --
> GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
> Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
________________________________
Hotmail has tools for the New Busy. Search, chat and e-mail from your inbox. Learn more. <http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_1>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100504/60a313af/attachment.htm>
More information about the vtkusers
mailing list