pye57 icon indicating copy to clipboard operation
pye57 copied to clipboard

Read Directly into Numpy Array

Open oguzhanilter opened this issue 2 years ago • 1 comments

Hi,

Is it possible to read the specified fields ( cartesianX, cartesianY, colorRed) directly into numpy arrays without creating a dictionary?

The reason: when the data is converted to numpy arrays, it is copied. For large point clouds, it is an issue due to the fact that the memory usage is doubled at the peak.

Thank you in advance

oguzhanilter avatar Dec 24 '22 02:12 oguzhanilter

Is it possible to read the specified fields ( cartesianX, cartesianY, colorRed) directly into numpy arrays without creating a dictionary?

afaik np arrays are immutable, so appending to a np array always creates a copy. sadly.

but some kind of streaming or batching would really be needed. we have 150gb+ point clouds and have a hard time getting it from e57 into another format

Liquidmasl avatar Jun 12 '23 09:06 Liquidmasl