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

Function pyramid_up

python/code_037/opencv_037.py:12–21  ·  view source on GitHub ↗
(image, level=3)

Source from the content-addressed store, hash-verified

10
11
12def pyramid_up(image, level=3):
13 temp = image.copy()
14 # cv.imshow("input", image)
15 pyramid_images = []
16 for i in range(level):
17 dst = cv.pyrDown(temp)
18 pyramid_images.append(dst)
19 # cv.imshow("pyramid_up_" + str(i), dst)
20 temp = dst.copy()
21 return pyramid_images
22
23
24src = cv.imread("test.png")

Callers 1

opencv_037.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected