Skip to content

Commit e15d6d4

Browse files
mys007Sirokujira
authored andcommitted
Fixed undesired casting of intensity to int. (strawlab#116)
As a result of review, there was no problem. Thank you for fixing. (same pcl\point_types.h PointXYZI define) Appveyor build errors, It is because the comment part has been deleted at merging. We will fix it as soon as possible.
1 parent 3e04e89 commit e15d6d4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pcl/pxi/PointCloud_PointXYZI.pxi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ cdef class PointCloud_PointXYZI:
155155
cdef cpp.PointXYZI *p
156156
for i in range(npts):
157157
p = idx.getptr(self.thisptr(), i)
158-
p.x, p.y, p.z, p.intensity = arr[i, 0], arr[i, 1], arr[i, 2], <unsigned long>arr[i, 3]
158+
p.x, p.y, p.z, p.intensity = arr[i, 0], arr[i, 1], arr[i, 2], arr[i, 3]
159159

160160
@cython.boundscheck(False)
161161
def to_array(self):

pcl/pxi/PointCloud_PointXYZI_172.pxi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ cdef class PointCloud_PointXYZI:
151151
cdef cpp.PointXYZI *p
152152
for i in range(npts):
153153
p = idx.getptr(self.thisptr(), i)
154-
p.x, p.y, p.z, p.intensity = arr[i, 0], arr[i, 1], arr[i, 2], <unsigned long>arr[i, 3]
154+
p.x, p.y, p.z, p.intensity = arr[i, 0], arr[i, 1], arr[i, 2], arr[i, 3]
155155

156156
@cython.boundscheck(False)
157157
def to_array(self):

pcl/pxi/PointCloud_PointXYZI_180.pxi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ cdef class PointCloud_PointXYZI:
151151
cdef cpp.PointXYZI *p
152152
for i in range(npts):
153153
p = idx.getptr(self.thisptr(), i)
154-
p.x, p.y, p.z, p.intensity = arr[i, 0], arr[i, 1], arr[i, 2], <unsigned long>arr[i, 3]
154+
p.x, p.y, p.z, p.intensity = arr[i, 0], arr[i, 1], arr[i, 2], arr[i, 3]
155155

156156
@cython.boundscheck(False)
157157
def to_array(self):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy