ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
cloudViewer::DgmOctree::NearestNeighboursSearchStruct Struct Reference

Container of in/out parameters for nearest neighbour(s) search. More...

#include <DgmOctree.h>

Inheritance diagram for cloudViewer::DgmOctree::NearestNeighboursSearchStruct:
Collaboration diagram for cloudViewer::DgmOctree::NearestNeighboursSearchStruct:

Public Member Functions

 NearestNeighboursSearchStruct ()
 Default constructor. More...
 

Public Attributes

CCVector3 queryPoint
 Query point. More...
 
unsigned char level
 Level of subdivision of the octree at which to start the search. More...
 
unsigned minNumberOfNeighbors
 Minimal number of neighbours to find. More...
 
Tuple3i cellPos
 Position in the octree of the cell including the query point. More...
 
CCVector3 cellCenter
 Coordinates of the center of the cell including the query point. More...
 
double maxSearchSquareDistd
 Maximum neihgbours distance. More...
 
cellIndexesContainer minimalCellsSetToVisit
 
NeighboursSet pointsInNeighbourhood
 
int alreadyVisitedNeighbourhoodSize
 
unsigned theNearestPointIndex
 The nearest point. More...
 

Detailed Description

Container of in/out parameters for nearest neighbour(s) search.

This structure is generic and can be used in multiple cases. It is particularly useful when searching nearest neighbours around points that lie in the same octree cell. In this case, several informations about this cell should be given to the search algorithm through this structure, but only once,before the first search. Then the search algorithm can be called multiple times, and only few informations need to be updated (the query point, etc.).

Definition at line 161 of file DgmOctree.h.

Constructor & Destructor Documentation

◆ NearestNeighboursSearchStruct()

cloudViewer::DgmOctree::NearestNeighboursSearchStruct::NearestNeighboursSearchStruct ( )
inline

Default constructor.

Definition at line 236 of file DgmOctree.h.

Member Data Documentation

◆ alreadyVisitedNeighbourhoodSize

int cloudViewer::DgmOctree::NearestNeighboursSearchStruct::alreadyVisitedNeighbourhoodSize

◆ cellCenter

◆ cellPos

◆ level

◆ maxSearchSquareDistd

double cloudViewer::DgmOctree::NearestNeighboursSearchStruct::maxSearchSquareDistd

Maximum neihgbours distance.

The NN search process will stop if it reaches this radius even if it hasn't find any neighbour (acceleration). To disable this behavior, set the maxSearchSquareDistd to something <= 0).

Definition at line 196 of file DgmOctree.h.

Referenced by cloudViewer::DistanceComputationTools::computeCellHausdorffDistance(), cloudViewer::DistanceComputationTools::computeCellHausdorffDistanceWithLocalModel(), cloudViewer::DgmOctree::findNearestNeighborsStartingFromCell(), cloudViewer::DgmOctree::findPointNeighbourhood(), and cloudViewer::DgmOctree::findTheNearestNeighborStartingFromCell().

◆ minimalCellsSetToVisit

cellIndexesContainer cloudViewer::DgmOctree::NearestNeighboursSearchStruct::minimalCellsSetToVisit

List of indexes of the cells that have been already visited by the algorithm This field is updated by the search algorithm. It should only be emptied if the cell that includes the query points change. Only used by the "unique nearest point" search algorithm.

Definition at line 206 of file DgmOctree.h.

Referenced by cloudViewer::DistanceComputationTools::computeCellHausdorffDistanceWithLocalModel(), and cloudViewer::DgmOctree::findTheNearestNeighborStartingFromCell().

◆ minNumberOfNeighbors

unsigned cloudViewer::DgmOctree::NearestNeighboursSearchStruct::minNumberOfNeighbors

◆ pointsInNeighbourhood

◆ queryPoint

◆ theNearestPointIndex

unsigned cloudViewer::DgmOctree::NearestNeighboursSearchStruct::theNearestPointIndex

The documentation for this struct was generated from the following file: