<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi:<br><br>Please direct me to the link for vtk 5.6 with the Tcl release. I'm trying to create some <br>image reslicing tests which might best be executable in Tcl.<br><br>Best regards,<br>
Cartik<br><br>--- On <b>Tue, 10/12/10, vtkusers-request@vtk.org <i><vtkusers-request@vtk.org></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: vtkusers-request@vtk.org <vtkusers-request@vtk.org><br>Subject: vtkusers Digest, Vol 78, Issue 18<br>To: vtkusers@vtk.org<br>Date: Tuesday, October 12, 2010, 12:00 PM<br><br><div class="plainMail">Send vtkusers mailing list submissions to<br> <a ymailto="mailto:vtkusers@vtk.org" href="/mc/compose?to=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 'help' to<br> <a ymailto="mailto:vtkusers-request@vtk.org"
href="/mc/compose?to=vtkusers-request@vtk.org">vtkusers-request@vtk.org</a><br><br>You can reach the person managing the list at<br> <a ymailto="mailto:vtkusers-owner@vtk.org" href="/mc/compose?to=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 "Re: Contents of vtkusers digest..."<br><br><br>Today's Topics:<br><br> 1. Re: saving the window to a file (Bill Chivas)<br> 2. Re: saving the window to a file (David Doria)<br> 3. Re: vtkImageData to C array (Michael Jackson)<br> 4. Re: saving the window to a file (Bill Chivas)<br> 5. Re: [Insight-users] Error building InsightApplications<br> (Ravi Samala)<br> 6. Re: 3D point cloud nearest neighbor search (G. Allegri)<br> 7. Re: Question about contour widget (Jonathan
Morra)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Tue, 12 Oct 2010 12:01:51 +0000<br>From: Bill Chivas <<a ymailto="mailto:billno123@hotmail.com" href="/mc/compose?to=billno123@hotmail.com">billno123@hotmail.com</a>><br>Subject: Re: [vtkusers] saving the window to a file<br>To: <<a ymailto="mailto:daviddoria@gmail.com" href="/mc/compose?to=daviddoria@gmail.com">daviddoria@gmail.com</a>><br>Cc: "<a ymailto="mailto:vtkusers@vtk.org" href="/mc/compose?to=vtkusers@vtk.org">vtkusers@vtk.org</a>" <<a ymailto="mailto:vtkusers@vtk.org" href="/mc/compose?to=vtkusers@vtk.org">vtkusers@vtk.org</a>><br>Message-ID: <<a ymailto="mailto:BLU146-W153003C859F9D983BEA191F5540@phx.gbl" href="/mc/compose?to=BLU146-W153003C859F9D983BEA191F5540@phx.gbl">BLU146-W153003C859F9D983BEA191F5540@phx.gbl</a>><br>Content-Type: text/plain; charset="iso-8859-1"<br><br><br>sorry, i meant <br>"For
example i have a window 230x250, it goes to 690x750?"<br><br>From: <a ymailto="mailto:billno123@hotmail.com" href="/mc/compose?to=billno123@hotmail.com">billno123@hotmail.com</a><br>To: <a ymailto="mailto:daviddoria@gmail.com" href="/mc/compose?to=daviddoria@gmail.com">daviddoria@gmail.com</a><br>Date: Tue, 12 Oct 2010 11:59:59 +0000<br>CC: <a ymailto="mailto:vtkusers@vtk.org" href="/mc/compose?to=vtkusers@vtk.org">vtkusers@vtk.org</a><br>Subject: Re: [vtkusers] saving the window to a file<br><br><br><br><br><br><br><br><br>Thanks David.<br>So, when i set <br>windowToImageFilter->SetMagnification(3); <br>it sets the resolution to 3 times the resolution of the vtk window?<br>For example i have a window 230x250, it goes to 460x500?<br><br>> Date: Tue, 12 Oct 2010 07:38:51 -0400<br>> From: <a ymailto="mailto:daviddoria@gmail.com" href="/mc/compose?to=daviddoria@gmail.com">daviddoria@gmail.com</a><br>> To: <a
ymailto="mailto:billno123@hotmail.com" href="/mc/compose?to=billno123@hotmail.com">billno123@hotmail.com</a><br>> CC: <a ymailto="mailto:vtkusers@vtk.org" href="/mc/compose?to=vtkusers@vtk.org">vtkusers@vtk.org</a><br>> Subject: Re: [vtkusers] saving the window to a file<br>> <br>> On Tue, Oct 12, 2010 at 6:00 AM, Bill Chivas <<a ymailto="mailto:billno123@hotmail.com" href="/mc/compose?to=billno123@hotmail.com">billno123@hotmail.com</a>> wrote:<br>> > Hello,<br>> ><br>> > i want to save the window to a file (e.g. tiff format). I know there is the<br>> > vtkTIFFWriter but i wanted also to have an option for the resolution of the<br>> > saved image.<br>> > Any ideas?<br>> ><br>> > Thanks<br>> <br>> I believe you're looking for vtkWindowToImageFilter.<br>> <br>> There is an example here:<br>> <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/Screenshot"
target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/Screenshot</a><br>> <br>> Note this line:<br>> windowToImageFilter->SetMagnification(3); //set the resolution of<br>> the output image<br>> <br>> David<br>> _______________________________________________<br>> Powered by www.kitware.com<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><br>_______________________________________________<br>Powered by www.kitware.com<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>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <<a
href="http://www.vtk.org/pipermail/vtkusers/attachments/20101012/79585754/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20101012/79585754/attachment-0001.htm</a>><br><br>------------------------------<br><br>Message: 2<br>Date: Tue, 12 Oct 2010 08:02:50 -0400<br>From: David Doria <<a ymailto="mailto:daviddoria@gmail.com" href="/mc/compose?to=daviddoria@gmail.com">daviddoria@gmail.com</a>><br>Subject: Re: [vtkusers] saving the window to a file<br>To: Bill Chivas <<a ymailto="mailto:billno123@hotmail.com" href="/mc/compose?to=billno123@hotmail.com">billno123@hotmail.com</a>><br>Cc: "<a ymailto="mailto:vtkusers@vtk.org" href="/mc/compose?to=vtkusers@vtk.org">vtkusers@vtk.org</a>" <<a ymailto="mailto:vtkusers@vtk.org" href="/mc/compose?to=vtkusers@vtk.org">vtkusers@vtk.org</a>><br>Message-ID:<br> <AANLkTimaBN5xPeECo4krwkPAPSkxKJFJFw0KrssFM=<a
ymailto="mailto:M8@mail.gmail.com" href="/mc/compose?to=M8@mail.gmail.com">M8@mail.gmail.com</a>><br>Content-Type: text/plain; charset=ISO-8859-1<br><br>On Tue, Oct 12, 2010 at 8:01 AM, Bill Chivas <<a ymailto="mailto:billno123@hotmail.com" href="/mc/compose?to=billno123@hotmail.com">billno123@hotmail.com</a>> wrote:<br>> sorry, i meant<br>> "For example i have a window 230x250, it goes to 690x750?"<br><br>I believe so, but I'm not sure. Please test it out and add a note<br>describing the behavior to the wiki :)<br><br>David<br><br><br>------------------------------<br><br>Message: 3<br>Date: Tue, 12 Oct 2010 08:21:33 -0400<br>From: Michael Jackson <<a ymailto="mailto:mike.jackson@bluequartz.net" href="/mc/compose?to=mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>><br>Subject: Re: [vtkusers] vtkImageData to C array<br>To: Jothy <<a ymailto="mailto:jothybasu@gmail.com"
href="/mc/compose?to=jothybasu@gmail.com">jothybasu@gmail.com</a>><br>Cc: VTK Mailing List <<a ymailto="mailto:vtkusers@vtk.org" href="/mc/compose?to=vtkusers@vtk.org">vtkusers@vtk.org</a>><br>Message-ID: <-3138763548994922783@unknownmsgid><br>Content-Type: text/plain; charset=ISO-8859-1<br><br>You can use getscalarpointer(0) which will return a pointer to the<br>first element of the array. You can then use regular pointer semantics<br>to process the data.<br><br>-----<br>Mike Jackson www.bluequartz.net<br>Principal Software Engineer <a ymailto="mailto:mike.jackson@bluequartz.net" href="/mc/compose?to=mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a><br>BlueQuartz Software Dayton, Ohio<br><br>On Oct 12, 2010, at 7:21, Jothy <<a
ymailto="mailto:jothybasu@gmail.com" href="/mc/compose?to=jothybasu@gmail.com">jothybasu@gmail.com</a>> wrote:<br><br>> Hi all,<br>><br>> I want to convert a vtkImageData to a C array.<br>><br>> I don't like to use imgData->hgetScalarPointer(i,j,k), because it will be too slow for my purpose.<br>><br>> How to do this?<br>><br>> Any hints?<br>><br>> --<br>> Research Scholar<br>> Dept. of Medical Physics<br>> Clatterbridge Centre for Oncology<br>> UK<br>><br>> _______________________________________________<br>> Powered by www.kitware.com<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><br>------------------------------<br><br>Message: 4<br>Date: Tue, 12 Oct 2010 12:47:03 +0000<br>From: Bill Chivas <<a ymailto="mailto:billno123@hotmail.com" href="/mc/compose?to=billno123@hotmail.com">billno123@hotmail.com</a>><br>Subject: Re: [vtkusers] saving the window to a file<br>To: <<a ymailto="mailto:daviddoria@gmail.com" href="/mc/compose?to=daviddoria@gmail.com">daviddoria@gmail.com</a>><br>Cc: "<a ymailto="mailto:vtkusers@vtk.org" href="/mc/compose?to=vtkusers@vtk.org">vtkusers@vtk.org</a>" <<a ymailto="mailto:vtkusers@vtk.org" href="/mc/compose?to=vtkusers@vtk.org">vtkusers@vtk.org</a>><br>Message-ID: <<a ymailto="mailto:BLU146-W32E7CF294AF69D2792E401F5540@phx.gbl"
href="/mc/compose?to=BLU146-W32E7CF294AF69D2792E401F5540@phx.gbl">BLU146-W32E7CF294AF69D2792E401F5540@phx.gbl</a>><br>Content-Type: text/plain; charset="iso-8859-1"<br><br><br>I test it and it works as i had supposed.<br>I also add a note in wiki in screenshot example (a comment at line "windowToImageFilter->SetMagnification(3);").<br><br><a href="http://www.cmake.org/Wiki/VTK/Examples/Cxx/Utilities/Screenshot" target="_blank">http://www.cmake.org/Wiki/VTK/Examples/Cxx/Utilities/Screenshot</a><br><br>> Date: Tue, 12 Oct 2010 08:02:50 -0400<br>> From: <a ymailto="mailto:daviddoria@gmail.com" href="/mc/compose?to=daviddoria@gmail.com">daviddoria@gmail.com</a><br>> To: <a ymailto="mailto:billno123@hotmail.com" href="/mc/compose?to=billno123@hotmail.com">billno123@hotmail.com</a><br>> CC: <a ymailto="mailto:vtkusers@vtk.org" href="/mc/compose?to=vtkusers@vtk.org">vtkusers@vtk.org</a><br>> Subject: Re: [vtkusers] saving the window to a
file<br>> <br>> On Tue, Oct 12, 2010 at 8:01 AM, Bill Chivas <<a ymailto="mailto:billno123@hotmail.com" href="/mc/compose?to=billno123@hotmail.com">billno123@hotmail.com</a>> wrote:<br>> > sorry, i meant<br>> > "For example i have a window 230x250, it goes to 690x750?"<br>> <br>> I believe so, but I'm not sure. Please test it out and add a note<br>> describing the behavior to the wiki :)<br>> <br>> David<br>> _______________________________________________<br>> Powered by www.kitware.com<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>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20101012/a1f898d9/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20101012/a1f898d9/attachment-0001.htm</a>><br><br>------------------------------<br><br>Message: 5<br>Date: Tue, 12 Oct 2010 07:36:14 -0600<br>From: Ravi Samala <<a ymailto="mailto:rksamala@miners.utep.edu" href="/mc/compose?to=rksamala@miners.utep.edu">rksamala@miners.utep.edu</a>><br>Subject: Re: [vtkusers] [Insight-users] Error building<br> InsightApplications<br>To: ITK <<a ymailto="mailto:insight-users@itk.org"
href="/mc/compose?to=insight-users@itk.org">insight-users@itk.org</a>>, VTK <<a ymailto="mailto:vtkusers@vtk.org" href="/mc/compose?to=vtkusers@vtk.org">vtkusers@vtk.org</a>><br>Message-ID: <<a ymailto="mailto:BLU123-W27BC052C503EBDC11CACDD9E540@phx.gbl" href="/mc/compose?to=BLU123-W27BC052C503EBDC11CACDD9E540@phx.gbl">BLU123-W27BC052C503EBDC11CACDD9E540@phx.gbl</a>><br>Content-Type: text/plain; charset="iso-8859-1"<br><br><br><br><br><br>I was able to figure it out.<br><br>namespace itk in \Code\Common\itkinttypes.h file is causing the problem.<br><br>regards,<br>RS.<br>From: <a ymailto="mailto:rksamala@miners.utep.edu" href="/mc/compose?to=rksamala@miners.utep.edu">rksamala@miners.utep.edu</a><br>To: <a ymailto="mailto:insight-users@itk.org" href="/mc/compose?to=insight-users@itk.org">insight-users@itk.org</a>; <a ymailto="mailto:vtkusers@vtk.org" href="/mc/compose?to=vtkusers@vtk.org">vtkusers@vtk.org</a><br>Date: Mon, 11 Oct 2010
22:10:59 -0600<br>Subject: [Insight-users] Error building InsightApplications<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>Hello Everyone,<br><br>I am trying to build InsightApplications and I keep getting the following error. I am using ITK, ITKApps, VTK (all nightly-master) compiled with CMake 2.8.2 and FLTK 1.1.10.<br><br>C:\Program Files\Microsoft Visual Studio 8\VC\include\xlocnum(590) : error C2872: 'uintptr_t' : ambiguous symbol<br> could be 'C:\Program Files\Microsoft Visual Studio 8\VC\include\vadefs.h(52) : __w64 unsigned int uintptr_t'<br> or 'c:\msysgit\msysgit\git\itk\code\common\itkIntTypes.h(115) : itk::uintptr_t'<br> C:\Program Files\Microsoft Visual Studio 8\VC\include\xlocnum(566) : while compiling class template member function 'std::istreambuf_iterator<_Elem,_Traits> std::num_get<_Elem,_InIt>::do_get(_InIt,_InIt,std::ios_base
&,std::ios_base::iostate &,void *&) const'<br> with<br> [<br> _Elem=char,<br> _Traits=std::char_traits<char>,<br> _InIt=std::istreambuf_iterator<char,std::char_traits<char>><br> ]<br> C:\Program Files\Microsoft Visual Studio 8\VC\include\xlocnum(1367) : see reference to class template instantiation 'std::num_get<_Elem,_InIt>' being compiled<br> with<br> [<br> _Elem=char,<br> _InIt=std::istreambuf_iterator<char,std::char_traits<char>><br> ]<br><br><br><br>Thanks,<br>RS.<br>
<br><br>_____________________________________<br>Powered by www.kitware.com<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>Kitware offers ITK Training Courses, for more information visit:<br><a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br><br>Please keep messages on-topic and check the ITK FAQ at:<br><a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a>
<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20101012/f514c6be/attachment-0001.htm" target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20101012/f514c6be/attachment-0001.htm</a>><br><br>------------------------------<br><br>Message: 6<br>Date: Tue, 12 Oct 2010 15:58:03 +0200<br>From: "G. Allegri" <<a ymailto="mailto:giohappy@gmail.com" href="/mc/compose?to=giohappy@gmail.com">giohappy@gmail.com</a>><br>Subject: Re: [vtkusers] 3D point cloud nearest neighbor search<br>To: David Doria <<a ymailto="mailto:daviddoria@gmail.com" href="/mc/compose?to=daviddoria@gmail.com">daviddoria@gmail.com</a>><br>Cc: <a ymailto="mailto:vtkusers@vtk.org"
href="/mc/compose?to=vtkusers@vtk.org">vtkusers@vtk.org</a><br>Message-ID:<br> <<a ymailto="mailto:AANLkTik06aa4ZGiuTmdnPU3LvOM21UrZrtjWXvVzPK8L@mail.gmail.com" href="/mc/compose?to=AANLkTik06aa4ZGiuTmdnPU3LvOM21UrZrtjWXvVzPK8L@mail.gmail.com">AANLkTik06aa4ZGiuTmdnPU3LvOM21UrZrtjWXvVzPK8L@mail.gmail.com</a>><br>Content-Type: text/plain; charset=ISO-8859-1<br><br>Thanks David, I will give it a try and I'll let you know.<br><br>2010/10/12 David Doria <<a ymailto="mailto:daviddoria@gmail.com" href="/mc/compose?to=daviddoria@gmail.com">daviddoria@gmail.com</a>>:<br>> On Tue, Oct 12, 2010 at 4:23 AM, G. Allegri <<a ymailto="mailto:giohappy@gmail.com" href="/mc/compose?to=giohappy@gmail.com">giohappy@gmail.com</a>> wrote:<br>>> Hello. I'm new to VTK and this list, so forgive my trivial questions.<br>>><br>>> I'm considering to use VTK to solve a conceptually simple problem, but<br>>> that require
efficient 3D algorithms and data structures. I have a csv<br>>> file which represents a 3D grid of points (SET1). In this specific<br>>> case their regularly spaced on the three axes, but the general case<br>>> can be an irregular point cloud. The dataset is made of a couple of<br>>> millions of points. I also have another set of 3D points (SET2). I<br>>> need to set attributes in SET2 "sampling" the NN from SET1.<br>>><br>>> I've chosen VTK having seen the various kd-tree and locator classes,<br>>> but I wonder what is the most efficient way to achieve my goal, and<br>>> what data structured is best for this. I'm considering vtkPolyData or<br>>> vtkUnstructuredGrid. What would you suggest for my datas and problem?<br>>> Are there efficient classes to read csv input streams to fill my data<br>>> structures?<br>>><br>>> Thanks a lot,<br>>> Giovanni<br>><br>>
You can modify this to read your csv file into a vtkPolyData:<br>> <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/InfoVis/ReadDelimitedFile" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/InfoVis/ReadDelimitedFile</a><br>><br>> Then build a vtkKdTreePointLocator to do the NN queries:<br>> <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/DataStructures/KdTreePointLocator/ClosestPoint" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Cxx/DataStructures/KdTreePointLocator/ClosestPoint</a><br>><br>> Let us know if you have any trouble once you give it a shot.<br>><br>> David<br>><br><br><br>------------------------------<br><br>Message: 7<br>Date: Tue, 12 Oct 2010 08:34:54 -0700<br>From: Jonathan Morra <<a ymailto="mailto:jonmorra@gmail.com" href="/mc/compose?to=jonmorra@gmail.com">jonmorra@gmail.com</a>><br>Subject: Re: [vtkusers] Question about contour widget<br>To: Karthik Krishnan <<a
ymailto="mailto:karthik.krishnan@kitware.com" href="/mc/compose?to=karthik.krishnan@kitware.com">karthik.krishnan@kitware.com</a>><br>Cc: VTK Mailing List <<a ymailto="mailto:vtkusers@vtk.org" href="/mc/compose?to=vtkusers@vtk.org">vtkusers@vtk.org</a>><br>Message-ID:<br> <AANLkTi=BQn6azearpyZqHrnYUaaZZETcd+<a ymailto="mailto:0oFR8V9Vz0@mail.gmail.com" href="/mc/compose?to=0oFR8V9Vz0@mail.gmail.com">0oFR8V9Vz0@mail.gmail.com</a>><br>Content-Type: text/plain; charset="iso-8859-1"<br><br>Thanks for your help, I replaced the placer as you suggested, and now my<br>code looks like the following<br><br>vtkBoundedPlanePointPlacer placer = new vtkBoundedPlanePointPlacer();<br> placer.SetProjectionNormalToZAxis();<br><br> placer.SetProjectionPosition(panel.getImageViewer().GetImageActor().GetCenter()[2]);<br> rep.SetPointPlacer(placer);<br><br>This is almost right. The
contour now appears on the plane that I drew it<br>on and the plane above it and that is it. I just want the contour on the<br>plane I drew it on. I tried playing around with placer.SetPixelTolerance()<br>but that didn't make a difference.<br><br>On Tue, Oct 12, 2010 at 2:33 AM, Karthik Krishnan <<br><a ymailto="mailto:karthik.krishnan@kitware.com" href="/mc/compose?to=karthik.krishnan@kitware.com">karthik.krishnan@kitware.com</a>> wrote:<br><br>> On Tue, Oct 12, 2010 at 10:33 AM, Jonathan Morra <<a ymailto="mailto:jonmorra@gmail.com" href="/mc/compose?to=jonmorra@gmail.com">jonmorra@gmail.com</a>>wrote:<br>><br>>> I have a vtkImageViewer2 and wish to use vtkContourWidget to draw a<br>>> contour on the image. The data I'm loading is a 3D DICOM CT volume. I have<br>>> found the following question<br>>> <a
href="http://vtk.1045678.n5.nabble.com/vtkContourWidget-with-vtkImageViewer2-td1236295.html" target="_blank">http://vtk.1045678.n5.nabble.com/vtkContourWidget-with-vtkImageViewer2-td1236295.html</a> and<br>>> created the following code as a result (in Java)<br>>><br>>> vtkContourWidget contourWidget = new vtkContourWidget();<br>>> contourWidget.SetInteractor(panel.getRenWin().getIren());<br>>> contourWidget.FollowCursorOn();<br>>><br>>> vtkOrientedGlyphContourRepresentation rep = new<br>>> vtkOrientedGlyphContourRepresentation();<br>>> contourWidget.SetRepresentation(rep);<br>>><br>>> vtkImageActorPointPlacer placer = new
vtkImageActorPointPlacer();<br>>> placer.SetImageActor(panel.getImageViewer().GetImageActor());<br>>> rep.SetPointPlacer(placer);<br>>><br>><br>> What this point placer does is to constrain the contour to the plane<br>> defined by the ImageActor. However, given that the same image actor is used<br>> for multiple slices, when you change the slice, the position of the image<br>> actor effectively changes and the contour updates itself to lie on the new<br>> plane.<br>><br>> What you need is to use a vtkBoundedPlanePointPlacer with the bounding<br>> planes de-lienating the bounds of the image actor when the contour is<br>> defined. That way it won't change when you change the slice.<br>><br>> Also to manage visibility of the contour (the contour will be visible for<br>> all slices in front of the defined slice), you could
subclass the contour<br>> representation, insert a clipper that clips the polydata based on the<br>> bounding planes, that way, visibility is implicitly managed by the<br>> representation.<br>><br>> --<br>> karthik<br>><br>> contourWidget.EnabledOn();<br>>> contourWidget.ProcessEventsOn();<br>>><br>>> When I do this and draw a contour and then scroll through the image planes<br>>> the same contour appears on every plane. Ideally I'd like a different<br>>> contour on every plane. If I don't use the vtkImageActorPointPlacer then<br>>> the contour only appears on one plane but it's the same plane regardless of<br>>> which plane is being viewed, which is also wrong.<br>>><br>>> Any suggestions about how to do this correctly would be greatly<br>>> appreciated.<br>>><br>>>
Thanks<br>>><br>>> _______________________________________________<br>>> Powered by www.kitware.com<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>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <<a href="http://www.vtk.org/pipermail/vtkusers/attachments/20101012/50438f94/attachment-0001.htm"
target="_blank">http://www.vtk.org/pipermail/vtkusers/attachments/20101012/50438f94/attachment-0001.htm</a>><br><br>------------------------------<br><br>_______________________________________________<br>vtkusers mailing list<br><a ymailto="mailto:vtkusers@vtk.org" href="/mc/compose?to=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 78, Issue 18<br>****************************************<br></div></blockquote></td></tr></table><br>