T-pyramid of an Image-2
T-pyramid of an Image-2
VIDEO
ANALYTICS
laborator
y
1.T-PYRAMID OF AN
IMAGE
Definition:
mage Pyramids are one of the most beautiful
concept of image processing.Normally, we work
with images with default resolution but many
times we need to change the resolution (lower it)
or resize the original image in that case image
pyramids comes handy. The pyrUp() function
increases the size to double of its original size
and pyrDown() function decreases the size to
half. If we keep the original image as a base
image and go on applying pyrDown function on
it and keep the images in a vertical stack, it will
look like a pyramid. The same is true for
upscaling the original image by pyrUp function.
Types:
img = cv2.imread("images/input.jpg")
layer = img.copy()
for i in range(4):
plt.subplot(2, 2, i + 1)
plt.imshow(layer)
cv2.imshow("str(i)", layer)
cv2.waitKey(0)
cv2.destroyAllWindows()
OUTPUT:
2.QUADTREE
REPRESENTATION
DERFINITION: