ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ChamferDistanceTransform.cpp File Reference
#include "ChamferDistanceTransform.h"
#include <algorithm>
#include <cassert>
#include <cstring>
Include dependency graph for ChamferDistanceTransform.cpp:

Go to the source code of this file.

Variables

const signed char ForwardNeighbours345 [14 *4]
 Forward mask shifts and weights (Chamfer 3-4-5) More...
 
const signed char BackwardNeighbours345 [14 *4]
 Backward mask shifts and weights (Chamfer 3-4-5) More...
 
const signed char ForwardNeighbours111 [14 *4]
 Forward mask shifts and weights (Chamfer 1-1-1) More...
 
const signed char BackwardNeighbours111 [14 *4]
 Backward masks shifts and weights (Chamfer 1-1-1) More...
 

Variable Documentation

◆ BackwardNeighbours111

const signed char BackwardNeighbours111[14 *4]
Initial value:
= {
0, 0, 0, 0, 1, 0, 0, 1, -1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0,
1, -1, -1, 1, 1, 0, -1, 1, 1, 1, -1, 1, 1, -1, 0, 1, 1, 0, 0,
1, 1, 1, 0, 1, 1, -1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1}

Backward masks shifts and weights (Chamfer 1-1-1)

Definition at line 36 of file ChamferDistanceTransform.cpp.

Referenced by cloudViewer::ChamferDistanceTransform::propagateDistance().

◆ BackwardNeighbours345

const signed char BackwardNeighbours345[14 *4]
Initial value:
= {
0, 0, 0, 0, 1, 0, 0, 3, -1, 1, 0, 4, 0, 1, 0, 3, 1, 1, 0,
4, -1, -1, 1, 5, 0, -1, 1, 4, 1, -1, 1, 5, -1, 0, 1, 4, 0, 0,
1, 3, 1, 0, 1, 4, -1, 1, 1, 5, 0, 1, 1, 4, 1, 1, 1, 5}

Backward mask shifts and weights (Chamfer 3-4-5)

Definition at line 24 of file ChamferDistanceTransform.cpp.

Referenced by cloudViewer::ChamferDistanceTransform::propagateDistance().

◆ ForwardNeighbours111

const signed char ForwardNeighbours111[14 *4]
Initial value:
= {
-1, -1, -1, 1, 0, -1, -1, 1, 1, -1, -1, 1, -1, 0, -1, 1, 0, 0, -1,
1, 1, 0, -1, 1, -1, 1, -1, 1, 0, 1, -1, 1, 1, 1, -1, 1, -1, -1,
0, 1, 0, -1, 0, 1, 1, -1, 0, 1, -1, 0, 0, 1, 0, 0, 0, 0}

Forward mask shifts and weights (Chamfer 1-1-1)

Definition at line 30 of file ChamferDistanceTransform.cpp.

Referenced by cloudViewer::ChamferDistanceTransform::propagateDistance().

◆ ForwardNeighbours345

const signed char ForwardNeighbours345[14 *4]
Initial value:
= {
-1, -1, -1, 5, 0, -1, -1, 4, 1, -1, -1, 5, -1, 0, -1, 4, 0, 0, -1,
3, 1, 0, -1, 4, -1, 1, -1, 5, 0, 1, -1, 4, 1, 1, -1, 5, -1, -1,
0, 4, 0, -1, 0, 3, 1, -1, 0, 4, -1, 0, 0, 3, 0, 0, 0, 0}

Forward mask shifts and weights (Chamfer 3-4-5)

Definition at line 18 of file ChamferDistanceTransform.cpp.

Referenced by cloudViewer::ChamferDistanceTransform::propagateDistance().