[Insight-users] problem with ParallelSparseFieldLevelSetImageFilter

Kun kun_ch at 163.com
Tue Jul 29 10:15:24 EDT 2008


 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

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20080729/b6bbf055/attachment.htm>


More information about the Insight-users mailing list