フィルターのクリア

how to merge neighbourhood of a pixel

2 ビュー (過去 30 日間)
Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran 2012 年 9 月 3 日
My previous question was how to find neighbourhood? my next question is how to merge those neighbourhood?

回答 (1 件)

Andrei Bobrov
Andrei Bobrov 2012 年 9 月 4 日
try this way (need have Image Processing Toolbox)
I = rand(10) > .9; % initial array
out = imdilate(I,ones(3));

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by