dilation code does not work

5 ビュー (過去 30 日間)
aslan memo
aslan memo 2019 年 11 月 8 日
コメント済み: Image Analyst 2019 年 12 月 25 日
%dilation code
close all;
clear all;
clc;
A=imread( 'fingerprint.tif' );
%Structuring element
b = [0 1 0; 1 1 1; 0 1 0];
C=padarray(A,[0 3]);
D=false(size(A));
for i=1:size(C,1)
for j=1:size(C,2)-6
D(i,j)=sum(B&C(i,j:j+6));
end
end
figure(1),imshow(D);title('dilation');
  9 件のコメント
aslan memo
aslan memo 2019 年 12 月 25 日
thankyu @rik @kalyan im solved
Image Analyst
Image Analyst 2019 年 12 月 25 日
Why not simply use imdilate()?

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeMATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by