[ITK] [ITK-users] How to generate asymmetric line structuring element?

zagwin zagwin at gmail.com
Wed Jul 8 19:24:33 EDT 2015


Dear All,

I want to generate asymmetric line structuring elements for Dilate and Erode
operations.
An example is (1 1 1 0 0)^T

I did it as 
typedef itk::FlatStructuringElement       <2>                
FlatStructureType;
FlatStructureType element2;
FlatStructureType::RadiusType rad;
rad[0] = 0;
rad[1] = 2;
element2 = FlatStructureType::Box(rad);

Now I get a (1 1 1 1 1)^T, is it possible to set the last two item to false?

Or is there other method to generate what I want? thanks very much

Best
Weldon



--
View this message in context: http://itk-users.7.n7.nabble.com/How-to-generate-asymmetric-line-structuring-element-tp35881.html
Sent from the ITK - Users mailing list archive at Nabble.com.
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list