fastgac.GaussianAccumulatorKD

class fastgac.GaussianAccumulatorKD

A Fast Gaussian Accumulator. Works on Full Sphere using KD Trees

__init__(self: fastgac_pybind.GaussianAccumulatorKD, level: int = 1, max_phi: float = 180.0, max_leaf_size: int = 10) → None

Will intergrate the normals into the S2 Historgram

clear_count(self: fastgac_pybind.GaussianAccumulatorUI32) → None

Clears all the histogram counts for each cell. Useful to call after peak detection to ‘reset’ the mesh.

copy_ico_mesh(self: fastgac_pybind.GaussianAccumulatorUI32, mesh_order: bool = False) → fastgac_pybind.IcoMesh

Creates a copy of the ico mesh.

get_bucket_normals(self: fastgac_pybind.GaussianAccumulatorUI32, mesh_order: bool = False) → fastgac_pybind.MatX3d

Gets the surface normals of the buckets in the histogram.The order by default is sorted by the space filling curve value attached to each cell.

get_bucket_projection(self: fastgac_pybind.GaussianAccumulatorUI32) → fastgac_pybind.MatX2d

Only useful for GaussianAccumulatorOpt. Return the XY projection of each bucket.

get_bucket_sfc_values(self: fastgac_pybind.GaussianAccumulatorUI32) → List[int]

Get the space filling curve values of each bucket. Will be sorted low to high.

get_normalized_bucket_counts(self: fastgac_pybind.GaussianAccumulatorUI32, mesh_order: bool = False) → fastgac_pybind.VectorDouble

Get the normalized bucket counts in the histogram.The order by default is sorted by the space filling curve value attached to each cell.

get_normalized_bucket_counts_by_vertex(self: fastgac_pybind.GaussianAccumulatorUI32, mesh_order: bool = False) → fastgac_pybind.VectorDouble

Average the normalized buckets counts (triangles) into the vertices of the mesh.The order by default is sorted by the space filling curve value attached to each cell.

integrate(self: fastgac_pybind.GaussianAccumulatorKD, normals: fastgac_pybind.MatX3d, eps: float = 0.0) → fastgac_pybind.VectorULongInt

Will intergrate the unit normals into the S2 Historgram

property buckets

The buckets in the histogram, corresponding to cells/triangles on the mesh

property mask

A mask which indicates which triangles in the mesh are included in the buckets. By default its every one (mask = ones). This was added because I thought a user might want to limit the histogram to only include triangles a max_phi from the north pole.

property mesh

The underlying sphere-like mesh of the Gaussian Accumulator

property num_buckets

The number of buckets in histogram, size(buckets)

property projected_bbox

Only a valid member for GaussianAccumulatorOpt, ignore for everthing else