CROP image by 4 points mouse controlled FRAME

Sep 24, 2007 at 10:36am

CROP image by 4 points mouse controlled FRAME

greet all participant a community!
the question at a rate of weak user.
what do CROP scenes, at frame?
that is to say there is video camera, it is necessary to use only area of the scene, and to GUI was beautiful – want to do the frame, operated by mouse, who possible move for 4 corners.
can be someone did like and is divided by experience?
thank u and sorry for bad english )

приветствую всех участников сообщества!
вопрос на уровне слабого пользователя.
как сделать CROP изображения, при помощи рамочки?
то есть имеется видеокамера, нужно использовать только участок изображения,
и чтобы GUI был красивый – хочу сделать рамочку, управляемую мышью, которую можно двигать за 4 угла.
может быть кто-то делал подобное и поделится опытом?

#33784
Sep 27, 2007 at 4:41pm

look on forum for KEYSONE, if it helps.

#113046
Sep 28, 2007 at 5:40pm

regrettably, quest on forum not give result
problem so- actual

#113047
Sep 28, 2007 at 5:55pm

sorry for my dyslexic

look for KEYSTONE

j

#113048
Sep 28, 2007 at 5:58pm

You can use a quad in Opengl or jit.mxform2d.

wes

On 9/28/07, outoff wrote:
>
> regrettably, quest on forum not give result
> problem so- actual
>

#113049
Apr 18, 2008 at 12:22pm

spend some time in search and try to understand some new in Max and english, I use this construction for the crop))
may be anybody knows, how to do this GUI better way? may be jsui?
please helps any information!!!
thanks for your time and again and again – sorry for bad english ;D

#P window setfont “Sans Serif” 9.;
#P flonum 277 671 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 381 671 15 0;
#P toggle 332 671 15 0;
#P window linecount 1;
#P newex 381 689 51 9109513 s mirror_y;
#P newex 332 689 50 9109513 s mirror_x;
#P newex 277 689 38 9109513 s angle;
#P newex 107 547 45 9109513 loadbang;
#P toggle 136 576 15 0;
#P newex 136 594 45 9109513 metro 20;
#P user jit.pwindow 648 70 348 304 0 1 0 0 1 0;
#P hidden newex 170 661 67 9109513 s demoscreen;
#N vpatcher 70 89 1012 710;
#P outlet 329 240 15 0;
#P outlet 290 237 15 0;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 328 204 27 9109513 / 2;
#P window linecount 0;
#P newex 290 202 27 9109513 / 2;
#P number 331 182 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 292 183 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 266 157 59 9109513 unpack l 0 0;
#P newex 16 129 19 9109513 t b;
#P window setfont “Sans Serif” 10.;
#P message 343 95 41 9109514 getdim;
#N vpatcher 4 23 946 644;
#P window setfont “Sans Serif” 10.;
#P newex 267 45 80 9109514 r second_metro;
#P button 269 73 15 0;
#P comment 226 202 26 9109514 y;
#P newex 198 199 27 9109514 -;
#P newex 83 195 27 9109514 -;
#P number 243 152 35 10 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 169 154 35 10 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 124 153 35 10 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 50 155 35 10 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 144 78 59 9109514 unpack 0 0;
#P newex 84 78 59 9109514 unpack 0 0;
#P window setfont “Sans Serif” 9.;
#P newex 144 50 30 9109513 r xy2;
#P newex 84 50 30 9109513 r xy1;
#P window setfont “Sans Serif” 10.;
#P comment 54 196 26 9109514 x;
#P outlet 198 224 15 0;
#P outlet 83 220 15 0;
#P connect 5 0 7 0;
#P connect 9 0 11 0;
#P connect 11 0 0 0;
#P connect 14 0 5 0;
#P connect 3 0 5 0;
#P connect 7 0 11 1;
#P connect 5 1 8 0;
#P connect 4 0 6 0;
#P connect 14 0 6 0;
#P connect 6 0 9 0;
#P connect 10 0 12 0;
#P connect 12 0 1 0;
#P connect 8 0 12 1;
#P connect 6 1 10 0;
#P connect 15 0 14 0;
#P pop;
#P newobj 286 45 66 9109514 p diffrence;
#P newex 286 71 42 9109514 pak 0 0;
#P message 286 95 56 9109514 dim $1 $2;
#P window setfont “Sans Serif” 9.;
#P newex 174 50 30 9109513 r xy2;
#P newex 50 50 30 9109513 r xy1;
#P window setfont “Fixedwidth Serif” 10.;
#P newex 50 126 224 9240586 jit.matrix scale 4 char @usesrcdim 1;
#B color 5;
#P newex 174 71 110 9240586 prepend srcdimend;
#P newex 50 71 122 9240586 prepend srcdimstart;
#P inlet 20 94 15 0;
#P outlet 50 179 15 0;
#P connect 1 0 11 0;
#P connect 5 0 2 0;
#P fasten 1 0 4 0 25 117 55 117;
#P connect 2 0 4 0;
#P fasten 3 0 4 0 179 117 55 117;
#P fasten 10 0 4 0 348 117 55 117;
#P fasten 7 0 4 0 291 117 55 117;
#P connect 4 0 0 0;
#P connect 6 0 3 0;
#P connect 4 1 12 0;
#P connect 9 0 8 0;
#P connect 8 0 7 0;
#P connect 13 0 15 0;
#P connect 15 0 17 0;
#P connect 12 1 13 0;
#P fasten 9 1 8 1 347 68 323 68;
#P connect 14 0 16 0;
#P connect 16 0 18 0;
#P connect 12 2 14 0;
#P connect 11 0 10 0;
#P pop;
#P newobj 106 691 74 9109513 p resized matrix;
#N vpatcher 39 463 981 1084;
#P inlet 359 170 15 0;
#P inlet 272 168 15 0;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P message 347 251 65 9109513 anchor_y $1;
#P message 279 251 65 9109513 anchor_x $1;
#P flonum 171 170 50 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 0;
#P message 171 192 52 9109513 yscale $1;
#P flonum 118 170 50 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 118 192 52 9109513 xscale $1;
#P newex 88 215 55 9109513 jit.resamp;
#B color 5;
#P newex 50 73 28 9109513 * 0.1;
#P message 185 96 14 9109513 1;
#P message 154 96 16 9109513 -1;
#P newex 154 73 41 9109513 select 1;
#P message 136 96 14 9109513 1;
#P message 105 96 16 9109513 -1;
#P newex 105 73 41 9109513 select 1;
#P newex 154 50 49 9109513 r mirror_y;
#P newex 105 50 48 9109513 r mirror_x;
#P outlet 50 327 15 0;
#P inlet 88 50 15 0;
#P newex 50 50 36 9109513 r angle;
#P message 50 158 45 9109513 theta $1;
#P newex 50 298 102 9109513 jit.rota @boundmode 1;
#P connect 2 0 13 0;
#P connect 13 0 1 0;
#P connect 20 0 0 0;
#P connect 19 0 0 0;
#P fasten 14 0 0 0 93 266 55 266;
#P connect 1 0 0 0;
#P connect 0 0 4 0;
#P connect 3 0 14 0;
#P fasten 17 0 14 0 176 211 93 211;
#P fasten 15 0 14 0 123 211 93 211;
#P connect 5 0 7 0;
#P connect 7 0 8 0;
#P fasten 9 0 16 0 141 141 123 141;
#P fasten 8 0 16 0 110 141 123 141;
#P connect 16 0 15 0;
#P connect 7 1 9 0;
#P connect 6 0 10 0;
#P connect 10 0 11 0;
#P fasten 12 0 18 0 190 141 176 141;
#P fasten 11 0 18 0 159 141 176 141;
#P connect 18 0 17 0;
#P connect 10 1 12 0;
#P connect 21 0 19 0;
#P connect 22 0 20 0;
#P pop;
#P newobj 106 724 74 9109513 p angle;
#P message 107 594 28 9109513 open;
#B color 9;
#P newex 107 630 85 9109513 jit.dx.grab 800 600;
#B color 5;
#P user pictslider 8 64 320 238 1 1 1 1 SliderDefaultKnob.pct 1 SliderDefaultBkgnd.pct 1 3187 0 0 19661200 1. 1.;
#P user pictslider 8 299 320 238 1 1 1 1 SliderDefaultKnob.pct 1 SliderDefaultKnob.pct 1 3187 0 19726336 39322000 1. 1.;
#N vpatcher -50 -50 -60 -98;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 360 188 44 9109513 r vertres;
#P newex 277 188 59 9109513 r horizontres;
#P newex 171 188 44 9109513 r vertres;
#P newex 88 188 59 9109513 r horizontres;
#P newex 337 162 46 9109513 s vertres;
#P window linecount 0;
#P newex 15 162 61 9109513 s horizontres;
#P window linecount 1;
#P message 337 93 28 9109513 1024;
#P message 308 93 28 9109513 1280;
#P newex 308 62 41 9109513 select 6;
#P message 284 93 23 9109513 768;
#P message 255 93 28 9109513 1024;
#P newex 255 62 41 9109513 select 5;
#P message 231 93 23 9109513 600;
#P message 207 93 23 9109513 800;
#P newex 207 62 41 9109513 select 4;
#P message 183 93 23 9109513 480;
#P message 159 93 23 9109513 640;
#P newex 159 62 41 9109513 select 3;
#P message 135 93 23 9109513 300;
#P message 111 93 23 9109513 400;
#P newex 111 62 41 9109513 select 2;
#P message 87 93 23 9109513 240;
#P message 63 93 23 9109513 320;
#P newex 63 62 41 9109513 select 1;
#P message 39 93 23 9109513 120;
#P window linecount 0;
#P message 15 93 23 9109513 160;
#P newex 15 62 41 9109513 select 0;
#P newex 15 31 32 9109513 r reso;
#P window linecount 1;
#P newex 288 234 82 9109513 zmap 0 600 0 600;
#P newex 205 234 82 9109513 zmap 0 800 0 800;
#P newex 99 234 82 9109513 zmap 0 600 0 600;
#P window linecount 0;
#P newex 16 234 82 9109513 zmap 0 800 0 800;
#P newex 205 310 32 9109513 s xy2;
#P newex 16 309 32 9109513 s xy1;
#P newex 205 288 39 9109513 pak 0 0;
#P newex 16 287 39 9109513 pak 0 0;
#P number 241 265 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 205 265 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 53 265 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 16 265 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P inlet 99 217 15 0;
#P inlet 288 217 15 0;
#P inlet 205 217 15 0;
#P inlet 16 217 15 0;
#P fasten 16 0 17 0 20 56 20 56;
#P fasten 17 0 18 0 20 87 20 87;
#P fasten 18 0 38 0 20 136 20 136;
#P fasten 21 0 38 0 68 136 20 136;
#P fasten 24 0 38 0 116 136 20 136;
#P fasten 27 0 38 0 164 136 20 136;
#P fasten 30 0 38 0 212 136 20 136;
#P fasten 33 0 38 0 260 136 20 136;
#P fasten 36 0 38 0 313 136 20 136;
#P fasten 0 0 12 0 21 233 21 233;
#P fasten 12 0 4 0 21 259 21 259;
#P fasten 4 0 8 0 21 283 21 283;
#P fasten 8 0 10 0 21 307 21 307;
#P fasten 17 0 19 0 20 87 44 87;
#P fasten 5 0 8 1 58 283 50 283;
#P fasten 13 0 5 0 104 259 58 259;
#P fasten 16 0 20 0 20 56 68 56;
#P fasten 20 0 21 0 68 87 68 87;
#P fasten 20 0 22 0 68 87 92 87;
#P connect 40 0 12 4;
#P fasten 3 0 13 0 104 233 104 233;
#P fasten 16 0 23 0 20 56 116 56;
#P fasten 23 0 24 0 116 87 116 87;
#P fasten 23 0 25 0 116 87 140 87;
#P fasten 16 0 26 0 20 56 164 56;
#P fasten 26 0 27 0 164 87 164 87;
#P connect 41 0 13 4;
#P fasten 26 0 28 0 164 87 188 87;
#P fasten 1 0 14 0 210 233 210 233;
#P fasten 14 0 6 0 210 259 210 259;
#P fasten 6 0 9 0 210 284 210 284;
#P fasten 9 0 11 0 210 308 210 308;
#P fasten 16 0 29 0 20 56 212 56;
#P fasten 29 0 30 0 212 87 212 87;
#P fasten 29 0 31 0 212 87 236 87;
#P fasten 7 0 9 1 246 284 239 284;
#P fasten 15 0 7 0 293 259 246 259;
#P fasten 16 0 32 0 20 56 260 56;
#P fasten 32 0 33 0 260 87 260 87;
#P connect 42 0 14 4;
#P fasten 32 0 34 0 260 87 289 87;
#P fasten 2 0 15 0 293 233 293 233;
#P fasten 16 0 35 0 20 56 313 56;
#P fasten 35 0 36 0 313 87 313 87;
#P fasten 35 0 37 0 313 87 342 87;
#P fasten 19 0 39 0 44 136 342 136;
#P fasten 22 0 39 0 92 136 342 136;
#P fasten 25 0 39 0 140 136 342 136;
#P fasten 28 0 39 0 188 136 342 136;
#P fasten 31 0 39 0 236 136 342 136;
#P fasten 34 0 39 0 289 136 342 136;
#P fasten 37 0 39 0 342 136 342 136;
#P connect 43 0 15 4;
#P pop;
#P hidden newobj 209 579 80 9109513 p sendcropmatrix;
#P user pictslider 326 299 320 238 1 1 1 1 SliderDefaultKnob.pct 1 SliderDefaultBkgnd.pct 1 3187 0 19726737 39322400 1. 1.;
#P user pictslider 326 64 320 238 1 1 1 1 SliderDefaultKnob.pct 1 SliderDefaultBkgnd.pct 1 3187 0 401 19661600 1. 1.;
#P user jit.pwindow 12 71 628 461 0 0 0 0 1 0;
#P hidden newex 13 43 65 9109513 r demoscreen;
#P hidden connect 5 0 6 0;
#P hidden connect 6 0 5 0;
#P hidden connect 0 0 1 0;
#P connect 7 0 10 0;
#P connect 10 0 9 0;
#P connect 15 0 8 0;
#P fasten 13 0 7 0 141 621 112 621;
#P connect 8 0 7 0;
#P fasten 15 0 14 0 112 571 141 571;
#P connect 14 0 13 0;
#P connect 10 1 9 1;
#P fasten 7 0 11 0 112 655 175 655;
#P connect 10 2 9 2;
#P hidden fasten 6 0 4 0 13 408 214 408;
#P hidden fasten 6 1 4 1 323 408 237 408;
#P hidden fasten 3 0 4 2 331 478 260 478;
#P connect 21 0 16 0;
#P hidden connect 3 1 4 3;
#P hidden connect 2 1 6 1;
#P hidden connect 3 1 5 1;
#P hidden connect 3 0 2 0;
#P hidden connect 2 0 3 0;
#P connect 19 0 17 0;
#P connect 20 0 18 0;
#P hidden connect 6 1 2 1;
#P hidden connect 5 1 3 1;
#P connect 9 0 12 0;
#P window clipboard copycount 22;

#113050

You must be logged in to reply to this topic.