[Insight-users] Filter Update Woes

Karthik Krishnan Karthik.Krishnan at kitware.com
Fri Jun 3 20:14:07 EDT 2005


Hi,

I am having a curious problem with updates. I've posted a minimal example.
The pipeline is as follows:

Image  -> CastImageFilter -> ImageToParametricSpaceFilter -> 
InteriorExteriorMeshFilter


In the example, I create a 3x3x3 image. The cast image filter really 
does nothing. It just spits the input as the output.  The 
ImageToParametricSpaceFilter takes the three images (each of them being 
the same input image).
This InteriorExteriorMeshFilter uses a SphereSpatialFunction, whose 
radius is so large that all points are inside.

The output is fine if Update is called once.
 as in m_SpatialFunctionFilter->Update();

If Update is called twice in succession as in
 as in m_SpatialFunctionFilter->Update(); m_SpatialFunctionFilter->Update();
the mesh point data gets garbled.        

If I remove the filter, everything works fine.

Any suggestions ?

Thank you
Regards
Karthik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test2.cxx
Type: text/x-c++src
Size: 4538 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/insight-users/attachments/20050603/2e5641ad/test2.cxx


More information about the Insight-users mailing list