<div dir="ltr">I wonder whether these classes has any fix for the different coordinates used by DICOm and vtk?<br><br>Thank you<br><br>Jothy<br><br><div class="gmail_quote">On Mon, Jun 27, 2011 at 3:31 PM, Lic. José M. Rodriguez Bacallao <span dir="ltr"><<a href="mailto:jmrbcu@gmail.com">jmrbcu@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">so, when this classes will be available in stable vtk?<br>
<br>
right now I am working with an snapshot from vtk git.<br>
<br>
On 6/27/11, Aashish Chaudhary <<a href="mailto:aashish.chaudhary@kitware.com">aashish.chaudhary@kitware.com</a>> wrote:<br>
> Hi David,<br>
><br>
> What Aaron said + Awesome!! (one more time)<br>
><br>
> Looking at the features list, I think our project will be greatly<br>
> benefited by your work. Thanks for sharing your work.<br>
><br>
> Regards,<br>
> Aashish<br>
><br>
><br>
> On Mon, Jun 27, 2011 at 8:47 AM, Aaron Boxer <<a href="mailto:boxerab@gmail.com">boxerab@gmail.com</a>> wrote:<br>
>> Awesome!!! Nice work; can't wait to use these classes.<br>
>><br>
>> Aaron<br>
>><br>
>> On Sun, Jun 26, 2011 at 6:15 PM, David Gobbi <<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>><br>
>> wrote:<br>
>>> I'm pleased to announce that I have finally completed my work on several<br>
>>> new<br>
>>> image rendering classes for VTK. They are in the VTK git development<br>
>>> tree,<br>
>>> and a few of you have already tried them out (if you are one of those<br>
>>> people, note that several feature and performance enhancements were added<br>
>>> last week). More info can be found at the following wiki page:<br>
>>><br>
>>> <a href="http://www.vtk.org/Wiki/VTK/Image_Rendering_Classes" target="_blank">http://www.vtk.org/Wiki/VTK/Image_Rendering_Classes</a><br>
>>><br>
>>> In brief, these classes replace vtkImageActor and provide a much higher<br>
>>> level of functionality. They are new VTK actor and mapper classes<br>
>>> specifically meant for image viewing. What they are not: they are not<br>
>>> widgets or viewers, although they provide machinery that can be used to<br>
>>> write widget and viewer classes. In other words, they are meant for<br>
>>> people<br>
>>> who like to roll their own image viewers.<br>
>>><br>
>>> The three new classes that I recommend for people to use are the<br>
>>> following:<br>
>>> vtkImageSlice - the new actor class for images<br>
>>> vtkImageResliceMapper - mapper for drawing images for MPR viewers<br>
>>> vtkImageProperty - for controlling lookup tables, window/level, opacity,<br>
>>> etc<br>
>>><br>
>>> Typical use cases:<br>
>>><br>
>>> 1) For an MPR viewer, use vtkInteractorStyleImage and set it to your<br>
>>> desired<br>
>>> view orientation. Then set the following properties in<br>
>>> vtkImageResliceMapper:<br>
>>> mapper->SliceFacesCameraOn()<br>
>>> mapper->SliceAtFocalPointOn()<br>
>>> The interactor will then allow you to pan, zoom, window/level, and (in 3D<br>
>>> mode) rotate and slice. See<br>
>>> VTK/Examples/ImageProcessing/ImageInteractorReslice.py for an example.<br>
>>><br>
>>> 2) For a 3D ortho object, use multiple vtkImageResliceMapper objects, and<br>
>>> for each one make a vtkPlane that describes the normal and position of<br>
>>> the<br>
>>> slice to extract. Then call these methods:<br>
>>> mapper->SetSlicePlane(plane)<br>
>>> mapper->ResampleToScreenPixelsOff()<br>
>>> Turning the "ResampleToScreenPixels" option Off makes rotation faster, so<br>
>>> it<br>
>>> is recommended when rotations are going to be common operations.<br>
>>> Example:<br>
>>> VTK/Rendering/Testing/Cxx/TestImageResliceMapperOffAxis.cxx<br>
>>><br>
>>> Features:<br>
>>> 1) oblique views (obviously!)<br>
>>> 2) nearest-neighbor, linear, and cubic interpolation<br>
>>> 3) modify image orientation with respect to world coords by setting<br>
>>> vtkImageSlice's UserMatrix<br>
>>> 4) fully multi-threaded reslicing and color mapping operations<br>
>>> 5) streaming, i.e. only pulls the data needed for rendering<br>
>>> 6) works well with very large images (as long as they fit in memory)<br>
>>> 7) LOD-style interaction (switches to faster rendering for interaction)<br>
>>> 8) blend images by adding multiple vtkImageSlice objects to a<br>
>>> vtkImageStack<br>
>>> 9) checkerboard images by setting "CheckerboardOn" in the<br>
>>> vtkImageProperty<br>
>>> 10) thick-slab views (see vtkImageResliceMapper for details)<br>
>>> 11) works with vtkCellPicker for picking image voxels as points or cells<br>
>>><br>
>>> For large image viewing, on a 4GB computer (64-bit OS X) I've displayed<br>
>>> images up to 3GB in size with full interactivity, but YMMV. As long as<br>
>>> the<br>
>>> mapper's ResampleToScreenPixels option is On, the mapper will never try<br>
>>> to<br>
>>> load the full image onto the GPU (which is what causes the vtkImageActor<br>
>>> to<br>
>>> be slow for large images). The size of the images that you can display<br>
>>> is<br>
>>> limited only by main memory, I have displayed stacks of RGB images that<br>
>>> are<br>
>>> 10000x10000 pixels in size.<br>
>>><br>
>>> I do not plan to push these into the VTK 5.8 release (even if Kitware<br>
>>> were<br>
>>> to give me the go-ahead), because the VTK development tree has diverged<br>
>>> too<br>
>>> far from the VTK 5.8 release tree. These new image classes are only<br>
>>> possible due to recent improvements that I've made to the picker, lookup<br>
>>> table, and image reslice classes and they probably depend on a handful of<br>
>>> recent changes made by other people, as well.<br>
>>><br>
>>> - David<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<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>
><br>
> --<br>
> | Aashish Chaudhary<br>
> | R&D Engineer<br>
> | Kitware Inc.<br>
> | <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><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>
--<br>
Lic. José M. Rodriguez Bacallao<br>
Centro de Biofisica Medica<br>
-----------------------------------------------------------------<br>
Todos somos muy ignorantes, lo que ocurre es que no todos ignoramos lo mismo.<br>
<br>
Recuerda: El arca de Noe fue construida por aficionados, el titanic<br>
por profesionales<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>
</blockquote></div><br></div>