[Insight-users] Structuring Element

Luis Ibanez luis.ibanez at kitware.com
Tue Jan 11 11:32:43 EST 2005


Hi Neha,


The radius of the BallStructuring element can actually be set
to different values in X and Y (... and any other dimension
if you are using images of dimension larger than 2).



Please read the Doxygen documentation for this class:

http://www.itk.org/Insight/Doxygen/html/classitk_1_1BinaryBallStructuringElement.html



> A BinaryBallStructuringElement has an N-dimensional radius. The
> radius is defined separately for each dimension as the number of
> pixels that the neighborhood extends outward from the center pixel.
> For example, a 2D BinaryBallStructuringElement object with a radius
> of 2x3 has sides of length 5x7.


The code will look like:



       BinaryBallStructuringElementType::RadiusType   radius;

       radius[0] = 1;
       radius[1] = 2;

       ball->SetRadius( radius );

       // for a structuring element of size 3x5





Regards,


    Luis



-------------------
neha k wrote:

> Hello All,
>  
> I am looking for structuring element in ITK that has rectnagular 
> structuring element, since I need to have separate radius for X and Y.  
> The default one in ITK is BallStructuringElement which applies 
> same value in X and Y.  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?
> 
> thanks
> neha








More information about the Insight-users mailing list