aboutsummaryrefslogtreecommitdiff
path: root/pix_opencv_warpperspective-help.pd
diff options
context:
space:
mode:
Diffstat (limited to 'pix_opencv_warpperspective-help.pd')
-rw-r--r--pix_opencv_warpperspective-help.pd35
1 files changed, 21 insertions, 14 deletions
diff --git a/pix_opencv_warpperspective-help.pd b/pix_opencv_warpperspective-help.pd
index d9404bd..4c8749b 100644
--- a/pix_opencv_warpperspective-help.pd
+++ b/pix_opencv_warpperspective-help.pd
@@ -1,4 +1,4 @@
-#N canvas 622 378 980 660 10;
+#N canvas 616 396 980 660 10;
#X obj 24 25 gemhead;
#X obj 411 543 gemwin;
#X msg 411 509 create \, 1;
@@ -9,16 +9,16 @@
#X obj 24 4 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1
;
#X obj 24 539 pix_opencv_warpperspective;
-#X msg 96 437 mapMatrix 1 0 0 0 1 0 0 0 1;
-#X text 95 418 you can also set the map matrix directly;
-#X msg 96 457 mapMatrix 0.5 0 0 0 0.5 0 0 0 1;
-#X text 301 436 identity;
-#X text 322 458 scale by 0.5;
-#X msg 96 477 mapMatrix 0 1 0 1 0 0 0 0 2;
-#X text 295 479 rotation by 90deg and scale by 0.5;
+#X msg 76 367 mapMatrix 1 0 0 0 1 0 0 0 1;
+#X text 75 348 you can also set the map matrix directly;
+#X msg 76 387 mapMatrix 0.5 0 0 0 0.5 0 0 0 1;
+#X text 281 366 identity;
+#X text 302 388 scale by 0.5;
+#X msg 76 407 mapMatrix 0 1 0 1 0 0 0 0 2;
+#X text 275 409 rotation by 90deg and scale by 0.5;
#X obj 24 93 pix_video;
#X obj 24 133 pix_flip;
-#N canvas 3 81 936 545 wrap_perspective_GPU 0;
+#N canvas 1 105 936 545 wrap_perspective_GPU 0;
#X obj 251 443 mesh_square 10 10;
#X obj 301 277 /;
#X obj 351 278 /;
@@ -74,7 +74,6 @@ matrix.;
#X connect 21 1 12 0;
#X connect 24 0 16 0;
#X restore 161 604 pd wrap_perspective_GPU;
-#X obj 24 113 pix_grey;
#X msg 43 233 dstMatrix 0 0 0 1 1 1 1 0;
#X msg 59 281 srcMatrix 0 0 0 1 1 1 1 0;
#X text 203 234 destination matrix;
@@ -94,6 +93,12 @@ message to apply the transformation;
#X text 112 25 see examples/05-perspective_correction for an example
of the use of pix_opencv_warpperspective with pix_opencv_findchessboardcorners
to correct perspective;
+#X obj 24 112 pix_grey;
+#X msg 123 480 invert \$1;
+#X obj 123 452 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
+1;
+#X text 140 450 invert transformation matrix (same as swaping src and
+dst matrix);
#X connect 0 0 16 0;
#X connect 2 0 1 0;
#X connect 3 0 1 0;
@@ -104,9 +109,11 @@ to correct perspective;
#X connect 9 0 8 0;
#X connect 11 0 8 0;
#X connect 14 0 8 0;
-#X connect 16 0 19 0;
+#X connect 16 0 31 0;
#X connect 17 0 8 0;
-#X connect 19 0 17 0;
+#X connect 19 0 8 0;
#X connect 20 0 8 0;
-#X connect 21 0 8 0;
-#X connect 25 0 8 0;
+#X connect 24 0 8 0;
+#X connect 31 0 17 0;
+#X connect 32 0 8 0;
+#X connect 33 0 32 0;