matlab - Subplot with decomposed morphological structuring element -


i using matlab 2014b, function strel behaves in different way respect newer versions[1]. in case, generating disk shaped structuring element approximation of 8 (in reality 10) linear structuring elements.

i visualize these linear structuring elements, example in subplot. unfortunately, after these years using matlab, still have many problems understanding how obtain want plot. in case able visualize them "comparable" scale, 1 can notice differences in size , orientation. (note: using imcomplement black lines on white background, instead of opposite, printing reasons.)

the minimal code this:

se = strel('disk', 300, 8); seq = getsequence(se);  k = 1:length(seq)     subplot(5,2,k);     imshow(imcomplement(seq(k).getnhood));     axis equal end 

as can see, results in suboptimal subplot:

so summarize, question is: is possible obtain visualization (either subplot, or 10 different plots) where strels have same scale, , visible enough reader can idea of how decomposition works?


[1] in matlab 2014b obtain neighborhood of structuirng element have use method getnhood, while in newer versions have access field neighborhood.


Comments

Popular posts from this blog

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -