diff --git a/main/boofcv-geo/src/main/java/boofcv/abst/geo/bundle/SceneStructureMetric.java b/main/boofcv-geo/src/main/java/boofcv/abst/geo/bundle/SceneStructureMetric.java index 04f43f22c6..08831cf266 100644 --- a/main/boofcv-geo/src/main/java/boofcv/abst/geo/bundle/SceneStructureMetric.java +++ b/main/boofcv-geo/src/main/java/boofcv/abst/geo/bundle/SceneStructureMetric.java @@ -567,6 +567,10 @@ public void init( int numPoints, int dof ) { for (int i = 0; i < numPoints; i++) { points[i] = new Point(dof); } + } else { + for (int i = 0; i < numPoints; i++) { + points[i].reset(); + } } }