<meta http-equiv="content-type" content="text/html; charset=utf-8"><div class="gmail_quote">On Thu, Oct 28, 2010 at 8:40 AM, Stuart Golodetz <span dir="ltr"><<a href="mailto:itk@gxstudios.net">itk@gxstudios.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#ffffff" text="#000000">
Hi H-B,<br>
<br>
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.<br>
<br>
Hope that helps!<br>
Stu</div></blockquote><div><br></div><div>Here is an example of how to visualize an ITK image:</div><div><br></div><meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://www.vtk.org/Wiki/ITK/Examples/Images/ImageToVTKImageFilter">http://www.vtk.org/Wiki/ITK/Examples/Images/ImageToVTKImageFilter</a><br>
<br><div>David </div></div>