Skip to content

Commit

Permalink
Resoleved videoLuma array size to scan whole the camera frame for mar…
Browse files Browse the repository at this point in the history
…ker detection
  • Loading branch information
masoud shahrabi authored and kalwalt committed Nov 22, 2023
1 parent 3f19220 commit 2c6f07d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ARControllerNFT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ export class ARControllerNFT implements AbstractARControllerNFT {

this.framesize = this._width * this._height;

this.videoLuma = new Uint8Array(this.framesize / 4);
this.videoLuma = new Uint8Array(this.framesize);

this.camera_mat = this.artoolkitNFT.getCameraLens();

Expand Down
2 changes: 1 addition & 1 deletion src/ARControllerNFT_simd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ export class ARControllerNFT implements AbstractARControllerNFT {

this.framesize = this._width * this._height;

this.videoLuma = new Uint8Array(this.framesize / 4);
this.videoLuma = new Uint8Array(this.framesize);

this.camera_mat = this.artoolkitNFT.getCameraLens();

Expand Down
2 changes: 1 addition & 1 deletion src/ARControllerNFT_td.ts
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ export class ARControllerNFT implements AbstractARControllerNFT {

this.framesize = this._width * this._height;

this.videoLuma = new Uint8Array(this.framesize / 4);
this.videoLuma = new Uint8Array(this.framesize);

this.camera_mat = this.artoolkitNFT.getCameraLens();

Expand Down

0 comments on commit 2c6f07d

Please sign in to comment.