dilation code does not work

조회 수: 10 (최근 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 CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by