MATLAB: How do i transform/convert a structuring element to an binary image in Matlab

binary imageImage Processing Toolboxstructuring element

How do i transform/convert a structuring element to an binary image in Matlab? For example, say i need to convert a square structuring element
se = strel('square',7)
Kindly help me in this matter, i really need a method. Thank you

Best Answer

>> se = strel('square',7);
>> nhood = getnhood(se);
>> whos('se' ,'nhood')
Name Size Bytes Class Attributes
nhood 7x7 49 logical
se 1x1 112 strel