<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
Thank you Vince!<br>I set "unsigned int" and now my code runs perfectly!<br><br>Regards,<br>Daniela<br><br><hr id="stopSpelling">Date: Mon, 13 Sep 2010 13:38:09 -0500<br>Subject: Re: [Insight-users] itkConnectedComponentImageFilter: Number of objects greater than maximum of output pixel type ???<br>From: vincent-magnotta@uiowa.edu<br>To: danysunflower@hotmail.it; insight-users@itk.org<br><br>

<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">
<title>Corpo del messaggio</title>


<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" &lt;<a href="http://danysunflower@hotmail.it" target="_blank">danysunflower@hotmail.it</a>&gt; 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>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
<hr size="3" width="95%" align="CENTER"></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" 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>
</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="http://vincent-magnotta@uiowa.edu" target="_blank">vincent-magnotta@uiowa.edu</a><br>
Phone: 319-356-8255 Fax: 319-353-6275<br>
Website: <a href="http://www.radiology.uiowa.edu" target="_blank">http://www.radiology.uiowa.edu</a><br>
<br>
<br>
</span></font>                                               </body>
</html>