MCPcopy Create free account
hub / github.com/JimmyHHua/opencv_tutorials / get_block_sum

Function get_block_sum

python/code_028/opencv_028.py:5–11  ·  view source on GitHub ↗
(ii, x1, y1, x2, y2, index)

Source from the content-addressed store, hash-verified

3
4
5def get_block_sum(ii, x1, y1, x2, y2, index):
6 tl = ii[y1, x1][index]
7 tr = ii[y2, x1][index]
8 bl = ii[y1, x2][index]
9 br = ii[y2, x2][index]
10 s = (br - bl - tr + tl)
11 return s
12
13
14def blur_demo(image, ii):

Callers 1

blur_demoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected