Point Related Functions

In this section:

 

vxSmoothGauss()

vxFindCenter2D()

vxFindCenter3D()

vxIsInside2D()

vxIsInside3D()

 

 

DESCRIPTION

ViXL3D.DLL

ViXL3D.XLL

Gaussian Smoothing of Vector

Smooth input data using Gaussian method. Given a table of values InputData, return a vector of equal size that has had at least 1 iteration of Gaussian smoothing applied. Populates the vector SmoothedData of equal size to InputData.

ViXL_DLL_API int _vxSmoothGauss(

   const vector<double> &InputData,

   int _GaussRadius,

   int _Iterations,

   vector<double> &SmoothedData

);

 

Populates the vector SmoothedData of equal size to InputData.

vxSmoothGauss(const Matrix &_InputData,

              int _GaussRadius,

              int _Iterations

);

 

InputData = n rows x 1 column

GaussRadius = Filter radius, 1 - 8

Iterations = iterative passes, 1 - 8

 

Returns smoothed values, n rows x 1 column.

 

Find Center of 2D Point Cloud

Finds the center of a 2D bounding box. Given a random distribution of 2D points KnownPoints, enclose with a bounding box and interpolate the center point. Populates CenterXY with the X,Y center point of the bounding box.

ViXL_DLL_API int _vxFindCenter2D(

   const vector<C2DPoint> &KnownPoints,

   C2DPoint &CenterXY

);

 

Populates CenterXY with the X,Y center point of the bounding box, interpolated from KnownPoints.

 

vxFindCenter2D(const Matrix &_KnownPoints

);

 

KnownPoints = n rows x 2 columns

 

Returns X,Y center point of bounding box, as 1 row x 2 columns.

 

Find Center of 3D Point Cloud

Finds the center of a 3D bounding box. Given a random distribution of 3D points KnownPoints, enclose with a bounding box and interpolate the center point. Populates CenterXYZ with the X,Y,Z center point of the bounding box.

 

ViXL_DLL_API int _vxFindCenter3D(

   const vector<C3DPoint> &KnownPoints,

   C3DPoint &CenterXY

);

 

Populates CenterXYZ with the X,Y,Z center point of the bounding box, interpolated from KnownPoints.

 

vxFindCenter3D(const Matrix &_KnownPoints

);

 

KnownPoints = n rows x 3 columns

 

Returns X,Y,Z center point of bounding box, as 1 row x 3 columns.

 

Find if Point is Inside 2D Boundary

Determines if a set of desired 2D points TestPoints, are within a 2D boundary enclosing KnownPoints. Populates the vector IsInside, of j rows x 1 column equal in length to TestPoints, indicating 'true' if a given point is inside the boundary, or 'false' if outside.

ViXL_DLL_API int _vxIsInside2D(

   const vector<C2DPoint> &KnownPoints,

   const vector<C2DPoint> &TestPoints,

   vector<bool> &IsInside

);

 

Populates the vector IsInside, equal in length to TestPoints, indicating 'true' if a given point is inside the boundary, or 'false' if outside.

 

vxIsInside2D(const Matrix &_KnownPoints,

             const Matrix &_TestPoints

);

 

KnownPoints = n rows x 2 columns

TestPoints = j rows x 2 columns

 

Returns a vector of j rows x 1 column indicating 'true' if the desired point is inside the boundary, or 'false' if outside.

 

Find if Point is Inside 3D Boundary

Determines if a set of desired 3D points TestPoints, are within a 3D boundary enclosing KnownPoints. Populates the vector IsInside, of j rows x 1 column equal in length to TestPoints, indicating 'true' if a given point is inside the boundary, or 'false' if outside.

ViXL_DLL_API int _vxIsInside3D(

   const vector<C3DPoint> &KnownPoints,

   const vector<C3DPoint> &TestPoints,

   vector<bool> &IsInside

);

 

Populates the vector IsInside, equal in length to TestPoints, indicating 'true' if a given point is inside the boundary, or 'false' if outside.

 

vxIsInside3D(const Matrix &_KnownPoints,

             const Matrix &_TestPoints

);

 

KnownPoints = n rows x 3 columns

TestPoints = j rows x 3 columns

 

Returns a vector of j rows x 1 column indicating 'true' if the desired point is inside the boundary, or 'false' if outside.

 

 

 

Return to Function Reference

 

Return to Viewer Controls Overview