Skip to content

Commit 68172e8

Browse files
committed
STYLE: Remove Initialize() calls on new point sets RegisterTwoPointSets
When a point set is just created by `New()`, it is already properly initialized. - Follow-up to pull request InsightSoftwareConsortium/ITK#4976 commit InsightSoftwareConsortium/ITK@bc044c1 "STYLE: Remove p->Initialize() call after p = T::New() in example"
1 parent a63e366 commit 68172e8

File tree

3 files changed

+0
-8
lines changed

3 files changed

+0
-8
lines changed

src/Registration/Metricsv4/RegisterTwoPointSets/Code.cxx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,7 @@ main(int argc, char * argv[])
8282
using PointType = PointSetType::PointType;
8383

8484
auto fixedPoints = PointSetType::New();
85-
fixedPoints->Initialize();
86-
8785
auto movingPoints = PointSetType::New();
88-
movingPoints->Initialize();
89-
9086

9187
// two ellipses, one rotated slightly
9288
/*

src/Registration/Metricsv4/RegisterTwoPointSets/Code.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ def make_circles(l_dimension: int = 2):
3535

3636
fixed_points = PointSetType.New()
3737
moving_points = PointSetType.New()
38-
fixed_points.Initialize()
39-
moving_points.Initialize()
4038

4139
step = 0.1
4240
for count in range(0, int(2 * pi / step) + 1):

src/Registration/Metricsv4/RegisterTwoPointSets/RegisterTwoPointSets.ipynb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@
5454
"\n",
5555
" fixed_points = PointSetType.New()\n",
5656
" moving_points = PointSetType.New()\n",
57-
" fixed_points.Initialize()\n",
58-
" moving_points.Initialize()\n",
5957
"\n",
6058
" count = 0\n",
6159
" step = 0.1\n",

0 commit comments

Comments
 (0)