<HTML>
<HEAD>
<TITLE>Re: [Insight-users] itkConnectedComponentImageFilter: Number of objects greater than maximum of output pixel type ???</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>The error message results from there being more labels than the output datatype can support. For example, if you are using unsigned char it is saying that there are more than 255 objects in the labeling. Try setting the output image type to unsigned short or a data type with a larger dynamic range (unsigned int).<BR>
<BR>
Vince<BR>
<BR>
<BR>
On 9/13/10 1:19 PM, "Daniela Sacchetto" <<a href="danysunflower@hotmail.it">danysunflower@hotmail.it</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT SIZE="2"><FONT FACE="Tahoma, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:10pt'>Hi everyone, <BR>
I'm using itkConnectedComponentImageFilter but I have a problem with my code: it runs very well with an example 3D image of 39 slices, but when I use it with my image (a 3D image of 97 slice) I have this error:<BR>
<BR>
itk::ERROR: ConnectedComponentImageFilter(0x99fd918): Number of objects greater than maximum of output pixel type <BR>
Aborted<BR>
<BR>
It seems that my image has to many objects...but, is it possible? Can't I use this filter with every size image?<BR>
<BR>
Regards<BR>
Daniela<BR>
<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"></SPAN></FONT><SPAN STYLE='font-size:10pt'><FONT FACE="Consolas, Courier New, Courier">_____________________________________<BR>
Powered by www.kitware.com<BR>
<BR>
Visit other Kitware open-source projects at<BR>
<a href="http://www.kitware.com/opensource/opensource.html">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">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">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">http://www.itk.org/mailman/listinfo/insight-users</a><BR>
</FONT></SPAN></FONT></BLOCKQUOTE><FONT SIZE="2"><SPAN STYLE='font-size:10pt'><FONT FACE="Consolas, Courier New, Courier"><BR>
</FONT></SPAN></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>----------------------<BR>
Associate Professor<BR>
Department of Radiology<BR>
0453-D JCP<BR>
200 Hawkins Drive<BR>
Iowa City, IA 52242<BR>
E-mail: <a href="vincent-magnotta@uiowa.edu">vincent-magnotta@uiowa.edu</a><BR>
Phone: 319-356-8255 Fax: 319-353-6275<BR>
Website: <a href="http://www.radiology.uiowa.edu">http://www.radiology.uiowa.edu</a><BR>
<BR>
<BR>
</SPAN></FONT>
</BODY>
</HTML>