<html>
<body>
<font size=3>Hi Gaetan,<br><br>
Thanks for your reply. I missed the LabelStatisticsImageFilter. It does
indeed exactly what I want!<br><br>
I do not fully understand your first remark. Do you mean that using a
spatial object as a mask is not<br>
as efficient as using a label image? Or do you mean that filters
shouldn't support masks in general, because it makes them slow, and, that
actually you even would like to remove mask support for the
ConnectedComponentImageFilter?<br><br>
Regards,<br>
Stefan.<br><br>
<br><br>
<blockquote type=cite class=cite cite>IMHO, the mask support should not
be added to this class - the experience <br>
show that it is much difficult to implement more efficient algorithm
with <br>
that feature, like for the ConnectedComponentImageFilter. Why not
use <br>
LabelStatisticsImageFilter to do that job ?<br><br>
Gaetan<br><br>
<br><br>
-- <br>
Gaëtan Lehmann<br>
Biologie du Développement et de la Reproduction<br>
INRA de Jouy-en-Josas (France)<br>
tel: +33 1 34 65 29 66 fax: 01 34 65 29 09<br>
<a href="http://voxel.jouy.inra.fr/" eudora="autourl">http://voxel.jouy.inra.fr</a></font></blockquote></body>
<br>
</html>