<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div><span>Hi, Bradley:</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span>Sorry for asking again. Since I don't have the paper in hand. so I want to be more clear before I really started.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span>Below is what I am
 thinking</span></div><div style="background-color: transparent;"><span style="color: rgb(0, 0, 0); font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px; font-style: normal;">1,  using </span><span style="background-color: transparent;">FlatStructuringElement</span><span style="background-color: transparent; font-size: 12pt;">::Poly(RadiusType radius, unsigned lines), I just give the number of lines. Then this function will generate the decomposed lines.</span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 12pt; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;"><span style="background-color: transparent; font-size: 12pt;">2, which paper of Poly function used to generate lines to approximate sphere:</span></div><div><br></div><div style="background-color: transparent; font-size: 12pt;"><span
 style="background-color: transparent; font-size: 12pt;"></span></div><ul style="margin-top: 0px; margin-bottom: 20px; padding-left: 0px; list-style-type: none; border: 0px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 16.80000114440918px; vertical-align: baseline; color: rgb(60, 60, 60);"><li style="margin: 0px 0px 7px; padding: 0px 0px 0px 12px; border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; vertical-align: baseline; list-style-type: none; background-image: url(http://mathworks.com/images/nextgen/global/pic_global_bullet.gif); background-color: transparent; background-position: 0px 7px; background-repeat: no-repeat no-repeat;"> Rolf Adams, "Radial Decomposition of Discs and Spheres," <i style="margin: 0px; padding: 0px; border: 0px; font-family: inherit; font-size: inherit; font-variant: inherit; font-weight: inherit;
 line-height: inherit; vertical-align: baseline;">Computer Vision, Graphics, and Image Processing: Graphical Models and Image Processing</i>, vol. 55, no. 5, September 1993, pp. 325-332.</li><li style="margin: 0px 0px 7px; padding: 0px 0px 0px 12px; border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; vertical-align: baseline; list-style-type: none; background-image: url(http://mathworks.com/images/nextgen/global/pic_global_bullet.gif); background-color: transparent; background-position: 0px 7px; background-repeat: no-repeat no-repeat;">Ronald Jones and Pierre Soille, "Periodic lines: Definition, cascades, and application to granulometries," <i style="margin: 0px; padding: 0px; border: 0px; font-family: inherit; font-size: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; vertical-align: baseline;">Pattern Recognition Letters</i>, vol.
 17, 1996, 1057-1063.</li></ul><div style="color: rgb(60, 60, 60); font-size: inherit; font-family: inherit; background-color: transparent; font-style: italic;"><span style="color: rgb(0, 0, 0); font-style: normal;">3, then I set FlatStructureElement decompsalbe, line morphlogy will be handled by Anchor or VHGW.</span></div><div style="color: rgb(60, 60, 60); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: italic;"><span style="color: rgb(0, 0, 0); font-style: normal;"><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;">Anything wrong with my thinking, thanks a lot.</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial,
 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;">Baoyun</div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;"> <div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> On Wednesday, April 16, 2014 9:43 AM, Baoyun Li <baoyun_li123@yahoo.com> wrote:<br> </font> </div>  <div class="y_msg_container"><div id="yiv9657329884"><div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande',
 sans-serif; font-size: 12pt;"><div><span>Hi, Bradley:</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span>I had download the insight journal--</span><a rel="nofollow" shape="rect" target="_blank" href="http://hdl.handle.net/1926/308" style="background-color: rgb(255, 255, 255); text-decoration: none; color: rgb(55, 78, 158); font-size: 13px; font-weight: bold; font-family: arial, helvetica, sans-serif; line-height: 18px;">http://hdl.handle.net/1926/308</a>.</div><div style="background-color:transparent;">But still need help. If I look the <span
 style="background-color:transparent;">GrayscaleDilateImageFilter< TInputImage, TOutputImage, TKernel></span><span style="background-color:transparent;font-size:12pt;">::SetKernel( const KernelType& kernel ), it had several branches</span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 12pt; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;"><span style="background-color:transparent;font-size:12pt;">1, ANCHOR,</span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 12pt; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;"><span style="background-color:transparent;font-size:12pt;">2, histogram</span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 12pt; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida
 Grande', sans-serif; font-style: normal;"><span style="background-color:transparent;font-size:12pt;">3, basic.</span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 12pt; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;"><br></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;"><span style="background-color:transparent;font-size:12pt;">For radius decomposition, I think I need to define the list of lines by myself. Then I used either of above algorithm for line strucutre morphology. </span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 12pt; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;"><span
 style="background-color:transparent;font-size:12pt;">Can you confirm whether my thinking is correct? Also for given radius, how to define the list of lines? (Is there any sample code  in itk for how to give the list of line element given the radius, or </span><span style="font-size:12pt;"> </span><span style="font-size:12pt;">need to go through the either of the two papers,</span><span style="background-color:transparent;font-size:12pt;">).</span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 12pt; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;"><span style="background-color:transparent;font-size:12pt;"><br></span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;"><span
 style="background-color:transparent;font-size:12pt;">Thanks</span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 12pt; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;"><span style="background-color:transparent;font-size:12pt;"><br></span></div><div style="background-color: transparent; color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-style: normal;"><span style="background-color:transparent;font-size:12pt;">Baoyun</span></div><div class="yiv9657329884yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;"> <div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;"> <div dir="ltr"> <font size="2"
 face="Arial"> On Wednesday, April 16, 2014 9:29 AM, Bradley Lowekamp <blowekamp@mail.nih.gov> wrote:<br> </font> </div>  <div class="yiv9657329884y_msg_container"><div id="yiv9657329884"><div>Yes!<div><br clear="none"></div><div>This is available in for the Grayscale morphology filters in ITK with the FlatStructucturingElement. If you have a Binary image, with just two labels the Grayscale morphology can be used as binary morphology.</div><div><br clear="none"></div><div>These algorithm were contributed by the Insight Journal in "Consolidated Morphology", by Lehmann G., and Beare R: <a rel="nofollow" shape="rect" target="_blank" href="http://hdl.handle.net/1926/308" style="font-weight: bold; text-decoration: none; color: rgb(55, 78, 158); font-family: arial, helvetica, sans-serif; font-size: 13px; line-height: 18px;">http://hdl.handle.net/1926/308</a></div><span style="font-family: arial, helvetica, sans-serif; font-size: 13px; line-height:
 18px; background-color: rgb(255, 250, 236);"></span><div><br clear="none"></div><div>Hope that gives you enough to get started.</div><div>Brad</div><div class="yiv9657329884yqt9213795359" id="yiv9657329884yqt39892"><div><br clear="none"><div><div>On Apr 16, 2014, at 9:57 AM, Baoyun Li <<a rel="nofollow" shape="rect" ymailto="mailto:baoyun_li123@yahoo.com" target="_blank" href="mailto:baoyun_li123@yahoo.com">baoyun_li123@yahoo.com</a>> wrote:</div><br clear="none" class="yiv9657329884Apple-interchange-newline"><blockquote type="cite">

</blockquote></div></div></div></div><div class="yiv9657329884yqt9213795359" id="yiv9657329884yqt91914"><div><div><div style="background-color: rgb(255, 255, 255); font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;"><div>Dear All:</div><div>Can somebody tell me whether Itk morophology had implemented either of below two papers? If so, can you please tell me at which class and which file?</div><div><br clear="none"></div><div style="font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;">thanks</div><div style="font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><br clear="none"></div><div style="font-size:16px;font-family:HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida
 Grande', sans-serif;background-color:transparent;font-style:normal;">Baoyun</div><ul style="margin-top: 0px; margin-bottom: 20px; padding-left: 0px; border: 0px; font-family: Arial, Helvetica, sans-serif; font-size: 12px; line-height: 16.80000114440918px; vertical-align: baseline; list-style-type: none; color: rgb(60, 60, 60);"><li style="margin: 0px 0px 7px; padding: 0px 0px 0px 12px; border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; vertical-align: baseline; list-style-type: none; background-image: url(http://mathworks.com/images/nextgen/global/pic_global_bullet.gif); background-color: transparent; background-position: 0px 7px; background-repeat: no-repeat no-repeat;"> Rolf Adams, "Radial Decomposition of Discs and Spheres," <i style="margin: 0px; padding: 0px; border: 0px; font-family: inherit; font-size: inherit; font-variant: inherit; font-weight:
 inherit; line-height: inherit; vertical-align: baseline;">Computer Vision, Graphics, and Image Processing: Graphical Models and Image Processing</i>, vol. 55, no. 5, September 1993, pp. 325-332.</li><li style="margin: 0px 0px 7px; padding: 0px 0px 0px 12px; border: 0px; font-family: inherit; font-size: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; vertical-align: baseline; list-style-type: none; background-image: url(http://mathworks.com/images/nextgen/global/pic_global_bullet.gif); background-color: transparent; background-position: 0px 7px; background-repeat: no-repeat no-repeat;">Ronald Jones and Pierre Soille, "Periodic lines: Definition, cascades, and application to granulometries," <i style="margin: 0px; padding: 0px; border: 0px; font-family: inherit; font-size: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; vertical-align: baseline;">Pattern
 Recognition Letters</i>, vol. 17, 1996, 1057-1063.</li></ul><div style="font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><br clear="none"></div></div></div>_____________________________________<br clear="none">Powered by <a rel="nofollow" shape="rect" target="_blank" href="http://www.kitware.com/">www.kitware.com</a><br clear="none"><br clear="none">Visit other Kitware open-source projects at<br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br clear="none"><br clear="none">Kitware offers ITK Training Courses, for more information visit:<br clear="none">http://www.kitware.com/products/protraining.php<br clear="none"><br clear="none">Please keep messages on-topic and check the ITK FAQ at:<br
 clear="none">http://www.itk.org/Wiki/ITK_FAQ<br clear="none"><br clear="none">Follow this link to subscribe/unsubscribe:<br clear="none">http://www.itk.org/mailman/listinfo/insight-users<br clear="none"><br clear="none"></div></div></div><br><br></div>  </div> </div>  </div> </div></div></div><br><br></div>  </div> </div>  </div> </div></body></html>