Skip to content

About the coordinates in the las files #18

@YamasakiRuna

Description

@YamasakiRuna

Hi, DBnet team!
In the las2fmap.py(line 30-33)
def lasReader(filename): """ Read xyz points from single las file :param filename: path of single point cloud """ f = File(filename, mode='r') x_max, x_min = np.max(f.x), np.min(f.x) y_max, y_min = np.max(f.y), np.min(f.y) z_max, z_min = np.max(f.z), np.min(f.z) return np.transpose(np.asarray([f.x, f.y, f.z])), \ [(x_min, x_max), (y_min, y_max), (z_min, z_max)], f.header
you use the "x y z" of the las file as the coordinate information.
But in the pointnet input script provide.py (line 142-143)
infile = laspy.file.File(self.X_train2[i]) data = np.vstack([infile.X, infile.Y, infile.Z]).transpose()
you use the "X Y Z" of the las file as the coordinate information.

Could you tell me the different between "x y z" & "X Y Z" because the number of them are not the same ("x y z"<200 and "X Y Z" are around 10^9)

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions