Skip to content

Commit 86fbee0

Browse files
committed
Minor edits on documentation.
1 parent 78b3d57 commit 86fbee0

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/DGtal/geometry/surfaces/DigitalSurfaceConvolver.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1414
*
1515
**/
16-
1716
#pragma once
1817

1918
/**
@@ -64,7 +63,7 @@ namespace DGtal
6463
/**
6564
* Description of class 'DigitalSurfaceConvolver' <p>
6665
*
67-
* Aim: Compute a convolution between a border on a nD-shape and a convolution kernel : (f*g)(t).
66+
* Aim: Compute a convolution between a point on the boundary of a nD-shape and a convolution kernel : (f*g)(t).
6867
* An optimization is available when you convolve your shape on adjacent cells using eval(itbegin, itend, output)
6968
*
7069
* @tparam TFunctor a model of a functor for the shape to convolve ( f(x) ).

src/DGtal/geometry/surfaces/DigitalSurfaceConvolver.ih

+7
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,13 @@ DGtal::DigitalSurfaceConvolver< Functor, KernelFunctor, KSpace, DigitalKernel, d
445445
( const Quantity * aMomentMatrix,
446446
CovarianceMatrix & aCovarianceMatrix ) const
447447
{
448+
/* Moment matrix:
449+
*
450+
* [ sum(1)
451+
* sum(y) sum (x)
452+
* sum(x*y) sum(y*y) sum(x*x)
453+
* ]
454+
*/
448455
MatrixQuantity A;
449456
double B;
450457
MatrixQuantity C;

0 commit comments

Comments
 (0)