[Insight-users] i cant see image with out using vtk

David Doria daviddoria at gmail.com
Thu Oct 28 08:52:23 EDT 2010


On Thu, Oct 28, 2010 at 8:40 AM, Stuart Golodetz <itk at gxstudios.net> wrote:

>  Hi H-B,
>
> You're reading in the image and running it through a
> GradientMagnitudeImageFilter, but then you're not actually doing anything
> with it -- it's therefore not surprising that the image isn't being
> displayed (you never wrote the code to display it). The key point to bear in
> mind is that ITK is an *image processing* toolkit, not a *visualization*
> toolkit (that's what VTK is for). If you want to visualize things, you
> either have to use VTK, or visualize the image some other way (for instance,
> the way I do it in my code is to create OpenGL textures from the images and
> render texture-mapped polygons to visualize them). Just loading in the image
> isn't enough -- all that does is read the image into memory.
>
> Hope that helps!
> Stu
>

Here is an example of how to visualize an ITK image:

http://www.vtk.org/Wiki/ITK/Examples/Images/ImageToVTKImageFilter

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20101028/7b3e61f2/attachment.htm>


More information about the Insight-users mailing list