Thanks for providing code and data. I get a run-time error with your code and image. I used a try/catch block around the labelFilter update and received the below error:<div><br></div><div><div>itk::ERROR: ConnectedComponentImageFilter(0x1621360): Number of objects greater than maximum of output pixel type</div>

<div>ConnectedComponentImageFilter (0x1621360)</div><div><br></div><div>Relevant class information -   ObjectCount: 1682</div><div><br></div><div>There are more than 256 objects to label so it crashes. To resolve the error, change the output image type of labelFilter to an image of unsigned short pixels. </div>
<div><br></div><div><div class="gmail_quote">On Mon, Aug 15, 2011 at 11:32 AM, Ryan Smith <span dir="ltr">&lt;<a href="mailto:ryanleesmith@gmail.com" target="_blank">ryanleesmith@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All-<div><br></div><div>Please see the attached zip containing a CMakeLists file and barebones example program. I have a very simple application in which I tried to use the ConnectedComponentImageFilter.  I want to pick out the large white blob in the center of the image (in.tif).  The program compiles properly, but hangs when I try and update the ConnectedComponentImageFilter.   I&#39;m sure I am being dense here but failed to find my error.  Any thoughts? Thanks-</div>


<div><br></div><font color="#888888"><div>-Ryan</div>
</font><br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div></div>