Skip to content

Commit

Permalink
setting willReadFrequently to true
Browse files Browse the repository at this point in the history
  • Loading branch information
kalwalt committed Nov 11, 2024
1 parent b416bcc commit 60166a9
Show file tree
Hide file tree
Showing 17 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion examples/grayscale.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
var jsfeat = jsfeatNext.jsfeatNext;
var imgproc = new jsfeat.imgproc();
var canvas = document.getElementById('canvas');
var ctx = canvas.getContext('2d');
var ctx = canvas.getContext('2d', {"willReadFrequently": true});

if (navigator.mediaDevices && navigator.mediaDevices.getUserMedia) {
var hint = {
Expand Down
2 changes: 1 addition & 1 deletion examples/sample_boxblur.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
function demo_app() {
canvasWidth = canvas.width;
canvasHeight = canvas.height;
ctx = canvas.getContext('2d');
ctx = canvas.getContext('2d', {"willReadFrequently": true});

ctx.fillStyle = "rgb(0,255,0)";
ctx.strokeStyle = "rgb(0,255,0)";
Expand Down
2 changes: 1 addition & 1 deletion examples/sample_canny_edge.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
function demo_app(videoWidth, videoHeight) {
canvasWidth = canvas.width;
canvasHeight = canvas.height;
ctx = canvas.getContext('2d');
ctx = canvas.getContext('2d', {"willReadFrequently": true});

ctx.fillStyle = "rgb(0,255,0)";
ctx.strokeStyle = "rgb(0,255,0)";
Expand Down
2 changes: 1 addition & 1 deletion examples/sample_equalize_hist.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
function demo_app(videoWidth, videoHeight) {
canvasWidth = canvas.width;
canvasHeight = canvas.height;
ctx = canvas.getContext('2d');
ctx = canvas.getContext('2d', {"willReadFrequently": true});

ctx.fillStyle = "rgb(0,255,0)";
ctx.strokeStyle = "rgb(0,255,0)";
Expand Down
2 changes: 1 addition & 1 deletion examples/sample_fast_corners.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
function demo_app(videoWidth, videoHeight) {
canvasWidth = canvas.width;
canvasHeight = canvas.height;
ctx = canvas.getContext('2d');
ctx = canvas.getContext('2d', {"willReadFrequently": true});

ctx.fillStyle = "rgb(0,255,0)";
ctx.strokeStyle = "rgb(0,255,0)";
Expand Down
2 changes: 1 addition & 1 deletion examples/sample_gaussblur.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
function demo_app(videoWidth, videoHeight) {
canvasWidth = canvas.width;
canvasHeight = canvas.height;
ctx = canvas.getContext('2d');
ctx = canvas.getContext('2d', {"willReadFrequently": true});

ctx.fillStyle = "rgb(0,255,0)";
ctx.strokeStyle = "rgb(0,255,0)";
Expand Down
2 changes: 1 addition & 1 deletion examples/sample_oflow_lk.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
function demo_app(videoWidth, videoHeight) {
canvasWidth = canvas.width;
canvasHeight = canvas.height;
ctx = canvas.getContext('2d');
ctx = canvas.getContext('2d', {"willReadFrequently": true});

ctx.fillStyle = "rgb(0,255,0)";
ctx.strokeStyle = "rgb(0,255,0)";
Expand Down
2 changes: 1 addition & 1 deletion examples/sample_orb.html
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
function demo_app(videoWidth, videoHeight) {
canvasWidth = canvas.width;
canvasHeight = canvas.height;
ctx = canvas.getContext('2d');
ctx = canvas.getContext('2d', {"willReadFrequently": true});

ctx.fillStyle = "rgb(0,255,0)";
ctx.strokeStyle = "rgb(0,255,0)";
Expand Down
2 changes: 1 addition & 1 deletion examples/sample_orb_pinball.html
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
function demo_app(videoWidth, videoHeight) {
canvasWidth = canvas.width;
canvasHeight = canvas.height;
ctx = canvas.getContext('2d');
ctx = canvas.getContext('2d', {"willReadFrequently": true});

ctx.fillStyle = "rgb(0,255,0)";
ctx.strokeStyle = "rgb(0,255,0)";
Expand Down
2 changes: 1 addition & 1 deletion examples/sample_pyrdown.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
function demo_app(videoWidth, videoHeight) {
canvasWidth = canvas.width;
canvasHeight = canvas.height;
ctx = canvas.getContext('2d');
ctx = canvas.getContext('2d', {"willReadFrequently": true});

ctx.fillStyle = "rgb(0,255,0)";
ctx.strokeStyle = "rgb(0,255,0)";
Expand Down
2 changes: 1 addition & 1 deletion examples/sample_scharr.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
function demo_app(videoWidth, videoHeight) {
canvasWidth = canvas.width;
canvasHeight = canvas.height;
ctx = canvas.getContext('2d');
ctx = canvas.getContext('2d', {"willReadFrequently": true});

ctx.fillStyle = "rgb(0,255,0)";
ctx.strokeStyle = "rgb(0,255,0)";
Expand Down
10 changes: 5 additions & 5 deletions examples/sample_sobel.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
</div>

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="../dist/jsfeatNext.js"></script>
<script type="text/javascript" src="js/compatibility.js"></script>
<script type="text/javascript" src="js/profiler.js"></script>
<script type="text/javascript">
<script src="../dist/jsfeatNext.js"></script>
<script type="text/javascript" src="js/compatibility.js"></script>
<script type="text/javascript" src="js/profiler.js"></script>
<script type="text/javascript">

$(window).on('load', function () {
"use strict";
Expand Down Expand Up @@ -94,7 +94,7 @@
function demo_app(videoWidth, videoHeight) {
canvasWidth = canvas.width;
canvasHeight = canvas.height;
ctx = canvas.getContext('2d');
ctx = canvas.getContext('2d', {"willReadFrequently": true});

ctx.fillStyle = "rgb(0,255,0)";
ctx.strokeStyle = "rgb(0,255,0)";
Expand Down
10 changes: 5 additions & 5 deletions examples/sample_sobel_edge.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
</div>

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="../dist/jsfeatNext.js"></script>
<script type="text/javascript" src="js/compatibility.js"></script>
<script type="text/javascript" src="js/profiler.js"></script>
<script type="text/javascript">
<script src="../dist/jsfeatNext.js"></script>
<script type="text/javascript" src="js/compatibility.js"></script>
<script type="text/javascript" src="js/profiler.js"></script>
<script type="text/javascript">

$(window).on('load', function () {
"use strict";
Expand Down Expand Up @@ -93,7 +93,7 @@
function demo_app(videoWidth, videoHeight) {
canvasWidth = canvas.width;
canvasHeight = canvas.height;
ctx = canvas.getContext('2d');
ctx = canvas.getContext('2d', {"willReadFrequently": true});

ctx.fillStyle = "rgb(0,255,0)";
ctx.strokeStyle = "rgb(0,255,0)";
Expand Down
2 changes: 1 addition & 1 deletion examples/sample_warp_affine.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
function demo_app(videoWidth, videoHeight) {
canvasWidth = canvas.width;
canvasHeight = canvas.height;
ctx = canvas.getContext('2d');
ctx = canvas.getContext('2d', {"willReadFrequently": true});

ctx.fillStyle = "rgb(0,255,0)";
ctx.strokeStyle = "rgb(0,255,0)";
Expand Down
2 changes: 1 addition & 1 deletion examples/sample_warp_perspective.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
function demo_app(videoWidth, videoHeight) {
canvasWidth = canvas.width;
canvasHeight = canvas.height;
ctx = canvas.getContext('2d');
ctx = canvas.getContext('2d', {"willReadFrequently": true});

ctx.fillStyle = "rgb(0,255,0)";
ctx.strokeStyle = "rgb(0,255,0)";
Expand Down
2 changes: 1 addition & 1 deletion examples/sample_yape.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
function demo_app(videoWidth, videoHeight) {
canvasWidth = canvas.width;
canvasHeight = canvas.height;
ctx = canvas.getContext('2d');
ctx = canvas.getContext('2d', {"willReadFrequently": true});

ctx.fillStyle = "rgb(0,255,0)";
ctx.strokeStyle = "rgb(0,255,0)";
Expand Down
2 changes: 1 addition & 1 deletion examples/sample_yape06.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
function demo_app(videoWidth, videoHeight) {
canvasWidth = canvas.width;
canvasHeight = canvas.height;
ctx = canvas.getContext('2d');
ctx = canvas.getContext('2d', {"willReadFrequently": true});

ctx.fillStyle = "rgb(0,255,0)";
ctx.strokeStyle = "rgb(0,255,0)";
Expand Down

0 comments on commit 60166a9

Please sign in to comment.