|
@@ -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;
|