fastgac.GaussianAccumulatorOpt

class fastgac.GaussianAccumulatorOpt

Construct a new GaussianAccumulatorOpt object. Do not use this class. It was my first design and only works well on the top hemisphere of a sphere. It uses a single projection (Azimuth Equal Area Projection) to project to a 2D plane. A hilbert curve is performed on the plane to greate the SFC on the sphere. This class is the reason that the GaussianAccumulator base class is such a mess because it began with the assumptions built into this class. Eventually this will be deprecated.

__init__(self: fastgac_pybind.GaussianAccumulatorOpt, level: int = 1, max_phi: float = 180.0) → None
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.GaussianAccumulatorOpt, normals: fastgac_pybind.MatX3d, num_nbr: int = 12) → fastgac_pybind.VectorULongInt

Will intergrate the normals into the S2 Historgram

property bucket_neighbors
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