test: cover non-rigid camera poses
Browse files
tests/test_validate_capture_manifest.py
CHANGED
|
@@ -53,3 +53,13 @@ def test_capture_manifest_rejects_malformed_homogeneous_matrices(tmp_path):
|
|
| 53 |
assert valid is False
|
| 54 |
assert any("intrinsics bottom row" in error for error in errors)
|
| 55 |
assert any("extrinsics bottom row" in error for error in errors)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
assert valid is False
|
| 54 |
assert any("intrinsics bottom row" in error for error in errors)
|
| 55 |
assert any("extrinsics bottom row" in error for error in errors)
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
def test_capture_manifest_rejects_invertible_non_rigid_pose(tmp_path):
|
| 59 |
+
bad = _record("a", "train")
|
| 60 |
+
bad["extrinsics"][0][0] = 2
|
| 61 |
+
manifest = tmp_path / "capture.json"
|
| 62 |
+
manifest.write_text(json.dumps({"project": "Simam3D", "views": [bad, _record("b", "held_out")]}), encoding="utf-8")
|
| 63 |
+
valid, errors = validate_capture_manifest(manifest)
|
| 64 |
+
assert valid is False
|
| 65 |
+
assert any("proper rigid rotation" in error for error in errors)
|