[Insight-users] Problem relate with deformablemesh3Dfilter.
Luis Ibanez
luis.ibanez@kitware.com
Thu, 19 Sep 2002 11:31:34 -0400
Hi Samuel,
Could you please post the full piece of code
that you are using for your example ?
If the problem is an illegal access to memory,
it could be related with the initialization of the
filters you are using.
You may also want to put the Update() call
in a try/catch block in case there are exceptions
trown. Something like
try
{
m_DeformableMesh3DFilter->Update( );
}
catch( itk::ExceptionObject & except )
{
std::cout << except << std::endl;
}
Are you doing this on windows or unix ?
Thanks
Luis
================================
Samuel Rodríguez Bescos wrote:
> Hi everybody,
>
>
>
> I'm implementing an example that uses the itkDeformableMesh3DFilter.
> I'm using the filter itkBinaryMask3DMeshSource as its input. And as
> the gradient image the output of the filter itkGradientImageFilter of
> the initial image.
>
> The problem is than when I run the program , there is an error
> of access violation in the line:
>
>
>
> m_DeformableMesh3DFilter->Update( );
>
>
>
> I thought that the problem is related with the BinaryMeshSource and I
> tried to visualizate its output but I couldn't. I think that the
> problem is in the parameters of it.
>
>
>
> I use as input of the BinaryMeshSource a binary Image with 1 at the
> pixels of the object and 0 at the background and I set the Object
> Value to 1.
>
>
>
> Could anybody the poblem?. I don't know if the parameters and the
> inputs are right or I have forgotten something.
>
>
>
> Thanks in advance,
>
>
>
> Samuel
>