<DIV>Hello All,</DIV>
<DIV>&nbsp;</DIV>
<DIV>I am looking for structuring element in ITK that has rectnagular structuring element, since I need to have separate radius for X and Y.&nbsp; The default one in ITK is BallStructuringElement which applies same&nbsp;value in X and Y.&nbsp;&nbsp;how can i get structuring element with different values for x and y? do i have to define such element or there is one already avilable in itk?<BR><BR>thanks<BR>neha<BR><B><I>Luis Ibanez &lt;luis.ibanez@kitware.com&gt;</I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"><BR>Hi Neha,<BR><BR>The purpose of the speed image is to make the level set<BR>slow down close to the edges of anatomical structures,<BR>and to make it go faster on the internal regions.<BR><BR>Therefore you want the speed image to have low<BR>(dark) values on the pixels close to edges of<BR>anatomical structures and to have high (bright)<BR>values in the middle.<BR><BR>This is explained in detail on the LevelSets chapter<BR>of the ITK Software Guide.<BR><BR>http://www.itk.org/ItkSoftwareGuide.pdf<BR><BR><BR><BR>If you use the Gradient magnitude directly as<BR>a speed image, you will get the opposite effect.<BR>You will make the level set to move fast across<BR>edges, and to slow down inside the structures.<BR><BR>That's the reason why you need to revert the<BR>intensities of the Gradient Magnitude image.<BR><BR><BR><BR>Note that you don't have to use the Sigmoid.<BR>Any other filter
 that reverts the image intensities<BR>will work here.<BR><BR>A filter that is commonly used in the LevelSet<BR>literature is the negative exponential<BR><BR>http://www.itk.org/Insight/Doxygen/html/classitk_1_1ExpNegativeImageFilter.html<BR><BR>You can also use the EdgePotential image filter.<BR><BR>http://www.itk.org/Insight/Doxygen/html/classitk_1_1EdgePotentialImageFilter.html<BR><BR><BR><BR>Note that the choice of the filter is critical, since<BR>the speed image (or feature image) is the most important<BR>information used for controlling the evolution of the<BR>LevelSet. The segmentations that you obtain from LevelSets<BR>are as good or as bad as your feature image.<BR><BR><BR><BR>Regards,<BR><BR><BR>Luis<BR><BR><BR><BR><BR>-------------------<BR>neha k wrote:<BR><BR>&gt; Hello,<BR>&gt; <BR>&gt; For Shape Detection Level Set Filter and other Level Set filters, speed <BR>&gt; image is obtained from Gradient Magnitude. Then the speed is calculated <BR>&gt; from Speed Image which is
 obtained from Sigmoid filter. How is speed <BR>&gt; calculated from it? It looks like output of sigmoid is obtained by <BR>&gt; inverting gradient magnitude ouput. Is it possible to use gradient <BR>&gt; magnitude output as a speed image? I am not clear on real advantages and <BR>&gt; purpose of using sigmoid filter. Any input of this is appreciated.<BR>&gt; <BR>&gt; Thanks,<BR>&gt; <BR>&gt; Neha<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; <BR><BR><BR><BR></BLOCKQUOTE><p>
                <hr size=1>Do you Yahoo!?<br> 
<a href="http://us.rd.yahoo.com/mail_us/taglines/security/*http://promotions.yahoo.com/new_mail/static/protection.html">Yahoo! Mail</a> - You care about security. So do we.