From c12f245a407f673b300179f49586015fc117d088 Mon Sep 17 00:00:00 2001 From: Peter Abeles Date: Fri, 6 Sep 2024 13:32:08 -0700 Subject: [PATCH] MultiViewIO - Fixed backwards compatibility issue - Unintended consequence of homogenous -> homogeneous fix --- main/boofcv-io/src/main/java/boofcv/io/geo/MultiViewIO.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/boofcv-io/src/main/java/boofcv/io/geo/MultiViewIO.java b/main/boofcv-io/src/main/java/boofcv/io/geo/MultiViewIO.java index f63883fc59..273d01263d 100644 --- a/main/boofcv-io/src/main/java/boofcv/io/geo/MultiViewIO.java +++ b/main/boofcv-io/src/main/java/boofcv/io/geo/MultiViewIO.java @@ -252,7 +252,7 @@ public static void save( SceneStructureMetric scene, Writer outputWriter ) { data.put("rigids", rigids); data.put("cameras", cameras); data.put("points", points); - data.put("homogeneous", scene.isHomogeneous()); + data.put("homogenous", scene.isHomogeneous()); // deliberate type-o for backwards compatibility data.put("data_type", "SceneStructureMetric"); data.put("version", 0); @@ -464,7 +464,7 @@ public static SceneStructureMetric load( Reader reader, @Nullable SceneStructure Map data = yaml.load(reader); try { reader.close(); - boolean homogeneous = getOrThrow(data, "homogeneous"); + boolean homogeneous = getOrThrow(data, "homogenous"); // type-o for backwards compatibility List> yamlViews = getOrThrow(data, "views"); List> yamlMotions = getOrThrow(data, "motions");