<div style="font-family:Verdana;font-size:14px;color:#000;"><DIV>Hello:</DIV><DIV>I have a question to ask. How can I read the Triangle information(include triangle vertices,points,size of points, etc) in vtkPolyData or in vtkCellArray,because I want to build the model by my code rather than vtkOBJExporter.</DIV><div style="font:Verdana normal 14px;color:#000;"><div> </div><div> </div><div style="FONT-SIZE: 12px;FONT-FAMILY: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="FONT-SIZE: 12px;"><div><b>From:</b> "insight-users-request"<insight-users-request@itk.org>;</div><div><b>Date:</b> 2010年2月2日(星期二) 下午4:10</div><div><b>To:</b> "insight-users"<insight-users@itk.org>;</div><div><b>Subject:</b> Insight-users Digest, Vol 70, Issue 5</div></div><div> </div><TABLE border=0 cellSpacing=0 cellPadding=0 width="100%">
<TBODY>
<TR>
<TD style="PADDING-BOTTOM: 0px; MIN-HEIGHT: auto; PADDING-LEFT: 0px; PADDING-RIGHT: 0px; HEIGHT: auto; FONT-SIZE: 14px; PADDING-TOP: 0px" class=body vAlign=top>Send Insight-users mailing list submissions to<BR> insight-users@itk.org<BR><BR>To subscribe or unsubscribe via the World Wide Web, visit<BR> http://www.itk.org/mailman/listinfo/insight-users<BR>or, via email, send a message with subject or body 'help' to<BR> insight-users-request@itk.org<BR><BR>You can reach the person managing the list at<BR> insight-users-owner@itk.org<BR><BR>When replying, please edit your Subject line so it is more specific<BR>than "Re: Contents of Insight-users digest..."<BR><BR><BR>Today's Topics:<BR><BR> 1. Re: typedef name cannot follow class/struct/union<BR> (Neil.Burdett@csiro.au)<BR> 2. Re: typedef name cannot follow class/struct/union (Bill Lorensen)<BR> 3. Re: typedef name cannot follow class/struct/union (Andreas Schuh)<BR> 4. Re: Question about CMake_CXX_Compiler (Yang, Jinzhong)<BR> 5. Parametric vs. Non-parametric image registration? (motes motes)<BR> 6. Re: Parametric vs. Non-parametric image registration?<BR> (Lodron, Gerald)<BR><BR><BR>----------------------------------------------------------------------<BR><BR>Message: 1<BR>Date: Tue, 2 Feb 2010 15:20:30 +1100<BR>From: <Neil.Burdett@csiro.au><BR>Subject: Re: [Insight-users] typedef name cannot follow<BR> class/struct/union<BR>To: <bill.lorensen@gmail.com>, <dan.muel@gmail.com><BR>Cc: insight-users@itk.org<BR>Message-ID:<BR> <6FACAC4CD9615D41B1FE8171A60CB98AB25DE6C297@EXNSW-MBX03.nexus.csiro.au><BR> <BR>Content-Type: text/plain; charset="iso-8859-1"<BR><BR>Hi Bill and Dan,<BR> thanks for the reply, but removing typename, or replacing it with ITK_TYPENAME gives exactly the same error in visual studio 2008;<BR><BR>"error C2242: typedef name cannot follow class/struct/union"<BR><BR>The full extract of code I'm using is;<BR><BR> // Compute the seed image, by closing cavities and holes with an ultimate skeleton of the cuboid image<BR> typedef typename itk::UltimateSkeletonImageFilter<TOutputImage, TOutputImage, itk::Connectivity<Dimension, 0>, DistanceImageType > SeedSkeletonFilterType;<BR> itk::UltimateSkeletonImageFilter<TOutputImage, TOutputImage, itk::Connectivity<Dimension, 0>, DistanceImageType > SeedSkeletonFilterType;<BR><BR> typename SeedSkeletonFilterType::Pointer seedSkeletonFilter = SeedSkeletonFilterType::New();<BR> seedSkeletonFilter->SetInput(cuboidImage->GetOutput());<BR> seedSkeletonFilter->SetPriorityImage(distanceInvertIntensityFilter->GetOutput());<BR> seedSkeletonFilter->SetInhibitImage(parallelSkeletonFilter->GetOutput());<BR> try{<BR> seedSkeletonFilter->Update();<BR> } catch(itk::ExceptionObject &ex) {<BR> throw itk::ExceptionObject("milxTopologicalHolesFilling", 0, std::string("Topological holes filling.. seed ultimate skeleton failed: ") + ex.GetDescription());<BR> }<BR><BR>Neil<BR><BR>-----Original Message-----<BR>From: Bill Lorensen [mailto:bill.lorensen@gmail.com] <BR>Sent: Monday, 1 February 2010 11:46 PM<BR>To: Burdett, Neil (ICT Centre, Herston - RBWH)<BR>Cc: insight-users@itk.org<BR>Subject: Re: [Insight-users] typedef name cannot follow class/struct/union<BR><BR>I think the typename can be removed on both Windows and linux. My<BR>general rule for typename is that it is required if there are no<BR>template variables.<BR><BR>For example<BR><BR>typedef Foo<bar> FooBarType;<BR><BR>typedef typename Foo::Pointer FooPointer;<BR><BR>On Sun, Jan 31, 2010 at 11:39 PM, <Neil.Burdett@csiro.au> wrote:<BR>> Hi,<BR>><BR>> ??? I am currently porting an application from Ubuntu to windows. The line<BR>> of code below compiles on Ubuntu but not on visual studio...<BR>><BR>><BR>><BR>> ? typedef typename itk::UltimateSkeletonImageFilter<TOutputImage,<BR>> TOutputImage, itk::Connectivity<Dimension, 0>, DistanceImageType ><BR>> SeedSkeletonFilterType;<BR>><BR>><BR>><BR>> I receive the error in visual studio 2008 "error C2242: typedef name cannot<BR>> follow class/struct/union"<BR>><BR>><BR>><BR>> Any help would be appreciated.<BR>><BR>><BR>><BR>> Neil<BR>><BR>> _____________________________________<BR>> Powered by www.kitware.com<BR>><BR>> Visit other Kitware open-source projects at<BR>> http://www.kitware.com/opensource/opensource.html<BR>><BR>> Kitware offers ITK Training Courses, for more information visit:<BR>> http://www.kitware.com/products/protraining.html<BR>><BR>> Please keep messages on-topic and check the ITK FAQ at:<BR>> http://www.itk.org/Wiki/ITK_FAQ<BR>><BR>> Follow this link to subscribe/unsubscribe:<BR>> http://www.itk.org/mailman/listinfo/insight-users<BR>><BR>><BR><BR><BR>------------------------------<BR><BR>Message: 2<BR>Date: Mon, 1 Feb 2010 23:46:37 -0500<BR>From: Bill Lorensen <bill.lorensen@gmail.com><BR>Subject: Re: [Insight-users] typedef name cannot follow<BR> class/struct/union<BR>To: Neil.Burdett@csiro.au<BR>Cc: insight-users@itk.org<BR>Message-ID:<BR> <4db4735c1002012046g253b8d02t7fc86b3387885728@mail.gmail.com><BR>Content-Type: text/plain; charset=ISO-8859-1<BR><BR>Delete this line:<BR> itk::UltimateSkeletonImageFilter<TOutputImage, TOutputImage,<BR>itk::Connectivity<Dimension, 0>, DistanceImageType ><BR>SeedSkeletonFilterType;<BR><BR><BR>On Mon, Feb 1, 2010 at 11:20 PM, <Neil.Burdett@csiro.au> wrote:<BR>> Hi Bill and Dan,<BR>> ? ? ? ?thanks for the reply, but removing typename, or replacing it with ITK_TYPENAME gives exactly the same error in visual studio 2008;<BR>><BR>> "error C2242: typedef name cannot follow class/struct/union"<BR>><BR>> The full extract of code I'm using is;<BR>><BR>> ?// Compute the seed image, by closing cavities and holes with an ultimate skeleton of the cuboid image<BR>> ?typedef typename itk::UltimateSkeletonImageFilter<TOutputImage, TOutputImage, itk::Connectivity<Dimension, 0>, DistanceImageType > SeedSkeletonFilterType;<BR>> ?itk::UltimateSkeletonImageFilter<TOutputImage, TOutputImage, itk::Connectivity<Dimension, 0>, DistanceImageType > SeedSkeletonFilterType;<BR>><BR>> ?typename SeedSkeletonFilterType::Pointer seedSkeletonFilter = SeedSkeletonFilterType::New();<BR>> ?seedSkeletonFilter->SetInput(cuboidImage->GetOutput());<BR>> ?seedSkeletonFilter->SetPriorityImage(distanceInvertIntensityFilter->GetOutput());<BR>> ?seedSkeletonFilter->SetInhibitImage(parallelSkeletonFilter->GetOutput());<BR>> ?try{<BR>> ? ?seedSkeletonFilter->Update();<BR>> ?} catch(itk::ExceptionObject &ex) {<BR>> ? ?throw itk::ExceptionObject("milxTopologicalHolesFilling", 0, std::string("Topological holes filling.. seed ultimate skeleton failed: ") + ex.GetDescription());<BR>> ?}<BR>><BR>> Neil<BR>><BR>> -----Original Message-----<BR>> From: Bill Lorensen [mailto:bill.lorensen@gmail.com]<BR>> Sent: Monday, 1 February 2010 11:46 PM<BR>> To: Burdett, Neil (ICT Centre, Herston - RBWH)<BR>> Cc: insight-users@itk.org<BR>> Subject: Re: [Insight-users] typedef name cannot follow class/struct/union<BR>><BR>> I think the typename can be removed on both Windows and linux. My<BR>> general rule for typename is that it is required if there are no<BR>> template variables.<BR>><BR>> For example<BR>><BR>> typedef Foo<bar> FooBarType;<BR>><BR>> typedef typename Foo::Pointer FooPointer;<BR>><BR>> On Sun, Jan 31, 2010 at 11:39 PM, ?<Neil.Burdett@csiro.au> wrote:<BR>>> Hi,<BR>>><BR>>> ??? I am currently porting an application from Ubuntu to windows. The line<BR>>> of code below compiles on Ubuntu but not on visual studio...<BR>>><BR>>><BR>>><BR>>> ? typedef typename itk::UltimateSkeletonImageFilter<TOutputImage,<BR>>> TOutputImage, itk::Connectivity<Dimension, 0>, DistanceImageType ><BR>>> SeedSkeletonFilterType;<BR>>><BR>>><BR>>><BR>>> I receive the error in visual studio 2008 "error C2242: typedef name cannot<BR>>> follow class/struct/union"<BR>>><BR>>><BR>>><BR>>> Any help would be appreciated.<BR>>><BR>>><BR>>><BR>>> Neil<BR>>><BR>>> _____________________________________<BR>>> Powered by www.kitware.com<BR>>><BR>>> Visit other Kitware open-source projects at<BR>>> http://www.kitware.com/opensource/opensource.html<BR>>><BR>>> Kitware offers ITK Training Courses, for more information visit:<BR>>> http://www.kitware.com/products/protraining.html<BR>>><BR>>> Please keep messages on-topic and check the ITK FAQ at:<BR>>> http://www.itk.org/Wiki/ITK_FAQ<BR>>><BR>>> Follow this link to subscribe/unsubscribe:<BR>>> http://www.itk.org/mailman/listinfo/insight-users<BR>>><BR>>><BR>><BR><BR><BR>------------------------------<BR><BR>Message: 3<BR>Date: Mon, 1 Feb 2010 23:48:31 -0500<BR>From: Andreas Schuh <andreas.schuh.84@googlemail.com><BR>Subject: Re: [Insight-users] typedef name cannot follow<BR> class/struct/union<BR>To: <Neil.Burdett@csiro.au><BR>Cc: itk <insight-users@itk.org><BR>Message-ID: <363946BB-F10E-4E8C-8967-6E88304BE93D@googlemail.com><BR>Content-Type: text/plain; charset=us-ascii<BR><BR>Hi Neil,<BR><BR>Try<BR><BR>typedef itk::UltimateSkeletonImageFilter<TOutputImage, TOutputImage, itk::Connectivity<Dimension, 0>, DistanceImageType > SeedSkeletonFilterType;<BR><BR>There is no typename specified necessary here. Actually, I think it's wrong to use it.<BR><BR>The second line after this one in your mail might just be a copy-and-paste relict while you were composing the mail. Because it doesn't make sense at all ...<BR><BR>The use of the second typename for the pointer type declaration is fine and for compilers like the VC6 also necessary.<BR><BR>Andreas<BR><BR><BR>On Feb 1, 2010, at 11:20 PM, <Neil.Burdett@csiro.au> wrote:<BR><BR>> Hi Bill and Dan,<BR>> thanks for the reply, but removing typename, or replacing it with ITK_TYPENAME gives exactly the same error in visual studio 2008;<BR>> <BR>> "error C2242: typedef name cannot follow class/struct/union"<BR>> <BR>> The full extract of code I'm using is;<BR>> <BR>> // Compute the seed image, by closing cavities and holes with an ultimate skeleton of the cuboid image<BR>> typedef typename itk::UltimateSkeletonImageFilter<TOutputImage, TOutputImage, itk::Connectivity<Dimension, 0>, DistanceImageType > SeedSkeletonFilterType;<BR>> itk::UltimateSkeletonImageFilter<TOutputImage, TOutputImage, itk::Connectivity<Dimension, 0>, DistanceImageType > SeedSkeletonFilterType;<BR>> <BR>> typename SeedSkeletonFilterType::Pointer seedSkeletonFilter = SeedSkeletonFilterType::New();<BR>> seedSkeletonFilter->SetInput(cuboidImage->GetOutput());<BR>> seedSkeletonFilter->SetPriorityImage(distanceInvertIntensityFilter->GetOutput());<BR>> seedSkeletonFilter->SetInhibitImage(parallelSkeletonFilter->GetOutput());<BR>> try{<BR>> seedSkeletonFilter->Update();<BR>> } catch(itk::ExceptionObject &ex) {<BR>> throw itk::ExceptionObject("milxTopologicalHolesFilling", 0, std::string("Topological holes filling.. seed ultimate skeleton failed: ") + ex.GetDescription());<BR>> }<BR>> <BR>> Neil<BR>> <BR>> -----Original Message-----<BR>> From: Bill Lorensen [mailto:bill.lorensen@gmail.com] <BR>> Sent: Monday, 1 February 2010 11:46 PM<BR>> To: Burdett, Neil (ICT Centre, Herston - RBWH)<BR>> Cc: insight-users@itk.org<BR>> Subject: Re: [Insight-users] typedef name cannot follow class/struct/union<BR>> <BR>> I think the typename can be removed on both Windows and linux. My<BR>> general rule for typename is that it is required if there are no<BR>> template variables.<BR>> <BR>> For example<BR>> <BR>> typedef Foo<bar> FooBarType;<BR>> <BR>> typedef typename Foo::Pointer FooPointer;<BR>> <BR>> On Sun, Jan 31, 2010 at 11:39 PM, <Neil.Burdett@csiro.au> wrote:<BR>>> Hi,<BR>>> <BR>>> I am currently porting an application from Ubuntu to windows. The line<BR>>> of code below compiles on Ubuntu but not on visual studio...<BR>>> <BR>>> <BR>>> <BR>>> typedef typename itk::UltimateSkeletonImageFilter<TOutputImage,<BR>>> TOutputImage, itk::Connectivity<Dimension, 0>, DistanceImageType ><BR>>> SeedSkeletonFilterType;<BR>>> <BR>>> <BR>>> <BR>>> I receive the error in visual studio 2008 "error C2242: typedef name cannot<BR>>> follow class/struct/union"<BR>>> <BR>>> <BR>>> <BR>>> Any help would be appreciated.<BR>>> <BR>>> <BR>>> <BR>>> Neil<BR>>> <BR>>> _____________________________________<BR>>> Powered by www.kitware.com<BR>>> <BR>>> Visit other Kitware open-source projects at<BR>>> http://www.kitware.com/opensource/opensource.html<BR>>> <BR>>> Kitware offers ITK Training Courses, for more information visit:<BR>>> http://www.kitware.com/products/protraining.html<BR>>> <BR>>> Please keep messages on-topic and check the ITK FAQ at:<BR>>> http://www.itk.org/Wiki/ITK_FAQ<BR>>> <BR>>> Follow this link to subscribe/unsubscribe:<BR>>> http://www.itk.org/mailman/listinfo/insight-users<BR>>> <BR>>> <BR>> _____________________________________<BR>> Powered by www.kitware.com<BR>> <BR>> Visit other Kitware open-source projects at<BR>> http://www.kitware.com/opensource/opensource.html<BR>> <BR>> Kitware offers ITK Training Courses, for more information visit:<BR>> http://www.kitware.com/products/protraining.html<BR>> <BR>> Please keep messages on-topic and check the ITK FAQ at:<BR>> http://www.itk.org/Wiki/ITK_FAQ<BR>> <BR>> Follow this link to subscribe/unsubscribe:<BR>> http://www.itk.org/mailman/listinfo/insight-users<BR><BR><BR><BR>------------------------------<BR><BR>Message: 4<BR>Date: Mon, 1 Feb 2010 23:52:39 -0600<BR>From: "Yang, Jinzhong" <jinzhong76@gmail.com><BR>Subject: Re: [Insight-users] Question about CMake_CXX_Compiler<BR>To: "'John Drescher'" <drescherjm@gmail.com><BR>Cc: 'Insight Users Mailing List' <insight-users@itk.org><BR>Message-ID: <011b01caa3cb$ee9b6390$cbd22ab0$@com><BR>Content-Type: text/plain; charset="ISO-8859-1"<BR><BR>Hi John,<BR><BR>Thank you very much for your message. I will upgrade my CMake to the new<BR>version.<BR><BR>-Jinzhong<BR><BR><BR>-----Original Message-----<BR>From: John Drescher [mailto:drescherjm@gmail.com] <BR>Sent: Monday, February 01, 2010 7:03 PM<BR>To: Yang, Jinzhong<BR>Cc: Insight Users Mailing List<BR>Subject: Re: [Insight-users] Question about CMake_CXX_Compiler<BR><BR>> I have a question regarding the compiler used for CMake-generated?<BR>projects.<BR>> Previously my computer is installed with MS Visual Studio 2005 only and I<BR>> compiled ITK using VS2005. Recently I installed the MS Visual Studio 6 on<BR>my<BR>> computer and the problem comes up. I generate my projects that require ITK<BR>> using CMake 2.6.4. The projects are configured to be MS Visual Studio 2005<BR>> projects. Each time when I configure a project in CMake GUI, I will get a<BR>> warning message:<BR>><BR>> Warning: CMake is forcing CMAKE_CXX_COMPILER to "cl" to match that<BR>><BR>> imported from ITK.? This is required because C++ projects must use the<BR>><BR>> same compiler.? If this message appears for more than one imported<BR>><BR>> project, you have conflicting C++ compilers and will have to re-build<BR>><BR>> one of those projects. Was set to C:/Program Files/Microsoft<BR>><BR>> Visual Studio/VC98/bin/cl.exe<BR>><BR>> I checked the parameters in CMake GUI and found these parameters are<BR>> associated with tools coming with Visual Studio 6:<BR>><BR>> CMAKE_CXX_COMPILER (forced to be cl during configuration)<BR>><BR>> CMAKE_C_COMPILER<BR>><BR>> CMAKE_LINKER<BR>><BR>> CMAKE_RC_COMPILER<BR>><BR>> However, the generated projects are in the VS2005 format and I can compile<BR>> them in VS2005 IDE without any problem. Here are my questions:<BR>><BR>> 1.????? Is there any way to suppress the warning message? Specifically, I<BR>> would like the 4 parameters listed above associated with tools coming with<BR>> Visual Studio 2005 if the project is configured as a VS2005 project.<BR>><BR>> 2.????? Are there any potential problems if I disregard the warning<BR>message?<BR>><BR>You can disregard the message.<BR><BR>I reported a bug about 6 months ago about this. I was told that even<BR>though cmake was reporting this warning it was doing the right thing<BR>and not using vc6. I have since upgraded to cmake-2.8.0 and I do not<BR>remember having this anymore.<BR><BR>John<BR><BR><BR><BR>------------------------------<BR><BR>Message: 5<BR>Date: Tue, 2 Feb 2010 09:14:09 +0100<BR>From: motes motes <mort.motes@gmail.com><BR>Subject: [Insight-users] Parametric vs. Non-parametric image<BR> registration?<BR>To: Insight Users Mailing List <insight-users@itk.org><BR>Message-ID:<BR> <54eca6a71002020014qf9e74f4idd4bbe4815938acb@mail.gmail.com><BR>Content-Type: text/plain; charset=ISO-8859-1<BR><BR>The terms Parametric and Non-parametric Image registration are used in<BR>many articles but what is the exact difference?<BR><BR>I know that optimizing a deformation field using eg. B-Splines is<BR>called parametric (the coefficients/parameters of the deformation<BR>vectors are optimized).<BR><BR>But what are equivalent examples of non-parametric methods?<BR><BR><BR>------------------------------<BR><BR>Message: 6<BR>Date: Tue, 2 Feb 2010 09:21:36 +0100<BR>From: "Lodron, Gerald" <Gerald.Lodron@joanneum.at><BR>Subject: Re: [Insight-users] Parametric vs. Non-parametric image<BR> registration?<BR>To: motes motes <mort.motes@gmail.com><BR>Cc: "insight-users@itk.org" <insight-users@itk.org><BR>Message-ID:<BR> <E70FE8EA6EBE9241BDB4CA6D8D12E1D8777D1CF352@RZJC1EX.jr1.local><BR>Content-Type: text/plain; charset="iso-8859-1"<BR><BR><BR><BR>Parametric means that you can model the transformation via a formula which is only dependend on a few parameters, e.g.<BR><BR>f(x,y) = (x',y') = (x,y) + (tx, ty) <BR><BR>Here the parameters of that "translation transform" are tx and ty.<BR><BR><BR>Nonparametric means that the transformation cannot be represented by such an formular, you need an explicit deformation vector for EVERY pixel. That is for an 2D MxN image a MxNx2 deformation field. It should be clear that a parametric transaformation is much easier to invert and smaller to save. <BR><BR><BR><BR>-----Urspr?ngliche Nachricht-----<BR>Von: insight-users-bounces@itk.org [mailto:insight-users-bounces@itk.org] Im Auftrag von motes motes<BR>Gesendet: Dienstag, 02. Februar 2010 09:14<BR>An: Insight Users Mailing List<BR>Betreff: [Insight-users] Parametric vs. Non-parametric image registration?<BR><BR>The terms Parametric and Non-parametric Image registration are used in many articles but what is the exact difference?<BR><BR>I know that optimizing a deformation field using eg. B-Splines is called parametric (the coefficients/parameters of the deformation vectors are optimized).<BR><BR>But what are equivalent examples of non-parametric methods?<BR>_____________________________________<BR>Powered by www.kitware.com<BR><BR>Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<BR><BR>Kitware offers ITK Training Courses, for more information visit:<BR>http://www.kitware.com/products/protraining.html<BR><BR>Please keep messages on-topic and check the ITK FAQ at:<BR>http://www.itk.org/Wiki/ITK_FAQ<BR><BR>Follow this link to subscribe/unsubscribe:<BR>http://www.itk.org/mailman/listinfo/insight-users<BR><BR><BR>------------------------------<BR><BR>_______________________________________________<BR>Insight-users mailing list<BR>Insight-users@itk.org<BR>http://www.itk.org/mailman/listinfo/insight-users<BR><BR><BR>End of Insight-users Digest, Vol 70, Issue 5<BR>********************************************<BR></TD>
<TD width=170> </TD></TR></TBODY></TABLE></div></div>