<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.3790.1830" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>After going in depth in both alternatives I've had 
to back off and use the component tree instead of the one implemented in the 
issue 203.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The reason is that it is not trivial to obtain a 
LabelObjet-based image (LabelMap or collection) from the output of the Attribute 
Opening Filter. That filter outputs an itk::image with flatzones of different 
levels which is hard to label.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>However the component tree allows me to create a 
Binary or Label itk::Image which I can easily convert into a LabelMap and work 
with the LabelObjects.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I do the following</FONT></DIV>
<DIV><FONT face=Arial size=2><FONT size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT 
size=2>      myimagetoopen  -->  ImageToMaximumTreeFilter  
---> componentTree (sets full connectivity)</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT size=2>      
componentTree   --> <FONT size=2>SizeComponentTreeFilter  
---> componentTree ??? I'm not sure about what this 
does...</FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2>      
componentTree   --> AttributeFilteringComponentTreeFilter --> 
filteredTree (lambda = area in pixels)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>**Which is the attribute type and filtering type I 
need to use for an area opening???</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>      
filteredTree         --> <FONT 
size=2>ComponentTreeLeavesToBinaryImageFilter  --> binaryImage 
</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>This image contains only the connected components 
with an area bigget than Lambda and then I obtain a collection of 
LabelObjects.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Does it sound correct?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>David</FONT></DIV>
<DIV><FONT face=Arial size=2><FONT 
size=2> </DIV></FONT></FONT></BODY></HTML>