<DIV>I thought the document of some classes is too simple to give user a clear idea of these classes. It is one reason we miss something which are already implemented. For example, from the document, I have no idea about PolylineMask2DImageFilter for what kind of input it expect and what kind of output we will receive. It will be sad that the contributor spend lot of time to develop a class, but people ignore it only because of insufficient information. So for the contributors, please do not forget to take a little more time to give more detail of stuff you implemented. Your work is greatly appreciated.</DIV> <DIV> </DIV> <DIV>Sean <BR><BR><BR><B><I>Zachary Pincus <zpincus@stanford.edu></I></B> wrote:</DIV> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">> 1) The Bresenham line iterator is already in ITK.<BR>> It was contributed by Benjamin King on June
2005<BR>><BR>> http://www.itk.org/Insight/Doxygen/html/ <BR>> classitk_1_1LineConstIterator.html<BR>> http://www.itk.org/Insight/Doxygen/html/classitk_1_1LineIterator.html<BR><BR>Hmm, now that I think of it, what's needed here is something more <BR>like the PathIterator (since Paths can use continuous indices, but <BR>the LineIterator only takes normal itk::Index points for the line ends).<BR><BR>Fortunately, it seems that a PathIterator is available.<BR><BR>> 2) This iterator is used by the PolylineMask2DImageFilter<BR>> in order to rasterize Polylines into 2D binary mask images.<BR>><BR>> http://www.itk.org/Insight/Doxygen/html/ <BR>> classitk_1_1PolylineMask2DImageFilter.html<BR><BR>Great -- I don't know how I missed this.<BR><BR>> 4) What we seem to be missing from your list of desired<BR>> functionalities is a filter for taking a 2D image mask and<BR>> extracting the contours in the form of a PolyLineParametricPath.<BR>><BR>> However,
such filter can easily be written by modifying the<BR>> SimpleContourExtractorImageFilter<BR>><BR>> http://www.itk.org/Insight/Doxygen/html/ <BR>> classitk_1_1SimpleContourExtractorImageFilter.html<BR><BR>I'm not fully convinced this will be easy - the tricky part would be <BR>reconstructing properly-connected poly-line(s) from the individual <BR>segments generated from a modified contour extractor filter. (Such <BR>modifications, I think, would basically make it into a "marching <BR>squares"<BR>filter -- which really isn't hard to implement.) But I suspect there <BR>will be a not-too-hard way to connect the points properly.<BR><BR>How is point-connection done in the (harder) case of marching cubes? <BR>Just keeping a list of all the "open" edge points in a mesh to <BR>connect to?<BR><BR>One other issue is that PolyLines can't capture planar objects with <BR>'holes' -- you would get extract two PolyLines from a 'donut' shape. <BR>This really isn't an issue for me since
my shapes don't have holes, <BR>but if I were to make a general contours-to-geometry filter for ITK <BR>(which I would like to do, if I'm making one for myself!) would this <BR>issue need to be addressed?<BR><BR>Zach<BR>_______________________________________________<BR>Insight-users mailing list<BR>Insight-users@itk.org<BR>http://www.itk.org/mailman/listinfo/insight-users<BR></BLOCKQUOTE> <DIV><BR></DIV><p>
        
                <hr size=1>Yahoo! Shopping<br>
Find Great Deals on Gifts at <a href="http://shopping.yahoo.com/;_ylc=X3oDMTE2bzVzaHJtBF9TAzk1OTQ5NjM2BHNlYwNtYWlsdGFnBHNsawNob2xpZGF5LTA1
">Yahoo! Shopping</a>