>>se3 = strel(‘square‘,3)
Neighborhood:
1 1 1
1 1 1
1 1 1
>> se3 = strel(‘line‘,3 , 45)
Neighborhood:
0 0 1
0 1 0
1 0 0
>> se3 = strel(‘line‘,3 , 90)
Neighborhood:
1
1
1
>> nm=[3 5]
>> se3 = strel(‘rectangle‘,nm)
Neighborhood:
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
imdilate | imerode
matlab strel
时间: 2024-10-08 15:38:27