Skip to content

Commit

Permalink
MultiViewIO
Browse files Browse the repository at this point in the history
- Fixed backwards compatibility issue
- Unintended consequence of homogenous -> homogeneous fix
  • Loading branch information
lessthanoptimal committed Sep 6, 2024
1 parent b40475f commit c12f245
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/boofcv-io/src/main/java/boofcv/io/geo/MultiViewIO.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -464,7 +464,7 @@ public static SceneStructureMetric load( Reader reader, @Nullable SceneStructure
Map<String, Object> data = yaml.load(reader);
try {
reader.close();
boolean homogeneous = getOrThrow(data, "homogeneous");
boolean homogeneous = getOrThrow(data, "homogenous"); // type-o for backwards compatibility

List<Map<String, Object>> yamlViews = getOrThrow(data, "views");
List<Map<String, Object>> yamlMotions = getOrThrow(data, "motions");
Expand Down

0 comments on commit c12f245

Please sign in to comment.