Hi,<br>You will find here:<br> <a href="http://github.com/jeromevelut/Chiron">http://github.com/jeromevelut/Chiron</a><br>a plugin for ParaView that provides a medical imaging look&feel GUI. Although this is not released, I put two algos that may interest you:<br>
- vtkStraightenedCurvedPlanarReformation<br>- vtkStretchenedCurvedPlanarReformation<br><br>They take two inputs: <br>- an ImageData to reslice<br>- a polyline (vtkPolyData with polylines, such as the output of vtkSplineFilter) that defines the successive slice plane orientation<br>
<br>The documentation is in progress, I hope it will be sufficient for you.<br><br>HTH<br>Jerome<br><br><div class="gmail_quote">2010/1/28 toulgen <span dir="ltr"><<a href="mailto:toulgen@gmail.com">toulgen@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
No idea to propose.<br>
<br>
Thank you for your help.<br>
<br>
-----Message d'origine-----<br>
De : toulgen [mailto:<a href="mailto:toulgen@gmail.com">toulgen@gmail.com</a>]<br>
Envoyé : mardi 26 janvier 2010 17:53<br>
À : 'Bill Lorensen'; 'David Gobbi'<br>
Cc : '<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>'<br>
Objet : RE: [vtkusers] Extract a curvilinear slice of volume<br>
<div><div></div><div class="h5"><br>
<br>
Hi-vtkusers,<br>
<br>
After some trial weeks I am always blocked.<br>
I tried to extract the curvilinear plan with using the vtkPlanes class but<br>
that does not give good result.<br>
<br>
David/Bill can you give me more details concerning your suggestion.<br>
Have you an example?<br>
<br>
Thank you very much<br>
<br>
ToulGen<br>
<br>
<br>
-----Message d'origine-----<br>
De : Bill Lorensen [mailto:<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>]<br>
Envoyé : mercredi 16 décembre 2009 18:59<br>
À : David Gobbi<br>
Cc : toulgen; <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Objet : Re: [vtkusers] Extract a curvilinear slice of volume<br>
<br>
I have used 2) many times. Try it, you'll like it.<br>
<br>
Bill<br>
<br>
On Wed, Dec 16, 2009 at 12:15 PM, David Gobbi <<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>> wrote:<br>
> It's not an easy thing to do. Here's are possible methods:<br>
><br>
><br>
> 1) If you want the result to be an "image", then do the following:<br>
><br>
> Create a grid (i.e. a vtkImageData) of scalar type "float" and 3<br>
> scalar components. Set the extent, origin, and position to be the<br>
> same as that of the slice that you want to display.<br>
><br>
> Populate the grid with vectors that go from the voxel positions in<br>
> your slice (i.e. flat space) to the corresponding voxel position that<br>
> you want to interpolate from in the original image (i.e. the position<br>
> along your curved surface).<br>
><br>
> You can use this grid to make a vtkGridTransform, and you can use the<br>
> GridTransform in the SetTransform() method of vtkImageReslice.<br>
><br>
><br>
> 2) If you don't care what the data type of the output will be, you can<br>
> make a colored polydata surface as follows:<br>
><br>
> Create a polydata surface mesh i.e. create the geometry of the surface<br>
> that you wish to extract. Use very small polygons, i.e. the polygons<br>
> should be about the same size as your pixels.<br>
><br>
> Use vtkProbeFilter to probe your volume and set the scalars of the<br>
> surface mesh. Before doing this, you should convert the image to RGB<br>
> with vtkImageMapToColors.<br>
><br>
><br>
> Good luck, I've never tried these methods myself but there is no<br>
> reason why they shouldn't work.<br>
><br>
> David<br>
><br>
><br>
> On Wed, Dec 16, 2009 at 9:01 AM, toulgen <<a href="mailto:toulgen@gmail.com">toulgen@gmail.com</a>> wrote:<br>
>><br>
>> Hi vtk-users,<br>
>><br>
>> To extract the axial, the coronal and the sagittal slice I use the<br>
>> vtkImageReslice class.<br>
>><br>
>> I want to extract a curvilinear slice of volume?<br>
>><br>
>> What is class I can use?<br>
>><br>
>> Thx<br>
> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the VTK FAQ at:<br>
<a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
><br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</div></div></blockquote></div><br>