|
16 | 16 | # - ImageInfos& getAncestors() |
17 | 17 | # - Poses& getPoses() => DONE |
18 | 18 | # - Rigs& getRigs() => DONE |
19 | | -# - Intrinsics& getIntrinsics() => DONE / Intrinsics derived classes not fully binded |
| 19 | +# - Intrinsics& getIntrinsics() => DONE |
20 | 20 | # - Landmarks& getLandmarks() => DONE |
21 | 21 | # - Constraints2D& getConstraints2D() => DONE |
22 | 22 | # - RotationPriors& getRotationPriors() => DONE |
@@ -102,12 +102,11 @@ def test_sfmdata_get_intrinsics(): |
102 | 102 | assert len(intrinsics) == 0, \ |
103 | 103 | "The SfMData object is empty, there should not be any Intrinsic in it" |
104 | 104 |
|
105 | | - # TODO: Add Intrinsic object to the list once derived classes are fully binded |
106 | | - # Create an Intrinsic object and add it to the list |
107 | | - # intrinsic = av.IntrinsicBase() |
108 | | - # intrinsics[INTRINSIC_ID] = intrinsic |
109 | | - # assert len(data.getIntrinsics()) == len(intrinsics) == 1, \ |
110 | | - # "The list of Intrinsics should have been updated" |
| 105 | + #Create an Intrinsic object and add it to the list |
| 106 | + intrinsic = av.Pinhole() |
| 107 | + intrinsics[INTRINSIC_ID] = intrinsic |
| 108 | + assert len(data.getIntrinsics()) == len(intrinsics) == 1, \ |
| 109 | + "The list of Intrinsics should have been updated" |
111 | 110 |
|
112 | 111 |
|
113 | 112 | def test_sfmdata_get_landmarks(): |
|
0 commit comments