[Insight-users] problem with ParallelSparseFieldLevelSetImageFilter
Luca Antiga
luca.antiga at gmail.com
Tue Jul 29 11:59:02 EDT 2008
Dear Kun,
I'll try to reproduce the problem and get back to you.
Keep in touch
Luca
On Jul 29, 2008, at 4:15 PM, Kun wrote:
> Hi, Kuca,
>
> Thank you for your suggestion. But the same thing still happens if
> increase the number of layers to 4, even to 10.
>
> I think that may not be the problem.
>
> Thanks very much.
>
> Kun
>
> On Tue, Jul 29, 2008 at 2:51 AM, Luca Antiga
> <luca.antiga at gmail.com> wrote:
> 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
>
> _______________________________________________
> 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