MCPcopy Create free account
hub / github.com/SAMMiCA/ChangeSim / getDepthImage

Method getDepthImage

script/utils/kinect_publisher.py:56–62  ·  view source on GitHub ↗
(self,response_d)

Source from the content-addressed store, hash-verified

54 # os.makedirs(os.path.join(self.dataset_path, data_type))
55
56 def getDepthImage(self,response_d):
57 img_depth = np.array(response_d.image_data_float, dtype=np.float32)
58 img_depth = img_depth.reshape(response_d.height, response_d.width)
59 if not self.img_height:
60 self.img_height = response_d.height
61 self.img_width = response_d.width
62 return img_depth
63
64 def getRGBImage(self,response_rgb):
65 img1d = np.fromstring(response_rgb.image_data_uint8, dtype=np.uint8)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected