필터 지우기
필터 지우기

how to find mean value of alternate pixels in diagonal direction

조회 수: 1 (최근 30일)
Sony
Sony 2012년 4월 26일
how to find mean value of alternate pixels in diagonal direction that is in 45 and 135 degree direction can anyone help me???

답변 (1개)

Sean de Wolski
Sean de Wolski 2012년 4월 26일
x = magic(5);
xd = diag(x);
mean(xd(1:2:end))

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by