I&#39;ve tried this solution in python string to latin1 look:<div>self.string = string.encode(&quot;latin-1&quot;)</div><div><br></div><div>but it didn&#39;t work and I&#39;d like to put some specials characters on my project like &quot;~ , ´  and ç&quot; .</div>

<div><br></div><div>Could you help me?</div><div>Thanks<br><div><br><div class="gmail_quote">On Mon, Dec 13, 2010 at 3:00 PM,  <span dir="ltr">&lt;<a href="mailto:vtkusers-request@vtk.org">vtkusers-request@vtk.org</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Send vtkusers mailing list submissions to<br>
        <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
        <a href="mailto:vtkusers-request@vtk.org">vtkusers-request@vtk.org</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:vtkusers-owner@vtk.org">vtkusers-owner@vtk.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of vtkusers digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
   1. Problem with viewing vtkReebGraph (Mehdi Ben Larbi)<br>
   2. Re: Triangle Geometry and Vertices<br>
      (Paulo Henrique Junqueira Amorim)<br>
   3. Re: Problem with viewing vtkReebGraph (Jim Peterson)<br>
   4. Re: Triangle Geometry and Vertices (David Gobbi)<br>
   5. Re: Problem with viewing vtkReebGraph (David Doria)<br>
   6. Re: vtk.vtkExodusIIReader: information in GetOutput()?<br>
      (Nico Schl?mer)<br>
   7. Re: vtkPExodusIIWriter? (Nico Schl?mer)<br>
   8. DICOM information (Xiaopeng Yang)<br>
   9. Re: [Insight-users] DICOM information (Luis Ibanez)<br>
  10. Re: [Insight-users] DICOM information (Xiaopeng Yang)<br>
  11. Re: bug 0009618 and UTF 8 text rendering fix question<br>
      (Roger Bramon Feixas)<br>
  12. Re: VTK/Examples/Cxx/ImageData/IterateImageData (Rachel)<br>
  13. Re: VTK/Examples/Cxx/ImageData/IterateImageData (David Doria)<br>
  14. Re: VTK/Examples/Cxx/ImageData/IterateImageData (Rachel)<br>
  15. Re: Link error when building VTK with boost support in Visual<br>
      Studio 2010 (Jeff Baumes)<br>
  16. About the VTK_USE_ANSI_STDLIB (???)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Sun, 12 Dec 2010 21:21:44 +0100<br>
From: Mehdi Ben Larbi &lt;<a href="mailto:donniebrasco912@gmail.com">donniebrasco912@gmail.com</a>&gt;<br>
Subject: [vtkusers] Problem with viewing vtkReebGraph<br>
To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Message-ID:<br>
        &lt;AANLkTikOCPUx1rKV+AHXHtWEPWcaFowsPO5=<a href="mailto:Y%2BR9Yt3c@mail.gmail.com">Y+R9Yt3c@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
Hello,<br>
<br>
I&#39;m new to VTK,i&#39;m working on a 3D indexing project for my research so i<br>
need to use Reeb&#39;s graph.<br>
I have been trying to view vtkReebGraph since 2 days now,i have he correct<br>
data but i&#39;m not able to display it.<br>
I&#39;m developing on Java and this is my code,the view part copied form this<br>
one <a href="http://www.vtk.org/Wiki/VTK/Examples/Graphs/VisualizeDirectedGraph" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Graphs/VisualizeDirectedGraph</a> i<br>
just translated it to Java  :<br>
<br>
vtkPolyDataToReebGraphFilter surfaceReebGraphFilter = new<br>
&gt; vtkPolyDataToReebGraphFilter();<br>
&gt;<br>
<br>
<br>
&gt;         surfaceReebGraphFilter.SetInput(reader.GetOutput());<br>
&gt;<br>
&gt;         surfaceReebGraphFilter.Update();<br>
&gt;<br>
&gt;         vtkReebGraph surfaceReebGraph = surfaceReebGraphFilter.GetOutput();<br>
&gt;<br>
&gt;         System.out.println(surfaceReebGraph.Print());<br>
&gt;<br>
&gt;<br>
&gt;          vtkGraphLayoutView graphLayoutView =new  vtkGraphLayoutView ();<br>
&gt;<br>
&gt;          vtkGraphLayout layout =     new   vtkGraphLayout ();<br>
&gt;          vtkSimple2DLayoutStrategy strategy = new<br>
&gt; vtkSimple2DLayoutStrategy ();<br>
&gt;          layout.SetInput(surfaceReebGraph);<br>
&gt;          layout.SetLayoutStrategy(strategy);<br>
&gt; ......<br>
&gt;<br>
<br>
<br>
The Graph is correctly printed but i have this weird error : Exception in<br>
thread &quot;main&quot; java.lang.UnsatisfiedLinkError:<br>
vtk.vtkGraphLayoutView.VTKInit()J<br>
<br>
The PATH is correctly set so i don&#39;t know where it may come from.<br>
Can you please help me ? I&#39;m desperate.<br>
Maybe another method to display ReebGraph without using the graphLayoutView<br>
?<br>
<br>
Thanks a lot.<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20101212/0569a423/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20101212/0569a423/attachment-0001.htm</a>&gt;<br>


<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Sun, 12 Dec 2010 18:58:54 -0200<br>
From: Paulo Henrique Junqueira Amorim &lt;<a href="mailto:paulojamorim@gmail.com">paulojamorim@gmail.com</a>&gt;<br>
Subject: Re: [vtkusers] Triangle Geometry and Vertices<br>
To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Cc: David Gobbi &lt;<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>&gt;<br>
Message-ID:<br>
        &lt;AANLkTinA4t=M=<a href="mailto:R2mGig%2BtnTezo_LCMyV-vG5_4SDL%2BCj@mail.gmail.com">R2mGig+tnTezo_LCMyV-vG5_4SDL+Cj@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
