[ITK] [ITK-users] itkSmoothingQuadEdgeMeshFilter Help!!

Mallikarjun K mallikarjun49 at gmail.com
Thu Jul 31 01:35:32 EDT 2014


Hi Bill,
Thanks for the replay.

Yes,I built both ITK and my app with Release ,I forgot to mention it in the
previous post.Actually the data set is the output of
vtkDiscreteMarchingCubes algorithm(around 5MB) and need to smooth .I saved
this marching cube's output as .vtk file and read it
using itkVTKPolyDataReader and then I am giving this reader's output to
itkSmoothingQuadEdgeMeshFilter's input.

I checked the execution time of each step in the pipeline ,after
SmothingQEMeshFilter has got it's input ,it is taking time to process the
data.

Thank you



On Wed, Jul 30, 2014 at 9:29 PM, Bill Lorensen <bill.lorensen at gmail.com>
wrote:

> First, make sure you are building ITK and your app with Release. A
> Debug build can be 10-50 times slower.
>
>
> On Wed, Jul 30, 2014 at 10:18 AM, Mallikarjun K <mallikarjun49 at gmail.com>
> wrote:
> > Hi All,
> > I am using itkSmoothingQuadEdgeMeshFilter for Surface Mesh smoothing.This
> > filter is giving good results what I expected but taking more execution
> > time.can any one suggest me to reduce the execution time( multi threading
> > or any parameters to add/remove )?
> >
> > Below is the code snippet
> > ///////
> > typedef itk::QuadEdgeMeshTraits<double, 3,double, double, double,double >
> > qetraits;
> > typedef itk::QuadEdgeMesh< vtkFloatingPointType, 3,qetraits > MeshType;
> >
> > //typedef itk::QuadEdgeMesh< vtkFloatingPointType, 3 > MeshType;
> >
> > itk::OnesMatrixCoefficients< MeshType > coeff0;
> >
> > typedef itk::SmoothingQuadEdgeMeshFilter< MeshType, MeshType >
> > SmoothingQuadEdgeMeshFilter;
> >
> >     SmoothingQuadEdgeMeshFilter::Pointer QEMeshSmoother =
> > SmoothingQuadEdgeMeshFilter::New();
> >
> > QEMeshSmoother->SetInput("abc.vtk");
> > QEMeshSmoother->SetNumberOfIterations(5 );
> > QEMeshSmoother->SetRelaxationFactor( 0.5 );
> > QEMeshSmoother->SetDelaunayConforming(true );
> > QEMeshSmoother->SetCoefficientsMethod( &coeff0 );
> > QEMeshSmoother->Update();
> > ////
> >
> > --
> > Regards:
> > Mallik
> >
> >
> > _____________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Kitware offers ITK Training Courses, for more information visit:
> > http://www.kitware.com/products/protraining.php
> >
> > Please keep messages on-topic and check the ITK FAQ at:
> > http://www.itk.org/Wiki/ITK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://public.kitware.com/mailman/listinfo/insight-users
> >
>
>
>
> --
> Unpaid intern in BillsBasement at noware dot com
>



-- 
*Regards:*
Mallik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20140731/3dd9cc6f/attachment-0002.html>
-------------- next part --------------
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list