Skip to content

Commit b86983b

Browse files
committed
Remove the *not so* generic constructor for cubic volumes.
1 parent 2ba990e commit b86983b

File tree

3 files changed

+1
-25
lines changed

3 files changed

+1
-25
lines changed

lib/ScaledGeometricMoments.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -87,17 +87,6 @@ class ScaledGeometricalMoments
8787
int _maxOrder = 1 /**< maximal order to compute moments for */
8888
);
8989

90-
/// Constructor for equal dimensions for each axis
91-
ScaledGeometricalMoments (
92-
const VoxelT* _voxels, /**< input voxel grid */
93-
int _dim, /**< the grid is _dim^3 */
94-
double _xCOG, /**< x-coord of the center of gravity */
95-
double _yCOG, /**< y-coord of the center of gravity */
96-
double _zCOG, /**< z-coord of the center of gravity */
97-
double _scale, /**< scaling factor */
98-
int _maxOrder = 1 /**< maximal order to compute moments for */
99-
);
100-
10190
/// Default constructor
10291
ScaledGeometricalMoments ();
10392

lib/ScaledGeometricalMoments.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,6 @@ ScaledGeometricalMoments<VoxelT,MomentT>::ScaledGeometricalMoments (
5353
Init (_voxels, _xDim, _yDim, _zDim, _xCOG, _yCOG, _zCOG, _scale, _maxOrder);
5454
}
5555

56-
57-
template<class VoxelT, class MomentT>
58-
ScaledGeometricalMoments<VoxelT,MomentT>::ScaledGeometricalMoments (
59-
const VoxelT* _voxels,
60-
int _dim,
61-
double _xCOG, double _yCOG, double _zCOG,
62-
double _scale,
63-
int _maxOrder)
64-
{
65-
Init (_voxels, _dim, _dim, _dim, _xCOG, _yCOG, _zCOG, _scale, _maxOrder);
66-
}
67-
68-
6956
template<class VoxelT, class MomentT>
7057
void ScaledGeometricalMoments<VoxelT,MomentT>::Init (
7158
const VoxelT* _voxels,

lib/ZernikeDescriptor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ void ZernikeDescriptor<T, TIn>::NormalizeGrid ()
117117
template<class T, class TIn>
118118
void ZernikeDescriptor<T, TIn>::ComputeNormalization ()
119119
{
120-
ScaledGeometricalMoments<T, T> gm (voxels_, dim_, 0.0, 0.0, 0.0, 1.0);
120+
ScaledGeometricalMoments<T, T> gm (voxels_, dim_, dim_, dim_, 0.0, 0.0, 0.0, 1.0);
121121

122122
// compute the geometrical transform for no translation and scaling, first
123123
// to get the 0'th and 1'st order properties of the function

0 commit comments

Comments
 (0)