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

Function pyramid_up

python/code_038/opencv_038.py:20–29  ·  view source on GitHub ↗
(image, level=3)

Source from the content-addressed store, hash-verified

18
19
20def pyramid_up(image, level=3):
21 temp = image.copy()
22 # cv.imshow("input", image)
23 pyramid_images = []
24 for i in range(level):
25 dst = cv.pyrDown(temp)
26 pyramid_images.append(dst)
27 # cv.imshow("pyramid_up_" + str(i), dst)
28 temp = dst.copy()
29 return pyramid_images
30
31
32src = cv.imread("./test.png")

Callers 1

opencv_038.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected