[Insight-users] problem with 1D Neighborhood operator

Jakub Bican jakub.bican at matfyz.cz
Tue Mar 28 06:57:12 EST 2006


Hi all,
i encountered a possible bug in itk::Neighborhood class. I tried to 
create 1D operator to filter my 1D itk::Image with 
itk::NeighborhoodOperatorImageFilter.

OperatorType operator;
operator.SetDirection(0);
... //set other operator params like variance for GaussianOperator
operator.CreateDirectional();
filter->SetOperator(operator);

During the execution of the last line, program crashes due to "Access 
violation writing location..." in itk::Neighborhood::operator=().

If I set dimension to 2D, this does not happen.

I am developing under VS.NET.

Thanks,
    Jakub


More information about the Insight-users mailing list