[Insight-users] problem with ParallelSparseFieldLevelSetImageFilter

Luca Antiga luca.antiga at gmail.com
Tue Jul 29 03:51:37 EDT 2008


Hi Kun,
  just out of curiosity, what happens of you increase the number of  
layers to 4?
Thanks

Luca


On Jul 28, 2008, at 9:47 PM, Kun wrote:

>  Hi,all
>
>     I try to use ParallelSparseFieldLevelSetImageFilter to create a  
> Sparse Level Set, and use the  
> "ThresholdSegmentationLevelSetFunction"as the level set function.  
> It is OK when I build the solution, but it is failed when I debug  
> the code. It always shows:
>
> Unhandled exception at 0x0042d7f1 in *.exe: 0xC0000005: Access  
> violation reading location 0xfdfdfdfd.
>
> it seems there is something wrong at the memory access.
>
>  the  code is mainly like follows:
>
>     m_LevelSetFunction    =     ThresholdFunctionType::New();
>     m_LevelSetFunction    ->    SetUpperThreshold(150);
>     m_LevelSetFunction    ->    SetLowerThreshold(100);
>     m_LevelSetFunction    ->    SetFeatureImage(SourceImage);
>
>     parallelfilter    =     ParallelSparseFieldFilterType::New();
>     parallelfilter    ->    SetInput(InitImage);
>     parallelfilter    ->    SetNumberOfLayers(3);
>     parallelfilter    ->    SetIsoSurfaceValue(0.0);
>     parallelfilter    ->    SetDifferenceFunction(m_LevelSetFunction);
>     parallelfilter    ->    Update();
>
>  Could any one help me ?
>
>  Thanks very much.
>
>  Kun
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users



More information about the Insight-users mailing list