필터 지우기
필터 지우기

can u explain the logic of this program in detail

조회 수: 1 (최근 30일)
ASHA
ASHA 2014년 1월 22일
편집: Walter Roberson 2014년 4월 11일
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);

답변 (0개)

카테고리

Help CenterFile Exchange에서 Manual Performance Optimization에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by