MeshLib C Docs
Loading...
Searching...
No Matches
MRPointCloudDistance.h File Reference
#include <MRCMisc/exports.h>

Go to the source code of this file.

Typedefs

typedef struct MR_AffineXf3f MR_AffineXf3f
 
typedef struct MR_PointCloud MR_PointCloud
 

Functions

MRC_API float MR_findMaxDistanceSqOneWay_MR_PointCloud (const MR_PointCloud *a, const MR_PointCloud *b, const MR_AffineXf3f *rigidB2A, const float *maxDistanceSq)
 returns the maximum of the squared distances from each B-point to A-cloud
 
MRC_API float MR_findMaxDistanceSq_MR_PointCloud (const MR_PointCloud *a, const MR_PointCloud *b, const MR_AffineXf3f *rigidB2A, const float *maxDistanceSq)
 returns the squared Hausdorff distance between two point clouds, that is the maximum of squared distances from each point to the other cloud (in both directions)
 

Typedef Documentation

◆ MR_AffineXf3f

typedef struct MR_AffineXf3f MR_AffineXf3f

◆ MR_PointCloud

typedef struct MR_PointCloud MR_PointCloud

Function Documentation

◆ MR_findMaxDistanceSq_MR_PointCloud()

MRC_API float MR_findMaxDistanceSq_MR_PointCloud ( const MR_PointCloud * a,
const MR_PointCloud * b,
const MR_AffineXf3f * rigidB2A,
const float * maxDistanceSq )

returns the squared Hausdorff distance between two point clouds, that is the maximum of squared distances from each point to the other cloud (in both directions)

Parameters
rigidB2Arigid transformation from B-cloud space to A-cloud space, nullptr considered as identity transformation
maxDistanceSqupper limit on the positive distance in question, if the real distance is larger than the function exists returning maxDistanceSq Generated from function MR::findMaxDistanceSq. Parameter a can not be null. It is a single object. Parameter b can not be null. It is a single object. Parameter rigidB2A defaults to a null pointer in C++. Parameter maxDistanceSq has a default argument: 3.40282347E+38F, pass a null pointer to use it.

◆ MR_findMaxDistanceSqOneWay_MR_PointCloud()

MRC_API float MR_findMaxDistanceSqOneWay_MR_PointCloud ( const MR_PointCloud * a,
const MR_PointCloud * b,
const MR_AffineXf3f * rigidB2A,
const float * maxDistanceSq )

returns the maximum of the squared distances from each B-point to A-cloud

Parameters
rigidB2Arigid transformation from B-cloud space to A-cloud space, nullptr considered as identity transformation
maxDistanceSqupper limit on the positive distance in question, if the real distance is larger than the function exists returning maxDistanceSq Generated from function MR::findMaxDistanceSqOneWay. Parameter a can not be null. It is a single object. Parameter b can not be null. It is a single object. Parameter rigidB2A defaults to a null pointer in C++. Parameter maxDistanceSq has a default argument: 3.40282347E+38F, pass a null pointer to use it.