Thank&#39;s David and Jim.<br>
<br>
Generate a triangle is really what I wanted.<br>
<br>
By the same token, there is some way from a vtkPolyData, generate a mesh of<br>
triangles more regular?<br>
<br>
I would like to improve the mesh for use in finite elements.<br>
<br>
Ragards,<br>
Paulo<br>
<br>
<br>
<br>
On 12 December 2010 14:04, David Gobbi &lt;<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>&gt; wrote:<br>
<br>
&gt; I&#39;m going to throw in a little addition.  You say &quot;triangle verts&quot; so<br>
&gt; I&#39;m guessing<br>
&gt; you want your cells to be triangles, not verts.  If that is the case,<br>
&gt; the code you<br>
&gt; really need is as follows:<br>
&gt;<br>
&gt;  ids = vtkIdList()<br>
&gt;  ids.SetNumberOfIds(3)<br>
&gt;<br>
&gt;  for i in xrange(3):<br>
&gt;     ids.SetId(i, i)<br>
&gt;     points.InsertNextPoint(X[i],Y[i],Z[i])<br>
&gt;<br>
&gt;  vertices.InsertNextCell(ids) # call for every cell, not for every point<br>
&gt;<br>
&gt;  polydata = vtkPolyData()<br>
&gt;  polydata.SetPoints(points)<br>
&gt;  polydata.SetPolys(vertices)  # use SetPolys for triangles<br>
&gt;  polydata.Update()<br>
&gt;<br>
&gt; The above code will create a polydata that has one triangle.<br>
&gt;<br>
&gt;  David<br>
&gt;<br>
&gt;<br>
&gt; On Sun, Dec 12, 2010 at 8:43 AM, David Gobbi &lt;<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt; &gt;<br>
&gt; &gt; On Sun, Dec 12, 2010 at 6:39 AM, Jim Peterson &lt;<a href="mailto:jimcp@cox.net">jimcp@cox.net</a>&gt; wrote:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Paulo,<br>
&gt; &gt;&gt; I am no Python expert, but if I understand the sequence of events, you<br>
&gt; should create the polydata object before writing the file.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Hope that helps,<br>
&gt; &gt;&gt; Jim<br>
&gt; &gt;<br>
&gt; &gt; What Jim said.  Also, the id list is never filled in.  The following code<br>
&gt; is wrong:<br>
&gt; &gt;<br>
&gt; &gt; ids = vtkIdList()<br>
&gt; &gt; ids.SetNumberOfIds(3)<br>
&gt; &gt;<br>
&gt; &gt; for i in xrange(3):<br>
&gt; &gt;     ids.SetId(i, i)<br>
&gt; &gt;     points.InsertNextPoint(X[i],Y[i],Z[i])<br>
&gt; &gt;     vertices.InsertNextCell(ids)<br>
&gt; &gt;<br>
&gt; &gt; To fix it, you have two choices.  You can have all three verts in the<br>
&gt; same cell:<br>
&gt; &gt;<br>
&gt; &gt; ids = vtkIdList()<br>
&gt; &gt; ids.SetNumberOfIds(3)<br>
&gt; &gt;<br>
&gt; &gt; for i in xrange(3):<br>
&gt; &gt;     ids.SetId(i, i)<br>
&gt; &gt;     points.InsertNextPoint(X[i],Y[i],Z[i])<br>
&gt; &gt;<br>
&gt; &gt; vertices.InsertNextCell(ids)<br>
&gt; &gt; Or you can have each vert in its own cell:<br>
&gt; &gt;<br>
&gt; &gt; ids = vtkIdList()<br>
&gt; &gt; ids.SetNumberOfIds(1)<br>
&gt; &gt;<br>
&gt; &gt; for i in xrange(3):<br>
&gt; &gt;     ids.SetId(0, i)<br>
&gt; &gt;     points.InsertNextPoint(X[i],Y[i],Z[i])<br>
&gt; &gt;     vertices.InsertNextCell(ids)<br>
&gt; &gt;<br>
&gt; &gt; In the &quot;for&quot; loop, you were calling vertices.InsertNextCell(ids)<br>
&gt; &gt; when &quot;ids&quot; still had some unititialized values, since the three<br>
&gt; &gt; ids values were not filled in until the third loop iteration.<br>
&gt; &gt;<br>
&gt; &gt;   - David<br>
&gt;<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20101212/24dcaa9d/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20101212/24dcaa9d/attachment-0001.htm</a>&gt;<br>


<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Sun, 12 Dec 2010 16:10:15 -0500<br>
From: Jim Peterson &lt;<a href="mailto:jimcp@cox.net">jimcp@cox.net</a>&gt;<br>
Subject: Re: [vtkusers] Problem with viewing vtkReebGraph<br>
To: Mehdi Ben Larbi &lt;<a href="mailto:donniebrasco912@gmail.com">donniebrasco912@gmail.com</a>&gt;<br>
Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Message-ID: &lt;<a href="mailto:4D053A37.3050801@cox.net">4D053A37.3050801@cox.net</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Mehdi,<br>
The unsatisfied link error would mean you have not loaded the<br>
vtkViewsJava library in order to have access to the native vtk functions<br>
for the vtkGraphLayout class.<br>
<br>
I hope that helps,<br>
Jim<br>
<br>
Mehdi Ben Larbi wrote:<br>
&gt; Hello,<br>
&gt;<br>
&gt; I&#39;m new to VTK,i&#39;m working on a 3D indexing project for my research so<br>
&gt; i need to use Reeb&#39;s graph.<br>
&gt; I have been trying to view vtkReebGraph since 2 days now,i have he<br>
&gt; correct data but i&#39;m not able to display it.<br>
&gt; I&#39;m developing on Java and this is my code,the view part copied form<br>
&gt; this one<br>
&gt; <a href="http://www.vtk.org/Wiki/VTK/Examples/Graphs/VisualizeDirectedGraph" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Graphs/VisualizeDirectedGraph</a> i<br>
&gt; just translated it to Java  :<br>
&gt;<br>
&gt;     vtkPolyDataToReebGraphFilter surfaceReebGraphFilter = new<br>
&gt;     vtkPolyDataToReebGraphFilter();<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;             surfaceReebGraphFilter.SetInput(reader.GetOutput());<br>
&gt;<br>
&gt;             surfaceReebGraphFilter.Update();<br>
&gt;<br>
&gt;             vtkReebGraph surfaceReebGraph =<br>
&gt;     surfaceReebGraphFilter.GetOutput();<br>
&gt;<br>
&gt;             System.out.println(surfaceReebGraph.Print());<br>
&gt;<br>
&gt;<br>
&gt;              vtkGraphLayoutView graphLayoutView =new<br>
&gt;     vtkGraphLayoutView ();<br>
&gt;<br>
&gt;              vtkGraphLayout layout =     new   vtkGraphLayout ();<br>
&gt;              vtkSimple2DLayoutStrategy strategy = new<br>
&gt;     vtkSimple2DLayoutStrategy ();<br>
&gt;              layout.SetInput(surfaceReebGraph);<br>
&gt;              layout.SetLayoutStrategy(strategy);<br>
&gt;     ......<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; The Graph is correctly printed but i have this weird error : Exception<br>
&gt; in thread &quot;main&quot; java.lang.UnsatisfiedLinkError:<br>
&gt; vtk.vtkGraphLayoutView.VTKInit()J<br>
&gt;<br>
&gt; The PATH is correctly set so i don&#39;t know where it may come from.<br>
&gt; Can you please help me ? I&#39;m desperate.<br>
&gt; Maybe another method to display ReebGraph without using the<br>
&gt; graphLayoutView ?<br>
&gt;<br>
&gt; Thanks a lot.<br>
&gt;<br>
&gt; ------------------------------------------------------------------------<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; 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>
&gt;<br>
&gt; 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>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Sun, 12 Dec 2010 14:17:11 -0700<br>
From: David Gobbi &lt;<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>&gt;<br>
Subject: Re: [vtkusers] Triangle Geometry and Vertices<br>
To: Paulo Henrique Junqueira Amorim &lt;<a href="mailto:paulojamorim@gmail.com">paulojamorim@gmail.com</a>&gt;<br>
Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Message-ID:<br>
        &lt;<a href="mailto:AANLkTimu%2BNHHeLFss1A0grqpMs7WLgJMSopNO48uBAhB@mail.gmail.com">AANLkTimu+NHHeLFss1A0grqpMs7WLgJMSopNO48uBAhB@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
Hi Paulo,<br>
<br>
You can use vtkMeshQuality to compute the quality of a mesh, but I don&#39;t<br>
think there is anything in VTK for improving the quality of a mesh.<br>
 Hopefully someone will tell me that I&#39;m wrong about this...<br>
<br>
  David<br>
<br>
<br>
On Sun, Dec 12, 2010 at 1:58 PM, Paulo Henrique Junqueira Amorim &lt;<br>
<a href="mailto:paulojamorim@gmail.com">paulojamorim@gmail.com</a>&gt; wrote:<br>
&gt; Thank&#39;s David and Jim.<br>
&gt;<br>
&gt; Generate a triangle is really what I wanted.<br>
&gt;<br>
&gt; By the same token, there is some way from a vtkPolyData, generate a mesh<br>
of<br>
&gt; triangles more regular?<br>
&gt;<br>
&gt; I would like to improve the mesh for use in finite elements.<br>
&gt;<br>
&gt; Ragards,<br>
&gt; Paulo<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On 12 December 2010 14:04, David Gobbi &lt;<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m going to throw in a little addition.  You say &quot;triangle verts&quot; so<br>
&gt;&gt; I&#39;m guessing<br>
&gt;&gt; you want your cells to be triangles, not verts.  If that is the case,<br>
&gt;&gt; the code you<br>
&gt;&gt; really need is as follows:<br>
&gt;&gt;<br>
&gt;&gt;  ids = vtkIdList()<br>
&gt;&gt;  ids.SetNumberOfIds(3)<br>
&gt;&gt;<br>
&gt;&gt;  for i in xrange(3):<br>
&gt;&gt;     ids.SetId(i, i)<br>
&gt;&gt;     points.InsertNextPoint(X[i],Y[i],Z[i])<br>
&gt;&gt;<br>
&gt;&gt;  vertices.InsertNextCell(ids) # call for every cell, not for every point<br>
&gt;&gt;<br>
&gt;&gt;  polydata = vtkPolyData()<br>
&gt;&gt;  polydata.SetPoints(points)<br>
&gt;&gt;  polydata.SetPolys(vertices)  # use SetPolys for triangles<br>
&gt;&gt;  polydata.Update()<br>
&gt;&gt;<br>
&gt;&gt; The above code will create a polydata that has one triangle.<br>
&gt;&gt;<br>
&gt;&gt;  David<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Sun, Dec 12, 2010 at 8:43 AM, David Gobbi &lt;<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On Sun, Dec 12, 2010 at 6:39 AM, Jim Peterson &lt;<a href="mailto:jimcp@cox.net">jimcp@cox.net</a>&gt; wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Paulo,<br>
&gt;&gt; &gt;&gt; I am no Python expert, but if I understand the sequence of events, you<br>
&gt;&gt; &gt;&gt; should create the polydata object before writing the file.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Hope that helps,<br>
&gt;&gt; &gt;&gt; Jim<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; What Jim said.  Also, the id list is never filled in.  The following<br>
&gt;&gt; &gt; code is wrong:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; ids = vtkIdList()<br>
&gt;&gt; &gt; ids.SetNumberOfIds(3)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; for i in xrange(3):<br>
&gt;&gt; &gt;     ids.SetId(i, i)<br>
&gt;&gt; &gt;     points.InsertNextPoint(X[i],Y[i],Z[i])<br>
&gt;&gt; &gt;     vertices.InsertNextCell(ids)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; To fix it, you have two choices.  You can have all three verts in the<br>
&gt;&gt; &gt; same cell:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; ids = vtkIdList()<br>
&gt;&gt; &gt; ids.SetNumberOfIds(3)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; for i in xrange(3):<br>
&gt;&gt; &gt;     ids.SetId(i, i)<br>
&gt;&gt; &gt;     points.InsertNextPoint(X[i],Y[i],Z[i])<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; vertices.InsertNextCell(ids)<br>
&gt;&gt; &gt; Or you can have each vert in its own cell:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; ids = vtkIdList()<br>
&gt;&gt; &gt; ids.SetNumberOfIds(1)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; for i in xrange(3):<br>
&gt;&gt; &gt;     ids.SetId(0, i)<br>
&gt;&gt; &gt;     points.InsertNextPoint(X[i],Y[i],Z[i])<br>
&gt;&gt; &gt;     vertices.InsertNextCell(ids)<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; In the &quot;for&quot; loop, you were calling vertices.InsertNextCell(ids)<br>
&gt;&gt; &gt; when &quot;ids&quot; still had some unititialized values, since the three<br>
&gt;&gt; &gt; ids values were not filled in until the third loop iteration.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;   - David<br>
&gt;<br>
&gt;<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20101212/a7d63e5b/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20101212/a7d63e5b/attachment-0001.htm</a>&gt;<br>


<br>
------------------------------<br>
<br>
Message: 5<br>
Date: Sun, 12 Dec 2010 17:28:45 -0500<br>
From: David Doria &lt;<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>&gt;<br>
Subject: Re: [vtkusers] Problem with viewing vtkReebGraph<br>
Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Message-ID:<br>
        &lt;AANLkTimnk5-2=<a href="mailto:XGS_ekUtWawJqqHPfONF_QNUgXiAWM4@mail.gmail.com">XGS_ekUtWawJqqHPfONF_QNUgXiAWM4@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
&gt;&gt; Hello,<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m new to VTK,i&#39;m working on a 3D indexing project for my research so i<br>
&gt;&gt; need to use Reeb&#39;s graph.<br>
&gt;&gt; I have been trying to view vtkReebGraph since 2 days now,i have he correct<br>
&gt;&gt; data but i&#39;m not able to display it.<br>
&gt;&gt; I&#39;m developing on Java and this is my code,the view part copied form this<br>
&gt;&gt; one <a href="http://www.vtk.org/Wiki/VTK/Examples/Graphs/VisualizeDirectedGraph" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Graphs/VisualizeDirectedGraph</a> i<br>
&gt;&gt; just translated it to Java ?:<br>
<br>
Mehdi,<br>
<br>
If you could add the example that you translated here:<br>
<a href="http://www.vtk.org/Wiki/VTK/Examples/Java#Graphs" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Java#Graphs</a><br>
<br>
that would be great!<br>
<br>
David<br>
<br>
<br>
------------------------------<br>
<br>
Message: 6<br>
Date: Mon, 13 Dec 2010 01:56:31 +0100<br>
From: Nico Schl?mer &lt;<a href="mailto:nico.schloemer@gmail.com">nico.schloemer@gmail.com</a>&gt;<br>
Subject: Re: [vtkusers] vtk.vtkExodusIIReader: information in<br>
        GetOutput()?<br>
To: &quot;Thompson, David C&quot; &lt;<a href="mailto:dcthomp@sandia.gov">dcthomp@sandia.gov</a>&gt;<br>
Cc: vtkusers &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>
Message-ID:<br>
        &lt;<a href="mailto:AANLkTikX4EbmvTjXd3trchsrr4xh_otykzpNyp92r5KH@mail.gmail.com">AANLkTikX4EbmvTjXd3trchsrr4xh_otykzpNyp92r5KH@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
I&#39;ve written and alternative implementation for the Exodus<br>
reader/writer using vtkExodusReader (as opposed to the<br>
vtkExodusIIReader) and found that things work out much more easily.<br>
<br>
It&#39;s basically enough to<br>
<br>
    reader.ExodusModelMetadataOn()<br>
<br>
to get information on all the time steps, for example. With the<br>
vtkExodusIIReader (where there is no ModelMetadata), I could get the<br>
same to work only with a loop over [0:GetNumberOfTimeSteps()], then<br>
SetTimeStep(k) and subsequently retrieve a vtkUnstructuredGrid for<br>
each step with the corresponding point data.<br>
<br>
The only thing I need to do now is to figure out how to extract the<br>
individual time step arrays from the vtkUnstructuredGrid, work on<br>
them, and inject them back to be written to a file.<br>
<br>
Cheers,<br>
Nico<br>
<br>
<br>
<br>
On Sun, Dec 12, 2010 at 5:11 PM, Nico Schl?mer &lt;<a href="mailto:nico.schloemer@gmail.com">nico.schloemer@gmail.com</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I was able to get it all together with<br>
&gt;<br>
&gt; ? ?reader.UpdateInformation()<br>
&gt; ? ?for k in xrange( reader.GetNumberOfPointResultArrays() ):<br>
&gt; ? ? ? ?arr_name = reader.GetPointResultArrayName( k )<br>
&gt; ? ? ? ?reader.SetPointResultArrayStatus( arr_name, 1 )<br>
&gt;<br>
&gt; Then, after Update() has been called, the vtkUnstructuredGrid will<br>
&gt; magically containt the array. Great!<br>
&gt;<br>
&gt;&gt; Note that because &quot;_R&quot; and &quot;_Z&quot; imply cylindrical coordinates, the two scalars<br>
&gt;&gt; in the exodus file will be combined into a 2-component vector by the reader and<br>
&gt;&gt; the result will be named either &quot;x0&quot; or &quot;x0_&quot; (I forget whether the trailing underscore<br>
&gt;&gt; is omitted or not).<br>
&gt;<br>
&gt; Cylindrical coordinates, alright? Well, I got the data in there by<br>
&gt; providing a complex valued array, but I guess that doesn&#39;t really<br>
&gt; matter. The underscore is preserved by the way, so I&#39;ll just go ahead<br>
&gt; and cut it off.<br>
&gt;<br>
&gt; Thanks for the help!<br>
&gt; --Nico<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Sun, Dec 12, 2010 at 3:30 AM, Thompson, David C &lt;<a href="mailto:dcthomp@sandia.gov">dcthomp@sandia.gov</a>&gt; wrote:<br>
&gt;&gt; Hi Nico,<br>
&gt;&gt;<br>
&gt;&gt;&gt; Alright, so this<br>
&gt;&gt;&gt; ...<br>
&gt;&gt;&gt; gives me all vtkUnstructuredGrid in the vtkExodusIIReader output. Nice!<br>
&gt;&gt;&gt; However, there&#39;s more data in the Exodus file I&#39;d like to retrieve,<br>
&gt;&gt;&gt; for example a data array for point data. In the ExodusII file, the<br>
&gt;&gt;&gt; values are declared as &quot;vals_nod_var1=...&quot; and &quot;name_nod_var =<br>
&gt;&gt;&gt; &quot;x0_R&quot;, ?&quot;x0_Z&quot; ;&quot;, but those are certainly not contained in the block<br>
&gt;&gt;&gt; hierarchy above.<br>
&gt;&gt;<br>
&gt;&gt; Each unstructured grid that is output may have point and cell<br>
&gt;&gt; arrays (I forget whether they are read by default or whether you<br>
&gt;&gt; must call SetObjectArrayStatus() to tell the reader you want them<br>
&gt;&gt; loaded). For the point variables &quot;x0_R&quot; and &quot;x0_Z&quot; in your example<br>
&gt;&gt; above, you would call<br>
&gt;&gt;<br>
&gt;&gt; ?rdr = vtkExodusIIReader()<br>
&gt;&gt; ?rdr.SetFileName( &#39;foo.exo&#39; ) # or whatever<br>
&gt;&gt; ?rdr.UpdateInformation() # this tells the reader to fetch metadata from the file<br>
&gt;&gt; ?# Iterate over all the point arrays:<br>
&gt;&gt; ?for i in range( rdr.GetNumberOfObjectArrays( rdr.NODAL ) ):<br>
&gt;&gt; ? ?nname = rdr.GetObjectArrayName( rdr.NODAL, i )<br>
&gt;&gt; ? ?print &#39;Array %d is &quot;%s&quot;&#39; % (i,nname)<br>
&gt;&gt; ? ?# if an array name matches, tell the reader we want to load it:<br>
&gt;&gt; ? ?if nname == &#39;x0&#39; or nname == &#39;x0_&#39;:<br>
&gt;&gt; ? ? ?# 0 means &quot;don&#39;t load&quot;, 1 means &quot;load&quot; the i-th nodal array<br>
&gt;&gt; ? ? ?rdr.SetObjectArrayStatus( rdr.NODAL, i, 1 )<br>
&gt;&gt; ?rdr.Update()<br>
&gt;&gt; ?out = rdr.GetOutput()<br>
&gt;&gt; ?# Assuming you have an element block, its point data will have<br>
&gt;&gt; ?# the x0 array.<br>
&gt;&gt; ?elem_blks = out.GetBlock( 0 )<br>
&gt;&gt; ?elem_blk0 = elem_blks.GetBlock( 0 )<br>
&gt;&gt; ?x0 = elem_blk0.GetPointData().GetArray( &#39;x0&#39; )<br>
&gt;&gt;<br>
&gt;&gt; Note that because &quot;_R&quot; and &quot;_Z&quot; imply cylindrical coordinates, the two scalars<br>
&gt;&gt; in the exodus file will be combined into a 2-component vector by the reader and<br>
&gt;&gt; the result will be named either &quot;x0&quot; or &quot;x0_&quot; (I forget whether the trailing underscore<br>
&gt;&gt; is omitted or not).<br>
&gt;&gt;<br>
&gt;&gt; Because Exodus defines a single, global set of nodes for all element/face/edge<br>
&gt;&gt; blocks, any nodal variables you request will be present on every output block.<br>
&gt;&gt; However, because the cells in a block don&#39;t necessarily reference every point,<br>
&gt;&gt; the point coordinates and point data for each block are subsets of the global<br>
&gt;&gt; arrays. For instance, if you have 10 points defined in a mesh but the first<br>
&gt;&gt; element block contains a single quadrilateral (4 points), there will only be 4<br>
&gt;&gt; values in the &#39;x0&#39; array attached to that element block&#39;s unstructured grid.<br>
&gt;&gt;<br>
&gt;&gt; ? ?David<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Mon, Dec 6, 2010 at 9:21 PM, David Thompson &lt;<a href="mailto:dcthomp@sandia.gov">dcthomp@sandia.gov</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt; ... when reading an ExodusII file with<br>
&gt;&gt;&gt;&gt; ?reader = vtk.vtkExodusIIReader()<br>
&gt;&gt;&gt;&gt; ?reader.Update()<br>
&gt;&gt;&gt;&gt; ?out = reader.GetOutput()<br>
&gt;&gt;&gt;&gt; &#39;out&#39; would contain a whole lot of output the significance of which I<br>
&gt;&gt;&gt;&gt; don&#39;t quite understant;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Hi Nico,<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; The old vtkExodusReader used to output a single unstructured grid. This made<br>
&gt;&gt;&gt; it difficult to handle the case when a variable was defined on some cells<br>
&gt;&gt;&gt; (in one element block) but not on others (in a different element block). It<br>
&gt;&gt;&gt; was also awkward to provide information about node sets and face sets. At<br>
&gt;&gt;&gt; the time, there was also no concept of pedigree and global ID arrays in<br>
&gt;&gt;&gt; vtkDataSetAttributes. This made writing Exodus datasets back out to a file<br>
&gt;&gt;&gt; after some manipulation difficult since much of the information in the<br>
&gt;&gt;&gt; original file could not be preserved. The vtkExodusModel and<br>
&gt;&gt;&gt; vtkModelMetadata classes were attempts to encapsulate some of that<br>
&gt;&gt;&gt; information for later access by a writer.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; The new vtkExodusIIReader outputs a multiblock dataset. Each multiblock<br>
&gt;&gt;&gt; dataset may have an arbitrary number of blocks, where each block is a<br>
&gt;&gt;&gt; arbitary dataset (an unstructured grid, an image, or even another multiblock<br>
&gt;&gt;&gt; dataset). The new reader outputs a multiblock dataset where each of the<br>
&gt;&gt;&gt; top-level blocks is itself a multiblock dataset holding unstructured grids<br>
&gt;&gt;&gt; of a single type (element blocks, face blocks, edge blocks, element sets,<br>
&gt;&gt;&gt; side sets, face sets, edge sets, node sets). When you &quot;print out&quot; you are<br>
&gt;&gt;&gt; seeing all of the internal variables associated with the one toplevel<br>
&gt;&gt;&gt; multiblock dataset and its children.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; This should print some more concise information about the blocks:<br>
&gt;&gt;&gt; ====================== *snip* ======================<br>
&gt;&gt;&gt; for i in range( out.GetNumberOfBlocks() ):<br>
&gt;&gt;&gt; ?print out.GetMetaData( i ).Get( vtkCompositeDataSet.NAME() )<br>
&gt;&gt;&gt; ?blk = out.GetBlock( i )<br>
&gt;&gt;&gt; ?for j in range( blk.GetNumberOfBlocks() ):<br>
&gt;&gt;&gt; ? ?print &#39; ?&#39; + blk.GetMetaData( j ).Get( vtkCompositeDataSet.NAME() )<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; ====================== *snip* ======================<br>
&gt;&gt;&gt; When the reader is told to read a block or set (only element blocks are read<br>
&gt;&gt;&gt; by default), then an unstructured grid will be inserted into the appropriate<br>
&gt;&gt;&gt; sub-block of the main reader&#39;s output.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; ? ? ? ?Hope this helps,<br>
&gt;&gt;&gt; ? ? ? ?David<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
<br>
<br>
------------------------------<br>
<br>
Message: 7<br>
Date: Mon, 13 Dec 2010 01:59:56 +0100<br>
From: Nico Schl?mer &lt;<a href="mailto:nico.schloemer@gmail.com">nico.schloemer@gmail.com</a>&gt;<br>
Subject: Re: [vtkusers] vtkPExodusIIWriter?<br>
To: &quot;Thompson, David C&quot; &lt;<a href="mailto:dcthomp@sandia.gov">dcthomp@sandia.gov</a>&gt;<br>
Cc: vtkusers &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>
Message-ID:<br>
        &lt;<a href="mailto:AANLkTinv8CMaYzmYWB7cFKRV163MrC3YiwKXFZEKm0ji@mail.gmail.com">AANLkTinv8CMaYzmYWB7cFKRV163MrC3YiwKXFZEKm0ji@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
I just came across the sentence<br>
<br>
&quot;However if this writer is part of a parallel application (hence<br>
writing out a distributed Exodus file), then we need at the very least<br>
a list of all the block IDs that appear in the file. And we need the<br>
element array of block IDs for the input unstructured grid.&quot;<br>
<br>
in the vtkExodusIIWriter documentation, so I guess it *does* support<br>
parallel writes, just that the data has to be fitted for it somehow.<br>
Is there a newbie howto for parallel data structures in VTK?<br>
<br>
--Nico<br>
<br>
<br>
<br>
On Sun, Dec 12, 2010 at 3:30 AM, Thompson, David C &lt;<a href="mailto:dcthomp@sandia.gov">dcthomp@sandia.gov</a>&gt; wrote:<br>
&gt; Hi Nico,<br>
&gt;<br>
&gt; I didn&#39;t write the vtkExodusIIWriter, so I don&#39;t know about how/whether it works in parallel.<br>
&gt;<br>
&gt; ? ?David<br>
&gt; ________________________________________<br>
&gt; From: <a href="mailto:vtkusers-bounces@vtk.org">vtkusers-bounces@vtk.org</a> [<a href="mailto:vtkusers-bounces@vtk.org">vtkusers-bounces@vtk.org</a>] On Behalf Of Nico Schl?mer [<a href="mailto:nico.schloemer@gmail.com">nico.schloemer@gmail.com</a>]<br>


&gt; Sent: Saturday, December 11, 2010 11:10<br>
&gt; To: vtkusers<br>
&gt; Subject: [vtkusers] vtkPExodusIIWriter?<br>
&gt;<br>
&gt; Hi all,<br>
&gt;<br>
&gt; I notice that with VTK, it&#39;s possible to read parallel ExodusII files<br>
&gt; via &quot;vtkPExodusIIReader&quot;<br>
&gt; &lt;<a href="http://www.vtk.org/doc/nightly/html/classvtkPExodusIIReader.html" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkPExodusIIReader.html</a>&gt;.<br>
&gt; Curiously, however, I didn&#39;t find the corresponding vtkPExodusIIWriter<br>
&gt; class.<br>
&gt;<br>
&gt; Is it possible to write parallel Exodus files with VTK at all then,<br>
&gt; using the regular vtkExodusIIWriter classes?<br>
&gt;<br>
&gt; Cheers,<br>
&gt; Nico<br>
&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; 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>
&gt;<br>
&gt; 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>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
<br>
<br>
------------------------------<br>
<br>
Message: 8<br>
Date: Mon, 13 Dec 2010 11:10:11 +0900<br>
From: &quot;Xiaopeng Yang&quot; &lt;<a href="mailto:yxp233@postech.ac.kr">yxp233@postech.ac.kr</a>&gt;<br>
Subject: [vtkusers] DICOM information<br>
To: &lt;<a href="mailto:insight-users@itk.org">insight-users@itk.org</a>&gt;,    &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>
Message-ID: &lt;00b901cb9a6a$e467cd50$ad3767f0$@<a href="http://ac.kr" target="_blank">ac.kr</a>&gt;<br>
Content-Type: text/plain;       charset=&quot;us-ascii&quot;<br>
<br>
Hello everyone,<br>
<br>
I&#39;m trying to get patient name, age, and sex from a series of CT images. But<br>
I have no idea how to do this. I am using ITK GDCMImageIO to load the<br>
dataset, then connecting ITK to VTK, and then using VTK Imageviewer2 to<br>
visualize the dataset.<br>
<br>
Based on the algorithms I used, how can I get patient information?<br>
<br>
Thank you for your help.<br>
<br>
Best,<br>
Xiaopeng<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 9<br>
Date: Sun, 12 Dec 2010 21:32:23 -0500<br>
From: Luis Ibanez &lt;<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>&gt;<br>
Subject: Re: [vtkusers] [Insight-users] DICOM information<br>
To: Xiaopeng Yang &lt;<a href="mailto:yxp233@postech.ac.kr">yxp233@postech.ac.kr</a>&gt;<br>
Cc: <a href="mailto:insight-users@itk.org">insight-users@itk.org</a>, <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Message-ID:<br>
        &lt;<a href="mailto:AANLkTimE9WiFz1AFX%2B5NvmHB-f%2Bfq-j6SN9f4AsjfBfY@mail.gmail.com">AANLkTimE9WiFz1AFX+5NvmHB-f+fq-j6SN9f4AsjfBfY@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=UTF-8<br>
<br>
Hi Xiaopeng,<br>
<br>
Please look at the example<br>
<br>
      ITK/Examples/IO/DicomImageReadPrintTags.cxx<br>
<br>
The tags that you need are listed here:<br>
<br>
<a href="http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/DICOM.html" target="_blank">http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/DICOM.html</a><br>
<br>
0010,0010       PatientName<br>
0010,0040       PatientSex<br>
0010,1010       PatientAge<br>
<br>
In the Example above,<br>
the lines of code 300 to 333 show you<br>
how to get the patient name.<br>
<br>
You can get the other values by using the<br>
DICOM tags for Sex and Age.<br>
<br>
<br>
<br>
    Regards<br>
<br>
<br>
          Luis<br>
<br>
<br>
------------------------------------------------------<br>
On Sun, Dec 12, 2010 at 9:10 PM, Xiaopeng Yang &lt;<a href="mailto:yxp233@postech.ac.kr">yxp233@postech.ac.kr</a>&gt; wrote:<br>
&gt; Hello everyone,<br>
&gt;<br>
&gt; I&#39;m trying to get patient name, age, and sex from a series of CT images. But<br>
&gt; I have no idea how to do this. I am using ITK GDCMImageIO to load the<br>
&gt; dataset, then connecting ITK to VTK, and then using VTK Imageviewer2 to<br>
&gt; visualize the dataset.<br>
&gt;<br>
&gt; Based on the algorithms I used, how can I get patient information?<br>
&gt;<br>
&gt; Thank you for your help.<br>
&gt;<br>
&gt; Best,<br>
&gt; Xiaopeng<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _____________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Kitware offers ITK Training Courses, for more information visit:<br>
&gt; <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the ITK FAQ at:<br>
&gt; <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
&gt;<br>
<br>
<br>
------------------------------<br>
<br>
Message: 10<br>
Date: Mon, 13 Dec 2010 14:33:17 +0900<br>
From: &quot;Xiaopeng Yang&quot; &lt;<a href="mailto:yxp233@postech.ac.kr">yxp233@postech.ac.kr</a>&gt;<br>
Subject: Re: [vtkusers] [Insight-users] DICOM information<br>
To: &quot;&#39;Luis Ibanez&#39;&quot; &lt;<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>&gt;<br>
Cc: <a href="mailto:insight-users@itk.org">insight-users@itk.org</a>, <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Message-ID: &lt;00c301cb9a87$3f18bf40$bd4a3dc0$@<a href="http://ac.kr" target="_blank">ac.kr</a>&gt;<br>
Content-Type: text/plain;       charset=&quot;utf-8&quot;<br>
<br>
Hi Luis,<br>
<br>
Thanks very much. It works! May I ask you another question please? Do you know some fast hole filling algorithm for binary image?<br>
<br>
Best regards,<br>
<br>
Xiaopeng<br>
<br>
-----????-----<br>
???: Luis Ibanez [mailto:<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>]<br>
????: 2010? 12? 13? ??? ?? 11:32<br>
???: Xiaopeng Yang<br>
??: <a href="mailto:insight-users@itk.org">insight-users@itk.org</a>; <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
??: Re: [Insight-users] DICOM information<br>
<br>
Hi Xiaopeng,<br>
<br>
Please look at the example<br>
<br>
      ITK/Examples/IO/DicomImageReadPrintTags.cxx<br>
<br>
The tags that you need are listed here:<br>
<br>
<a href="http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/DICOM.html" target="_blank">http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/DICOM.html</a><br>
<br>
0010,0010       PatientName<br>
0010,0040       PatientSex<br>
0010,1010       PatientAge<br>
<br>
In the Example above,<br>
the lines of code 300 to 333 show you<br>
how to get the patient name.<br>
<br>
You can get the other values by using the<br>
DICOM tags for Sex and Age.<br>
<br>
<br>
<br>
    Regards<br>
<br>
<br>
          Luis<br>
<br>
<br>
------------------------------------------------------<br>
On Sun, Dec 12, 2010 at 9:10 PM, Xiaopeng Yang &lt;<a href="mailto:yxp233@postech.ac.kr">yxp233@postech.ac.kr</a>&gt; wrote:<br>
&gt; Hello everyone,<br>
&gt;<br>
&gt; I&#39;m trying to get patient name, age, and sex from a series of CT images. But<br>
&gt; I have no idea how to do this. I am using ITK GDCMImageIO to load the<br>
&gt; dataset, then connecting ITK to VTK, and then using VTK Imageviewer2 to<br>
&gt; visualize the dataset.<br>
&gt;<br>
&gt; Based on the algorithms I used, how can I get patient information?<br>
&gt;<br>
&gt; Thank you for your help.<br>
&gt;<br>
&gt; Best,<br>
&gt; Xiaopeng<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _____________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Kitware offers ITK Training Courses, for more information visit:<br>
&gt; <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the ITK FAQ at:<br>
&gt; <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
&gt;<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 11<br>
Date: Mon, 13 Dec 2010 10:43:14 +0100<br>
From: Roger Bramon Feixas &lt;<a href="mailto:rogerbramon@gmail.com">rogerbramon@gmail.com</a>&gt;<br>
Subject: Re: [vtkusers] bug 0009618 and UTF 8 text rendering fix<br>
        question<br>
To: Sean McBride &lt;<a href="mailto:sean@rogue-research.com">sean@rogue-research.com</a>&gt;<br>
Cc: David Gobbi &lt;<a href="mailto:david.gobbi@gmail.com">david.gobbi@gmail.com</a>&gt;, <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Message-ID:<br>
        &lt;AANLkTi=<a href="mailto:n4HBOK3qGTu-SH2U-4OOQW5GV9K%2BvoujsUmm%2B@mail.gmail.com">n4HBOK3qGTu-SH2U-4OOQW5GV9K+voujsUmm+@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<br>
<br>
Hi,<br>
<br>
Sean, at my system vtkTextActor::SetInput() also expects ISO-8859-1. I&#39;m<br>
using Qt and I have to call QString::toLatin1() to be able to use accents in<br>
VTK.<br>
<br>
Marcus, let me know if you has any questions about the patch which tries to<br>
solve the drop shadow rendering problem.<br>
<br>
Thanks for your attention,<br>
<br>
Roger<br>
<br>
<br>
On Tue, Dec 7, 2010 at 10:35 PM, Sean McBride &lt;<a href="mailto:sean@rogue-research.com">sean@rogue-research.com</a>&gt;wrote:<br>
<br>
&gt; On Tue, 7 Dec 2010 15:27:03 -0500, Marcus D. Hanwell said:<br>
&gt;<br>
&gt; &gt;&gt;&gt; Just to clarify, what encoding should be given to<br>
&gt; vtkTextActor::SetInput<br>
&gt; &gt;&gt;&gt; ()?  Last I tried, it seemed to expect ISO-8859-1.  Certainly a step up<br>
&gt; &gt;&gt;&gt; from ASCII!  Is the long term plan for it to accept UTF8?<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; I think it is best if VTK strings use the system default encoding,<br>
&gt; rather<br>
&gt; &gt;&gt; than utf-8.  For unicode there is always vtkUnicodeString.  More classes<br>
&gt; &gt;&gt; should be adapted to take vtkUnicodeString as input (but only, of<br>
&gt; course,<br>
&gt; &gt;&gt; if they are internally capable of using/rendering unicode).<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; But I&#39;m flexible.  Really, I&#39;m just pushing for VTK&#39;s string handling to<br>
&gt; be<br>
&gt; &gt;&gt; more similar to Python&#39;s.  ;)<br>
&gt; &gt;&gt;<br>
&gt; &gt;I am not too concerned about aligning with Python&#39;s string handling,<br>
&gt; &gt;but agree with David - I think we should be adjusting existing classes<br>
&gt; &gt;to deal with and take vtkUnicodeString, which can take UTF8 strings<br>
&gt; &gt;for construction.<br>
&gt;<br>
&gt; Agreed.<br>
&gt;<br>
&gt; &gt;It would probably be simplest to interpret all const<br>
&gt; &gt;char* and vtkStdString as UTF8 when it came to rendering, as minimal<br>
&gt; &gt;code/API changes would be required.<br>
&gt;<br>
&gt; I agree here too, but such a change would appear to break binary<br>
&gt; compatibility.  Today&#39;s vtkTextActor::SetInput() expects ISO-8859-1 (at<br>
&gt; least on my system), if we change it to expect UTF8 we break existing<br>
&gt; clients of VTK.<br>
&gt;<br>
&gt; In any case, API that take char* should document which encoding they<br>
&gt; expect.  Consider the tiny attached patch.<br>
&gt;<br>
&gt; &gt;If you look at vtkContext2D and friends, where I have been prototyping<br>
&gt; &gt;the UTF8 string handling and Unicode rendering, I have used<br>
&gt; &gt;vtkUnicodeString as the function argument.<br>
&gt;<br>
&gt; Sounds great.<br>
&gt;<br>
&gt; &gt;I certainly welcome people&#39;s thoughts on this. Working through the<br>
&gt; &gt;relevant classes, and adding vtkUnicodeString API to them where and<br>
&gt; &gt;when they can really render Unicode seems like a reasonable approach<br>
&gt; &gt;to me.<br>
&gt;<br>
&gt; vtkTextActor appears to be in need of vtkUnicodeString support...<br>
&gt;<br>
&gt; --<br>
&gt; ____________________________________________________________<br>
&gt; Sean McBride, B. Eng                 <a href="mailto:sean@rogue-research.com">sean@rogue-research.com</a><br>
&gt; Rogue Research                        <a href="http://www.rogue-research.com" target="_blank">www.rogue-research.com</a><br>
&gt; Mac Software Developer              Montr?al, Qu?bec, Canada<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;<br>
&gt;<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20101213/18488da8/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20101213/18488da8/attachment-0001.htm</a>&gt;<br>


<br>
------------------------------<br>
<br>
Message: 12<br>
Date: Mon, 13 Dec 2010 06:14:50 -0800 (PST)<br>
From: Rachel &lt;<a href="mailto:aracha2010@gmail.com">aracha2010@gmail.com</a>&gt;<br>
Subject: Re: [vtkusers] VTK/Examples/Cxx/ImageData/IterateImageData<br>
To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Message-ID: &lt;<a href="mailto:1292249690501-3303147.post@n5.nabble.com">1292249690501-3303147.post@n5.nabble.com</a>&gt;<br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
<br>
Thank you Davis. i got the same results as you but when i change the code as<br>
you see below, it gives me 0:<br>
<br>
I change the input image and I assigned 2.0 to each pixel (as in the example<br>
)<br>
int main(){<br>
// Create an image data<br>
  vtkSmartPointer&lt;vtkImageData&gt; imageData =<br>
    vtkSmartPointer&lt;vtkImageData&gt;::New();<br>
<br>
        //imageData= LoadImage(OutputImage);<br>
        vtkSmartPointer&lt;vtkPNGReader&gt; reader =<br>
    vtkSmartPointer&lt;vtkPNGReader&gt;::New();<br>
  reader-&gt;SetFileName(OutputImage);<br>
  reader-&gt;Update();<br>
  imageData= reader-&gt;GetOutput();<br>
<br>
  //i removed these three lines<br>
  // Specify the size of the image data<br>
 /* imageData-&gt;SetDimensions(2,3,1);<br>
  imageData-&gt;SetNumberOfScalarComponents(1);<br>
  imageData-&gt;SetScalarTypeToDouble();*/<br>
<br>
  int* dims = imageData-&gt;GetDimensions();<br>
<br>
  std::cout &lt;&lt; &quot;Dims: &quot; &lt;&lt; &quot; x: &quot; &lt;&lt; dims[0] &lt;&lt; &quot; y: &quot; &lt;&lt; dims[1] &lt;&lt; &quot; z: &quot;<br>
&lt;&lt; dims[2] &lt;&lt; std::endl;<br>
  std::cout &lt;&lt; &quot;Number of points: &quot; &lt;&lt; imageData-&gt;GetNumberOfPoints() &lt;&lt;<br>
std::endl;<br>
  std::cout &lt;&lt; &quot;Number of cells: &quot; &lt;&lt; imageData-&gt;GetNumberOfCells() &lt;&lt;<br>
std::endl;<br>
<br>
  // Fill every entry of the image data with &quot;2.0&quot;<br>
 for (int z = 0; z &lt; dims[2]; z++)<br>
    {<br>
    for (int y = 0; y &lt; dims[1]; y++)<br>
      {<br>
      for (int x = 0; x &lt; dims[0]; x++)<br>
        {<br>
<br>
        double* pixel =<br>
static_cast&lt;double*&gt;(imageData-&gt;GetScalarPointer(x,y,z));<br>
        pixel[0] = 2.0;<br>
<br>
       }<br>
    }<br>
  }<br>
<br>
<br>
  // Retrieve the entries from the image data and print them to the screen<br>
  for (int z = 0; z &lt; dims[2]; z++)<br>
    {<br>
    for (int y = 0; y &lt; dims[1]; y++)<br>
      {<br>
      for (int x = 0; x &lt; dims[0]; x++)<br>
        {<br>
        double* pixel =<br>
static_cast&lt;double*&gt;(imageData-&gt;GetScalarPointer(x,y,z));<br>
        // do something with v<br>
        std::cout &lt;&lt; pixel[0] &lt;&lt; &quot; &quot;;<br>
        }<br>
    std::cout &lt;&lt; std::endl;<br>
      }<br>
    std::cout &lt;&lt; std::endl;<br>
    }<br>
   return EXIT_SUCCESS;<br>
}<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/VTK-Examples-Cxx-ImageData-IterateImageData-tp3300844p3303147.html" target="_blank">http://vtk.1045678.n5.nabble.com/VTK-Examples-Cxx-ImageData-IterateImageData-tp3300844p3303147.html</a><br>


Sent from the VTK - Users mailing list archive at Nabble.com.<br>
<br>
<br>
------------------------------<br>
<br>
Message: 13<br>
Date: Mon, 13 Dec 2010 09:44:31 -0500<br>
From: David Doria &lt;<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>&gt;<br>
Subject: Re: [vtkusers] VTK/Examples/Cxx/ImageData/IterateImageData<br>
To: Rachel &lt;<a href="mailto:aracha2010@gmail.com">aracha2010@gmail.com</a>&gt;<br>
Cc: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Message-ID:<br>
        &lt;<a href="mailto:AANLkTim8A%2BB71778xUb64mk3ULKJAg5UYF0_qEAs5Xr2@mail.gmail.com">AANLkTim8A+B71778xUb64mk3ULKJAg5UYF0_qEAs5Xr2@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1<br>
<br>
On Mon, Dec 13, 2010 at 9:14 AM, Rachel &lt;<a href="mailto:aracha2010@gmail.com">aracha2010@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Thank you Davis. i got the same results as you but when i change the code as<br>
&gt; you see below, it gives me 0:<br>
&gt;<br>
&gt; I change the input image and I assigned 2.0 to each pixel (as in the example<br>
&gt; )<br>
<br>
The problem is that the reader is creating an image with pixels of<br>
type Unsigned Char.<br>
<br>
You have to change the cast in both the loop setting the pixels and<br>
reading the pixels:<br>
<br>
Set loop:<br>
<br>
unsigned char* pixel =<br>
static_cast&lt;unsigned char*&gt;(imageData-&gt;GetScalarPointer(x,y,z));<br>
pixel[0] = 2;<br>
<br>
Get loop:<br>
<br>
unsigned char* pixel =<br>
static_cast&lt;unsigned char*&gt;(imageData-&gt;GetScalarPointer(x,y,z));<br>
// do something with v<br>
std::cout &lt;&lt; (int)pixel[0] &lt;&lt; &quot; &quot;;<br>
<br>
David<br>
<br>
<br>
------------------------------<br>
<br>
Message: 14<br>
Date: Mon, 13 Dec 2010 06:54:22 -0800 (PST)<br>
From: Rachel &lt;<a href="mailto:aracha2010@gmail.com">aracha2010@gmail.com</a>&gt;<br>
Subject: Re: [vtkusers] VTK/Examples/Cxx/ImageData/IterateImageData<br>
To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Message-ID: &lt;<a href="mailto:1292252062862-3303214.post@n5.nabble.com">1292252062862-3303214.post@n5.nabble.com</a>&gt;<br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
<br>
Thank you very much David. It works now :)<br>
Have a great day :)<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/VTK-Examples-Cxx-ImageData-IterateImageData-tp3300844p3303214.html" target="_blank">http://vtk.1045678.n5.nabble.com/VTK-Examples-Cxx-ImageData-IterateImageData-tp3300844p3303214.html</a><br>


Sent from the VTK - Users mailing list archive at Nabble.com.<br>
<br>
<br>
------------------------------<br>
<br>
Message: 15<br>
Date: Mon, 13 Dec 2010 10:39:47 -0500<br>
From: Jeff Baumes &lt;<a href="mailto:jeff.baumes@kitware.com">jeff.baumes@kitware.com</a>&gt;<br>
Subject: Re: [vtkusers] Link error when building VTK with boost<br>
        support in Visual Studio 2010<br>
To: Hong Yi &lt;<a href="mailto:hongyi@renci.org">hongyi@renci.org</a>&gt;<br>
Cc: VTK Users &lt;<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a>&gt;<br>
Message-ID:<br>
        &lt;<a href="mailto:AANLkTikjoLrrAeNBBOT944sUeWQCc%2B_f_SDTUReKbwm8@mail.gmail.com">AANLkTikjoLrrAeNBBOT944sUeWQCc+_f_SDTUReKbwm8@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;windows-1252&quot;<br>
<br>
On Sat, Dec 11, 2010 at 10:52 PM, Hong Yi &lt;<a href="mailto:hongyi@renci.org">hongyi@renci.org</a>&gt; wrote:<br>
<br>
&gt; Thanks, Jeff.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; I don?t get this error (i.e., fatal error LNK1104: cannot open file<br>
&gt; &#39;libboost_serialization-vc100-mt-gd-1_44.lib&#39;) any more after I turned off<br>
&gt; Windows 7 Account Access Control and rebuilt everything, so this error was<br>
&gt; caused by windows 7 Account Access Control. However, I got the following 3<br>
&gt; linking errors:<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; 8&gt;BoostArrayLogWeighting.obj : error LNK2019: unresolved external symbol<br>
&gt; &quot;__declspec(dllimport) public: static class vtkBoostLogWeighting * __cdecl<br>
&gt; vtkBoostLogWeighting::New(void)&quot; (__imp_?New@vtkBoostLogWeighting<br>
&gt; @@SAPAV1@XZ) referenced in function &quot;public: static class<br>
&gt; vtkSmartPointer&lt;class vtkBoostLogWeighting&gt; __cdecl vtkSmartPointer&lt;class<br>
&gt; vtkBoostLogWeighting&gt;::New(void)&quot; (?New@<br>
&gt; ?$vtkSmartPointer@VvtkBoostLogWeighting@@@@SA?AV1@XZ)<br>
&gt;<br>
&gt; 8&gt;BoostArrayRandomSparseArraySource.obj : error LNK2019: unresolved<br>
&gt; external symbol &quot;__declspec(dllimport) public: static class<br>
&gt; vtkBoostRandomSparseArraySource * __cdecl<br>
&gt; vtkBoostRandomSparseArraySource::New(void)&quot;<br>
&gt; (__imp_?New@vtkBoostRandomSparseArraySource@@SAPAV1@XZ) referenced in<br>
&gt; function &quot;public: static class vtkSmartPointer&lt;class<br>
&gt; vtkBoostRandomSparseArraySource&gt; __cdecl vtkSmartPointer&lt;class<br>
&gt; vtkBoostRandomSparseArraySource&gt;::New(void)&quot; (?New@<br>
&gt; ?$vtkSmartPointer@VvtkBoostRandomSparseArraySource@@@@SA?AV1@XZ)<br>
&gt;<br>
&gt; 8&gt;BoostArrayRandomSparseArraySource.obj : error LNK2019: unresolved<br>
&gt; external symbol &quot;__declspec(dllimport) public: void __thiscall<br>
&gt; vtkBoostRandomSparseArraySource::SetExtents(class vtkArrayExtents const &amp;)&quot;<br>
&gt; (__imp_?SetExtents@vtkBoostRandomSparseArraySource<br>
&gt; @@QAEXABVvtkArrayExtents@@@Z) referenced in function &quot;int __cdecl<br>
&gt; BoostArrayRandomSparseArraySource(int,char * * const)&quot;<br>
&gt; (?BoostArrayRandomSparseArraySource@@YAHHQAPAD@Z)<br>
&gt;<br>
&gt; 8&gt;C:\Users\hongyi.HONGYI-W510\VTK-CMake\bin\RelWithDebInfo\InfovisBoostArrayCxxTests.exe<br>
&gt; : fatal error LNK1120: 3 unresolved externals<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Any suggestions on what additional libs I should include in the link<br>
&gt; property setup to make above three symbols resolved?<br>
&gt;<br>
&gt;<br>
It would seem that vtkInfovis is not building with vtkBoostLogWeighting<br>
and vtkBoostRandomSparseArraySource, but they should if you have<br>
VTK_USE_N_WAY_ARRAYS and VTK_USE_BOOST on. If either is not on, then the<br>
executable InfovisBoostArrayCxxTests should not be built, so I&#39;m not sure<br>
what the issue is here.<br>
<br>
Another not-directly-related question: I have written a simple example using<br>
&gt; VTK and QT and it only works with release configuration with VTK built and<br>
&gt; installed with release configuration also. When I run the example with debug<br>
&gt; configuration, I got an error message ?this application has failed to start<br>
&gt; because the application configuration is incorrect. Review the manifest file<br>
&gt; for possible errors.? I am new to VTK and read from the web that VTK should<br>
&gt; be installed with release configuration since the debug configuration does<br>
&gt; not work well, is that a true statement? I am currently using visual studio<br>
&gt; 2010 to build VTK 5.6 version. If I want my VTK+QT example to work with<br>
&gt; debug configuration, is there anything special I should do and be aware of?<br>
&gt; Thanks for any suggestions and guidelines on this.<br>
&gt;<br>
<br>
You may want to start a new thread on this topic.<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20101213/070ac36d/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20101213/070ac36d/attachment-0001.htm</a>&gt;<br>


<br>
------------------------------<br>
<br>
Message: 16<br>
Date: Tue, 14 Dec 2010 00:11:00 +0800<br>
From: ??? &lt;<a href="mailto:zhuyanqiao0413@gmail.com">zhuyanqiao0413@gmail.com</a>&gt;<br>
Subject: [vtkusers] About the VTK_USE_ANSI_STDLIB<br>
To: <a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
Message-ID:<br>
        &lt;AANLkTinRg=<a href="mailto:WVUGYM1fMM2aZp6jFDT%2BYzPdEt-Qsojo_K@mail.gmail.com">WVUGYM1fMM2aZp6jFDT+YzPdEt-Qsojo_K@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=&quot;gb2312&quot;<br>
<br>
Sorry, every one. I started to learn itk and vtk yesterday. I am using Arch<br>
Linux, and I have installed vtk throught its software repos. But when I<br>
tried to configure VTK as is told in &quot;Starting with ITK and VIK&quot;, I can not<br>
find the VTK_USE_ANSI_STDLIB option which needs to be turned on. My VTK is<br>
the latest version, and does that matter? And what is the effect of this<br>
option. Also, I can not find the option &quot;USE_VTK&quot; metioned in the itk faq<br>
&quot;<br>
<br>
&gt; In order to use ITK with VTK you must build VTK from sources and make sure<br>
&gt; that it is configured with the flag USE_ANSI_STDLIB enabled.<br>
&gt;<br>
&gt; Then you have to reconfigure ITK making sure that the option USE_VTK is<br>
&gt; enabled.<br>
&gt;<br>
&quot;<br>
<br>
<br>
By the way, I am still not clear about the combination of ItK and vtk. It<br>
seems I will have to copy the files like in<br>
&quot;InsightApplications-3.20.0/Auxiliary/vtk&quot; to my application source<br>
directory whenever I need to combine itk and vtk. Is that true?<br>
<br>
Another question is why I can simply build the Examples\Installation in itk<br>
but cannot build other examples like Examples\IO. I found that the<br>
CMakeLists.txt are slightly different. CMakeLists.txt for<br>
Examples\Installation has<br>
<br>
<br>
&gt; FIND_PACKAGE(ITK_REQIIRED)<br>
&gt;<br>
    INCLUDE(${ITK_USE_FILE})<br>
<br>
 I think the effection of these statement is to create ITK_DIR when build<br>
the project using ccmake. This is crucial, am I right?<br>
<br>
Sorry for the expression. And thanks in advance for help.<br>
<br>
<br>
<br>
<br>
-------------------------------------------<br>
???<br>
??????????<br>
????1#431<br>
86-10-62742310<br>
Luke<br>
School of Mathematical Sciences,<br>
Peking University.<br>
phone: 86-10-62742310<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: &lt;<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20101214/795f448f/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20101214/795f448f/attachment-0001.htm</a>&gt;<br>


<br>
------------------------------<br>
<br>
_______________________________________________<br>
vtkusers mailing list<br>
<a href="mailto:vtkusers@vtk.org">vtkusers@vtk.org</a><br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br>
<br>
End of vtkusers Digest, Vol 80, Issue 16<br>
****************************************<br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br><img src="http://lh6.ggpht.com/_8tbgcIDVCy0/TJgluKf1K3I/AAAAAAAAABo/VF66046Ldc0/Assinatura_Bruno%20Lara_3d.PNG"><br><br>
</div></div>