[vtkusers] typedef itk::BinaryBallStructuringElement<InputPixelType, Dimension > StructuringElementType;

Andreas Keil andreas.keil at cs.tum.edu
Wed May 9 09:01:41 EDT 2007


Although this is a question related to ITK and should be posted on the
itk-users mailinglist, this code snippet for generating a 2D disk of
radius 1 (which is therefore 3 pixels wide and high) might help you:

------------------------------------------------------------------------
typedef itk::BinaryBallStructuringElement<MyImageType::PixelType, 2>
	DiskType;
DiskType disk;
DiskType::SizeType diskSize;
diskSize[0] = 1;
diskSize[1] = 1;
disk.SetRadius(diskSize);
disk.CreateStructuringElement();
SomeMorphologicalFilter::Pointer filter = SomeMorphologicalFilter::New();
filter->SetKernel(disk);
------------------------------------------------------------------------

Please continue on the ITK list if you have further questions.

Regards,
Andreas.
 

-----Original Message-----
From: vtkusers-bounces+andreas.keil=cs.tum.edu at vtk.org
[mailto:vtkusers-bounces+andreas.keil=cs.tum.edu at vtk.org] On Behalf Of
hela guerbej
Sent: Wednesday, May 09, 2007 12:43
To: vtkusers
Subject: [vtkusers] typedef
itk::BinaryBallStructuringElement<InputPixelType, Dimension >
StructuringElementType; 

hy all,
 if anyone has documentation on this subject or know how this
StructuringElementType is programmed , please help 
i would use this element but i must have same docs about
My regards


________________________________

Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions
! Profitez des connaissances, des opinions et des expériences des
internautes sur Yahoo! Questions/Réponses
<http://fr.rd.yahoo.com/evt=42054/*http://fr.answers.yahoo.com> .




More information about the vtkusers mailing list