You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am trying to store RGB point values in a every point of a large point cloud using the writer. I verified that the rgb values are in the point but when I read the point back the RGB values are zero. I tried both 8 and 16 bit rgb values and with the classification value at 2 as touched upon in issue #9 . What I do in the code to save rgb is the following. p.R, p.G, p.B are 8-bit RGB values in bytes respectively:
laszip_point point = new laszip_point(); point.rgb[0] = Convert.ToUInt16(p.R * 256); point.rgb[1] = Convert.ToUInt16(p.G * 256); point.rgb[2] = Convert.ToUInt16(p.B * 256); var err = m_LasWriter.laszip_set_point(point); err = m_LasWriter.laszip_write_point();
The text was updated successfully, but these errors were encountered:
I found the issue m_LasWriter.header.point_data_format needs to be set to 2 for rgb signals and 3 for rgb signals plus gps time data for the data to be saved.
Hi, I am trying to store RGB point values in a every point of a large point cloud using the writer. I verified that the rgb values are in the point but when I read the point back the RGB values are zero. I tried both 8 and 16 bit rgb values and with the classification value at 2 as touched upon in issue #9 . What I do in the code to save rgb is the following. p.R, p.G, p.B are 8-bit RGB values in bytes respectively:
laszip_point point = new laszip_point();
point.rgb[0] = Convert.ToUInt16(p.R * 256);
point.rgb[1] = Convert.ToUInt16(p.G * 256);
point.rgb[2] = Convert.ToUInt16(p.B * 256);
var err = m_LasWriter.laszip_set_point(point);
err = m_LasWriter.laszip_write_point();
The text was updated successfully, but these errors were encountered: