aboutsummaryrefslogtreecommitdiff
path: root/externals/gridflow/doc/tutorials/2-3-4-image-modification-2-remap-image.pd
blob: b6e4755d7b71ba8bdf218742bf45241e90ef520d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#N canvas 41 17 876 618 10;
#X obj 10 519 cnv 15 720 30 empty empty empty 20 12 0 14 -200249 -66577
0;
#X msg 53 173 open b001.jpg;
#X obj 23 116 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 23 204 #in;
#X obj 23 142 t b b;
#X obj 23 351 #out window;
#X obj 102 323 #print;
#X obj 184 160 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X floatatom 203 225 5 0 0 0 - - -;
#X obj 173 184 #for (0 0) (240 320) (1 1);
#X obj 173 134 metro 100;
#X obj 173 109 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X obj 23 292 #remap_image;
#X text 18 526 GridFlow 0.8.0;
#X text 243 224 <-- Modify the value to see transformations.;
#X obj 173 257 # / 1;
#X text 227 261 The remap object works with numops.;
#X obj 9 -17 cnv 15 430 15 empty empty empty 20 12 0 14 -228992 -66577
0;
#X obj 9 -52 cnv 15 430 30 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 15 -17 2.4 Image Manipulation;
#X text 16 -46 2 Introduction to Images;
#X text 15 2 2.4.4 Remap Image;
#X text 26 408 Remap image permits you to modify an image using numeric
operators. Different numeric Operators have different effects ton the
image and can be changed to give the desired effect. The multiplication
operator multiplies the values and distorts the image. The division
operator does the same but shrinks the operator...;
#X text 467 24 Have the list of operators and what they do in order
to know the various effects.;
#X text 468 77 example:;
#X obj 474 121 # / 2;
#X text 523 114 multiplication multiplies the numbers in the grid and
distorts the image.;
#N canvas 0 0 450 300 META 0;
#X restore 130 527 pd META;
#X connect 1 0 3 0;
#X connect 2 0 4 0;
#X connect 3 0 12 0;
#X connect 4 0 3 0;
#X connect 4 1 1 0;
#X connect 7 0 9 0;
#X connect 8 0 15 1;
#X connect 9 0 15 0;
#X connect 10 0 9 0;
#X connect 11 0 10 0;
#X connect 12 0 5 0;
#X connect 12 1 6 0;
#X connect 15 0 12 1;