Przeglądaj źródła

Rename method

customisations
alemart 10 miesięcy temu
rodzic
commit
ba0801f90d
2 zmienionych plików z 4 dodań i 4 usunięć
  1. 3
    3
      src/geometry/camera-model.ts
  2. 1
    1
      src/geometry/pose-filter.ts

+ 3
- 3
src/geometry/camera-model.ts Wyświetl plik

@@ -169,7 +169,7 @@ export class CameraModel
169 169
         // estimate the pose
170 170
         const pose = this._estimatePose(homography);
171 171
         if(this._filter.feed(pose))
172
-            this._extrinsics = this._filter.run().read();
172
+            this._extrinsics = this._filter.output().read();
173 173
 
174 174
         // compute the camera matrix
175 175
         const C = this.denormalizer();
@@ -182,7 +182,7 @@ export class CameraModel
182 182
     }
183 183
 
184 184
     /**
185
-     * Reset camera model
185
+     * Reset the camera model
186 186
      */
187 187
     reset(): void
188 188
     {
@@ -321,7 +321,7 @@ export class CameraModel
321 321
      */
322 322
     private _resetIntrinsics(): void
323 323
     {
324
-        const cameraWidth = Math.max(this._screenSize.width, this._screenSize.height); // portrait?
324
+        const cameraWidth = Math.max(this._screenSize.width, this._screenSize.height); // portrait or landscape?
325 325
 
326 326
         const u0 = this._screenSize.width / 2;
327 327
         const v0 = this._screenSize.height / 2;

+ 1
- 1
src/geometry/pose-filter.ts Wyświetl plik

@@ -133,7 +133,7 @@ export class PoseFilter
133 133
      * Run the filter
134 134
      * @returns a 3x4 [ R | t ] matrix
135 135
      */
136
-    run(): SpeedyMatrix
136
+    output(): SpeedyMatrix
137 137
     {
138 138
         // how many samples should we use, at most?
139 139
         const div = (Settings.powerPreference == 'low-power') ? 1.5 : 1; // low-power ~ half the fps

Ładowanie…
Anuluj
Zapisz