<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi,<div><br></div><div>&nbsp;&nbsp; I am trying for the moment to just use the&nbsp;<span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; ">itk::ConnectedThresholdImageFilter, to compute Roi on MRI. After getting the Seed point's location, and defining a region where to search for the max gray value of that region, i use an&nbsp;</span><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; ">&nbsp;itk::ImageRegionConstIterator to go through the pixels from the region. Unfortunatly i get, except from some cases (although these seem pretty random), the message "Program received signal:EXC_BAD_ACCESS".&nbsp;</span></div><div><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; ">If i just put a value without performing the search it gives the same error when i try to compute the volume of the Roi that
 i found.</span></div><div><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; ">Any help would be welcomed.&nbsp;</span></div><div><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; ">Another thing that i don't get is why when i get this type of error i also get a lot of warnings like</span></div><div><span class="Apple-style-span" style="font-family: Menlo; font-size: 11px; "><p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo">warning: Could not find object file "/Users/antoinerosset/osirix/osirix/Binaries/libPapyrusToolkit.a(PapyFiles3.o)" - no debug information available for "/Users/antoinerosset/pixmeo/osirixmd/PapyrusToolkit/PapyFiles3.c".</p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo; min-height: 13.0px"><br></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo">warning: Could not find object file "/Users/antoinerosset/osirix/osirix/Binaries/libPapyrusToolkit.a(PapyJpeg8.o)" - no debug information available for "/Users/antoinerosset/pixmeo/osirixmd/PapyrusToolkit/PapyJpeg8.c".</p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo; min-height: 13.0px"><br></p>
<p style="margin: 0.0px 0.0px 0.0px 28.0px; text-indent: -28.0px; font: 11.0px Menlo">warning: Could not find object file "/Users/antoinerosset/osirix/osirix/Binaries/libPapyrusToolkit.a(PapyEallocUnix3.o)" - no debug information available for "/Users/antoinerosset/pixmeo/osirixmd/PapyrusToolkit/PapyEallocUnix3.c".</p><div>and so on. I don't understand the connection, because the plugin stopps at</div><div><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #06830e"><span style="color: #000000">&nbsp;&nbsp;</span>/** Get a const reference to the pixel. */</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #6f41a8"><span style="color: #000000">&nbsp; </span><span style="color: #b830a1">inline</span><span style="color: #000000"> </span><span style="color: #b830a1">const</span><span style="color: #000000"> </span>ExternalPixelType<span style="color: #000000"> Get( </span><span style="color: #b830a1">const</span><span style="color: #000000"> </span>InternalPixelType<span style="color: #000000"> &amp; </span>input<span style="color: #000000"> ) </span><span style="color: #b830a1">const</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo">&nbsp; &nbsp; {</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #6f41a8"><span style="color: #000000">&nbsp; &nbsp; </span><span style="color: #b830a1">return</span><span style="color: #000000"> </span>m_PixelAccessor<span style="color: #000000">.</span><span style="color: #3d2380">Get</span><span style="color: #000000">( </span>input<span style="color: #000000"> );</span></p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo">&nbsp; &nbsp; }</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; min-height: 13.0px">&nbsp;&nbsp;from itkDefaultPixelAccessorFunctor.h</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; min-height: 13.0px">Thanks,</p><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; min-height: 13.0px">Ella</p></div><div><br></div></span></div></td></tr></table><br>