(image, level=3)
| 10 | |
| 11 | |
| 12 | def 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 | |
| 24 | src = cv.imread("test.png") |