dilation code does not work

5 visualizaciones (últimos 30 días)
aslan memo
aslan memo el 8 de Nov. de 2019
Comentada: Image Analyst el 25 de Dic. de 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 comentarios
aslan memo
aslan memo el 25 de Dic. de 2019
thankyu @rik @kalyan im solved
Image Analyst
Image Analyst el 25 de Dic. de 2019
Why not simply use imdilate()?

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by