## what does the L-shaped bracket mean?

Elysi Cochin

### Elysi Cochin (view profile)

さんによって質問されました 2019 年 2 月 16 日

### Image Analyst (view profile)

さんによって コメントされました 2019 年 2 月 17 日
Image Analyst

### Image Analyst (view profile)

さんの 回答が採用されました
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?

KALYAN ACHARJYA

### KALYAN ACHARJYA (view profile)

2019 年 2 月 16 日
Is this Matlab ralated question?
Check here for different Maths Sysmbols

サインイン to comment.

## 2 件の回答

2019 年 2 月 16 日

### Image Analyst (view profile)

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

Image Analyst

### Image Analyst (view profile)

2019 年 2 月 17 日
Since N is 4 this appears to be a sliding window operation, like a convolution. So the whole thing can be done with conv2() like I showed you in your other question. Then just threshold to values above or below zero to get the thresholded images -- the alpha and beta images. There is no need to round down with floor to create the images.
Elysi Cochin

### Elysi Cochin (view profile)

2019 年 2 月 17 日
sir what about the variable t
Image Analyst

### Image Analyst (view profile)

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.

サインイン to comment.

2019 年 2 月 16 日

### Stephen Cobeldick (view profile)

2019 年 2 月 16 日

#### 0 件のコメント

サインイン to comment.

Translated by