(image, level=3)
| 18 | |
| 19 | |
| 20 | def 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 | |
| 32 | src = cv.imread("./test.png") |