Wierd problem with page editor!<br><br>David, I have managed to add the content but the problem is, all '#' are converted to '1' 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"><<a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@gmail.com</a>></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"><<a href="mailto:jothybasu@gmail.com" target="_blank">jothybasu@gmail.com</a>></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"><<a href="mailto:daviddoria%2Bvtk@gmail.com" target="_blank">daviddoria+vtk@gmail.com</a>></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"><<a href="mailto:circass@gmail.com" target="_blank">circass@gmail.com</a>></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>
><br>
> In vtkLookupTable. Are you using vtkLookupTable if not here is a part of<br>
> the<br>
> code which might help you.<br>
><br>
> * # Create a greyscale lookup table<br>
> table = vtk.vtkLookupTable()<br>
> table.SetRange(grayscale) # image intensity range<br>
> table.SetValueRange(1,0) # from black to white<br>
> table.SetSaturationRange(0.0, 0.0) # no color saturation<br>
> table.SetRampToSCurve()<br>
> table.SetNumberOfTableValues(402)<br>
> table.Build()<br>
><br>
> # Map the image through the lookup table<br>
> color = vtk.vtkImageMapToColors()<br>
> color.SetLookupTable(table)<br>
> color.SetInputConnection(reslice.GetOutputPort())<br>
><br>
> # Display the image<br>
> actor = vtk.vtkImageActor()<br>
> actor.SetInput(color.GetOutput())<br>
> *<br>
> Jothy<br>
><br>
> On Fri, Jan 22, 2010 at 3:36 PM, circass <<a href="mailto:circass@gmail.com" target="_blank">circass@gmail.com</a>> wrote:<br>
><br>
>><br>
>> Where should i use that function ?<br>
>> is there a specific filter or what ?<br>
>><br>
>> Thanx<br>
>> Circass<br>
>><br>
>><br>
>> KS Jothybasu wrote:<br>
>> ><br>
>> > Could you please try SetValueRange(1,0).<br>
>> ><br>
>> > Regards<br>
>> ><br>
>> > Jothy<br>
>> ><br>
>> > On Fri, Jan 22, 2010 at 2:06 PM, circass <<a href="mailto:circass@gmail.com" target="_blank">circass@gmail.com</a>> wrote:<br>
>> ><br>
>> >><br>
>> >> I think Alessandro understood me wrong, so i m trying to explain what<br>
>> i<br>
>> >> want<br>
>> >> more clearly.<br>
>> >><br>
>> >> I have dicom files that i read with itk and vtk.<br>
>> >><br>
>> >> my images are already greyscale, i want to change the blacks with<br>
>> whites<br>
>> >> and<br>
>> >> vice versa.<br>
>> >><br>
>> >> Thanx.<br>
>> >> Circass<br>
>> >> --<br>
>> >> View this message in context:<br>
>> >> <a href="http://old.nabble.com/Reversing-Color-tp27272638p27273652.html" target="_blank">http://old.nabble.com/Reversing-Color-tp27272638p27273652.html</a><br>
>> >> Sent from the VTK - Users mailing list archive at Nabble.com.<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>
>> > 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>
>> View this message in context:<br>
>> <a href="http://old.nabble.com/Reversing-Color-tp27272638p27275052.html" target="_blank">http://old.nabble.com/Reversing-Color-tp27272638p27275052.html</a><br>
>> Sent from the VTK - Users mailing list archive at Nabble.com.<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>
> 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>
</div><div><br></div></div></blockquote><div><br></div></div></div><div>Jothy,</div><div><br></div><div>I don'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'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 "edit" 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 "page" page instead of the "edit" 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'll add it as a "how to contribute" section. Also, let me know when you do the first one and I'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>