[Insight-users] RE: [Insight-developers] Filter Update Woes

Lorensen, William E (Research) lorensen at crd.ge.com
Sat Jun 4 10:51:50 EDT 2005


I don't see where the InteriorExteriorMeshFilter is allocating its output in GenerateDta. I think this is a requirement for non-threaded filters. Try putting a:
outputMesh->Allocate();
after the SetBufferedRegion.

Bill

-----Original Message-----
From: insight-developers-bounces+lorensen=crd.ge.com at itk.org
[mailto:insight-developers-bounces+lorensen=crd.ge.com at itk.org]On Behalf
Of Karthik Krishnan
Sent: Friday, June 03, 2005 8:14 PM
To: ITK; Insight-developers (E-mail)
Subject: [Insight-developers] Filter Update Woes


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


More information about the Insight-users mailing list