<div>&nbsp;Hi, Kuca,<br><br>Thank you for your suggestion. But the same thing still happens if increase the number of layers to&nbsp; 4, even to 10.<br><br>I think that may not be the problem.<br><br>Thanks very much.<br><br>Kun<br>
<br>
<div class="gmail_quote">On Tue, Jul 29, 2008 at 2:51 AM, Luca Antiga <span dir="ltr">&lt;luca.antiga@gmail.com&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Kun,<br>
&nbsp;just out of curiosity, what happens of you increase the number of layers to 4?<br>
Thanks<br>
<br>
Luca<div><div class="Wj3C7c"><br>
<br>
<br>
On Jul 28, 2008, at 9:47 PM, Kun wrote:<br>
<br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div class="Wj3C7c">
&nbsp;Hi,all<br>
<br>
 &nbsp; &nbsp;I try to use ParallelSparseFieldLevelSetIma<wbr>geFilter to create a Sparse Level Set, and use the "<wbr>ThresholdSegmentationLevelSetF<wbr>unction"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:<br>
<br>
Unhandled exception at 0x0042d7f1 in *.exe: 0xC0000005: Access violation reading location 0xfdfdfdfd.<br>
<br>
it seems there is something wrong at the memory access.<br>
<br>
&nbsp;the &nbsp;code is mainly like follows:<br>
<br>
 &nbsp; &nbsp;m_LevelSetFunction &nbsp; &nbsp;= &nbsp; &nbsp; ThresholdFunctionType::New();<br>
 &nbsp; &nbsp;m_LevelSetFunction &nbsp; &nbsp;-&gt; &nbsp; &nbsp;SetUpperThreshold(150);<br>
 &nbsp; &nbsp;m_LevelSetFunction &nbsp; &nbsp;-&gt; &nbsp; &nbsp;SetLowerThreshold(100);<br>
 &nbsp; &nbsp;m_LevelSetFunction &nbsp; &nbsp;-&gt; &nbsp; &nbsp;SetFeatureImage(SourceImage);<br>
<br>
 &nbsp; &nbsp;parallelfilter &nbsp; &nbsp;= &nbsp; &nbsp; ParallelSparseFieldFilterType:<wbr>:New();<br>
 &nbsp; &nbsp;parallelfilter &nbsp; &nbsp;-&gt; &nbsp; &nbsp;SetInput(InitImage);<br>
 &nbsp; &nbsp;parallelfilter &nbsp; &nbsp;-&gt; &nbsp; &nbsp;SetNumberOfLayers(3);<br>
 &nbsp; &nbsp;parallelfilter &nbsp; &nbsp;-&gt; &nbsp; &nbsp;SetIsoSurfaceValue(0.0);<br>
 &nbsp; &nbsp;parallelfilter &nbsp; &nbsp;-&gt; &nbsp; &nbsp;SetDifferenceFunction(m_<wbr>LevelSetFunction);<br>
 &nbsp; &nbsp;parallelfilter &nbsp; &nbsp;-&gt; &nbsp; &nbsp;Update();<br>
<br>
&nbsp;Could any one help me ?<br>
<br>
&nbsp;Thanks very much.<br>
<br>
&nbsp;Kun<br></wbr></wbr></wbr></wbr></wbr></div></div>
______________________________<wbr>_________________<br>
Insight-users mailing list<br>
<a href="mailto:Insight-users@itk.org" target="_blank">Insight-users@itk.org</a><br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/<wbr>listinfo/insight-users</wbr></a><br>
</wbr></blockquote>
<br>
______________________________<wbr>_________________<br>
Insight-users mailing list<br>
<a href="mailto:Insight-users@itk.org" target="_blank">Insight-users@itk.org</a><br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/<wbr>listinfo/insight-users</wbr></a><br>
</wbr></blockquote></div>
<div>&nbsp;</div></div>