Borrar filtros
Borrar filtros

can u explain the logic of this program in detail

1 visualización (últimos 30 días)
ASHA
ASHA el 22 de En. de 2014
Editada: Walter Roberson el 11 de Abr. de 2014
function f = alphatrim(g,m,n,d)
% implements a alpha-trimmed mean filter.
inclass = class(g);
g = im2double(g);
f = ordfilt2(g,1,ones(m,n),'symmetric');
for k = 1:d/2
f = imsubstract(f,ordfilt2(g,k,ones(m,n),'symmetric'));
end
for k = (m*n + (d/2) + 1):m*n
f = imsubstract(f,ordfilt2(g,k,ones(m,n),'symmetric'));
end
f = f/(m*n - d);
f = changeclass(inclass,f);

Respuestas (0)

Categorías

Más información sobre Manual Performance Optimization en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by