what does the L-shaped bracket mean?
조회 수: 29 (최근 30일)
이전 댓글 표시

N1 = N2 = 4
xi = ith pixel of 4 x 4 block

What does the 'L - shaped bracket' mean? How to write code for alpha and beta?
채택된 답변
Image Analyst
2019년 2월 16일
편집: Image Analyst
2019년 2월 17일
Just consider them as regular, normal brackets, or ignore them entirely.
xBar = mean(x(:));
alpha = mean(x(x >= xBar)); % Mean of x where x >= xBar
beta = mean(x(x < xBar)); % Mean of x where x < xBar
댓글 수: 3
Image Analyst
2019년 2월 17일
t is the number of elements in the block, which is 16 for a 4x4 block, or the number of pixels in the image if you're doing it over the whole image. Like I said, since it's only 4x4 I think it's a sliding window and you'd just use the code I gave you in the other answer and not even use t.
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!