Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to resize a depth map from size [400,400] into size [60,60]?

I have a depth map image which was obtained using a kinect camera. In that image I have selected a region of size [400,400] and stored it as another image. Now, I would like to know how to resize this image into a size of [x,y] in python.

like image 861
Win Avatar asked Sep 06 '25 02:09

Win


1 Answers

Same as a normal image

import cv2
import matplotlib.pyplot as plt

image = cv2.imread(path_to_your_image) # Insert your image address here
resized = cv2.resize(image, (x, y),  interpolation = cv2.INTER_NEAREST) 

plt.imshow(resized)
plt.show()
like image 102
Abhi25t Avatar answered Sep 09 '25 18:09

Abhi25t