Skip to content

Commit f83aeae

Browse files
秋月秀一秋月秀一
authored andcommitted
bug fix sakizuki#1
1 parent 052ad03 commit f83aeae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

6DoFPoseAnnotator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ def Cloud2Image( self, cloud_in ):
6969
cloud_mapped.points = o3.Vector3dVector(cloud_np)
7070
cloud_mapped.transform(self.camera_intrinsic4x4)
7171
cloud_color1 = np.asarray(cloud_in.colors)
72-
cloud_color = cloud_color1[cloud_np1[:,2].argsort()[::-1],:]
7372

7473
""" If cloud_in has the field of color, color is mapped into the image. """
75-
if len(cloud_color) == len(cloud_np):
74+
if len(cloud_color1) == len(cloud_np):
75+
cloud_color = cloud_color1[cloud_np1[:,2].argsort()[::-1],:]
7676
img = cv2.merge((img,img,img))
7777
for i, pix in enumerate(cloud_mapped.points):
7878
if pix[0]<self.width and 0<pix[0] and pix[1]<self.height and 0<pix[1]:

0 commit comments

Comments
 (0)