Wierd problem with page editor!<br><br>David, I have managed to add the content but the problem is, all &#39;#&#39; are converted to &#39;1&#39; and the formatting has also changed<br>.<br><br>See the screenshot<br><br>I copied the code from python editor, I even tried from MSWord<br>
<br>Jothy<br><br><div class="gmail_quote">On Fri, Jan 22, 2010 at 4:00 PM, David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br><div class="gmail_quote"><div><div></div><div class="h5">On Fri, Jan 22, 2010 at 10:53 AM, KS Jothybasu <span dir="ltr">&lt;<a href="mailto:jothybasu@gmail.com" target="_blank">jothybasu@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Sure by the way I had converter 2 of the c++ examples to python how to add that to wiki?<br><br>Slowly ,down the line I will convert all the c++ to python!<br><br>Thanks<br><br>Jothy<div><div></div><div><br><br>
<div class="gmail_quote">On Fri, Jan 22, 2010 at 3:46 PM, David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria%2Bvtk@gmail.com" target="_blank">daviddoria+vtk@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div class="gmail_quote"><div><div></div><div>On Fri, Jan 22, 2010 at 10:42 AM, circass <span dir="ltr">&lt;<a href="mailto:circass@gmail.com" target="_blank">circass@gmail.com</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
I Gonna try to implement that to my code.<br>
<div><div></div><div>Thanx,<br>
Circass<br>
<br>
<br>
KS Jothybasu wrote:<br>
&gt;<br>
&gt; In vtkLookupTable. Are you using vtkLookupTable if not here is a part of<br>
&gt; the<br>
&gt; code which might help you.<br>
&gt;<br>
&gt; * # Create a greyscale lookup table<br>
&gt;     table = vtk.vtkLookupTable()<br>
&gt;     table.SetRange(grayscale) # image intensity range<br>
&gt;     table.SetValueRange(1,0) # from black to white<br>
&gt;     table.SetSaturationRange(0.0, 0.0) # no color saturation<br>
&gt;     table.SetRampToSCurve()<br>
&gt;     table.SetNumberOfTableValues(402)<br>
&gt;     table.Build()<br>
&gt;<br>
&gt;     # Map the image through the lookup table<br>
&gt;     color = vtk.vtkImageMapToColors()<br>
&gt;     color.SetLookupTable(table)<br>
&gt;     color.SetInputConnection(reslice.GetOutputPort())<br>
&gt;<br>
&gt;     # Display the image<br>
&gt;     actor = vtk.vtkImageActor()<br>
&gt;     actor.SetInput(color.GetOutput())<br>
&gt; *<br>
&gt; Jothy<br>
&gt;<br>
&gt; On Fri, Jan 22, 2010 at 3:36 PM, circass &lt;<a href="mailto:circass@gmail.com" target="_blank">circass@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; Where should i use that function ?<br>
&gt;&gt; is there a specific filter or what ?<br>
&gt;&gt;<br>
&gt;&gt; Thanx<br>
&gt;&gt; Circass<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; KS Jothybasu wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Could you please try SetValueRange(1,0).<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Regards<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Jothy<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On Fri, Jan 22, 2010 at 2:06 PM, circass &lt;<a href="mailto:circass@gmail.com" target="_blank">circass@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; I think Alessandro understood me wrong, so i m trying to explain what<br>
&gt;&gt; i<br>
&gt;&gt; &gt;&gt; want<br>
&gt;&gt; &gt;&gt; more clearly.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; I have dicom files that i read with itk and vtk.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; my images are already greyscale, i want to change the blacks with<br>
&gt;&gt; whites<br>
&gt;&gt; &gt;&gt; and<br>
&gt;&gt; &gt;&gt; vice versa.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Thanx.<br>
&gt;&gt; &gt;&gt; Circass<br>
&gt;&gt; &gt;&gt; --<br>
&gt;&gt; &gt;&gt; View this message in context:<br>
&gt;&gt; &gt;&gt; <a href="http://old.nabble.com/Reversing-Color-tp27272638p27273652.html" target="_blank">http://old.nabble.com/Reversing-Color-tp27272638p27273652.html</a><br>
&gt;&gt; &gt;&gt; Sent from the VTK - Users mailing list archive at Nabble.com.<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; _______________________________________________<br>
&gt;&gt; &gt;&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Visit other Kitware open-source projects at<br>
&gt;&gt; &gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&gt;&gt; &gt;&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; &gt;&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; _______________________________________________<br>
&gt;&gt; &gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Visit other Kitware open-source projects at<br>
&gt;&gt; &gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&gt;&gt; &gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; &gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; View this message in context:<br>
&gt;&gt; <a href="http://old.nabble.com/Reversing-Color-tp27272638p27275052.html" target="_blank">http://old.nabble.com/Reversing-Color-tp27272638p27275052.html</a><br>
&gt;&gt; Sent from the VTK - Users mailing list archive at Nabble.com.<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt;<br>
&gt;&gt; Visit other Kitware open-source projects at<br>
&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt;<br>
&gt;&gt; Please keep messages on-topic and check the VTK FAQ at:<br>
&gt;&gt; <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
&gt;&gt;<br>
&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
&gt;&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; 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>
</div><div><br></div></div></blockquote><div><br></div></div></div><div>Jothy,</div><div><br></div><div>I don&#39;t see an example about vtkImageMapToColors on the wiki. Care to add one :) ?</div><div><br clear="all">Thanks,<br>




<br></div><div>David</div></div></div>
<br><br></blockquote></div></div></div></blockquote><div class="gmail_quote"><br></div></div></div><div class="gmail_quote">Great, thanks! You&#39;ll need to do the following:</div><div class="gmail_quote"><br></div><div class="gmail_quote">

1) Create a login/user for the wiki (maybe you have already done this?)</div><div class="gmail_quote">2) Click [edit] in the section you want to add something to</div><div class="gmail_quote">3) Create a new page and a link to the new page by adding:</div>

<div class="gmail_quote">* [[VTK/Examples/NewPageName | What you want to display as the link]]</div><div class="gmail_quote">4) when you save these changes, there will now be a red link. When you click this link, it immediately brings you to the &quot;edit&quot; page of the new page</div>

<div class="gmail_quote">5) add the content and save it</div><div class="gmail_quote">6) the link automatically turns blue (so it now goes to the &quot;page&quot; page instead of the &quot;edit&quot; page)</div><div class="gmail_quote">

<br></div><div class="gmail_quote">Let me know if you have any problems - if you do, lets modify this set of instructions so it is followable by a new wiki contributor and I&#39;ll add it as a &quot;how to contribute&quot; section. Also, let me know when you do the first one and I&#39;ll check it out for style, etc.</div>

<br clear="all">Thanks,<br><font color="#888888"><br><div>David</div></font></div>
<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>
<br></blockquote></div><br>