We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 052ad03 commit f83aeaeCopy full SHA for f83aeae
6DoFPoseAnnotator.py
@@ -69,10 +69,10 @@ def Cloud2Image( self, cloud_in ):
69
cloud_mapped.points = o3.Vector3dVector(cloud_np)
70
cloud_mapped.transform(self.camera_intrinsic4x4)
71
cloud_color1 = np.asarray(cloud_in.colors)
72
- cloud_color = cloud_color1[cloud_np1[:,2].argsort()[::-1],:]
73
74
""" If cloud_in has the field of color, color is mapped into the image. """
75
- if len(cloud_color) == len(cloud_np):
+ if len(cloud_color1) == len(cloud_np):
+ cloud_color = cloud_color1[cloud_np1[:,2].argsort()[::-1],:]
76
img = cv2.merge((img,img,img))
77
for i, pix in enumerate(cloud_mapped.points):
78
if pix[0]<self.width and 0<pix[0] and pix[1]<self.height and 0<pix[1]:
0 commit comments