Skip to main content

readPCDFileHeader

readPCDFileHeader(filename)

Read the header of any PCD file.

Parameters:

NameTypeDefaultDescription
filenamestringThe name of the file to load.

Returns:

NameType
headerPCDHeader

Type Definitions

PCDHeader

interface PCDHeader {
version: number;
fields: string[];
type: ('F' | 'I' | 'U')[];
count: number[];
size: number[];
offset: number[];
width: number;
height: number;
points: number;
viewpoint: string;
data: 'ascii' | 'binary' | 'binary_compressed';
}