필터 지우기
필터 지우기

Please,How can i programming this in matlab i meane texture masking thank you.Sorry about my English

조회 수: 1 (최근 30일)

채택된 답변

Image Analyst
Image Analyst 2015년 4월 15일
Yes, that is a bad question. It's ambiguous - it says that a sliding 3x3 window is used but then it also says a window that is (2*L+1) by (2*L+1) is used. That can't be unless L = exactly 1. It's contradictory for any other value of L. In general, assign your L, assign your kernel, then call conv2()
L = 1; % or any odd number.
windowWidth = 2 * L + 1;
kernel = ones(windowWidth)/windowWidth^2;
iBar = conv2(double(grayImage), kernel, 'same');
TM = abs(double(grayImage) - iBar);
imshow(TM, []);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by