matlab strel

>>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

posted @ 2014-08-22 11:17  ahuo  阅读(696)  评论(0编辑  收藏  举报