dilation code does not work

12 Ansichten (letzte 30 Tage)
aslan memo
aslan memo am 8 Nov. 2019
Kommentiert: Image Analyst am 25 Dez. 2019
%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 Kommentare
aslan memo
aslan memo am 25 Dez. 2019
thankyu @rik @kalyan im solved
Image Analyst
Image Analyst am 25 Dez. 2019
Why not simply use imdilate()?

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by