summaryrefslogtreecommitdiffstats
path: root/SD-VBS/common/toolbox/toolbox_basic/calib/TOOLBOX_calib.tar
blob: 92ab3a0c1b487baa9067d32c281694c16864aa89 (plain) (blame)
ofshex dumpascii
0000 54 4f 4f 4c 42 4f 58 5f 63 61 6c 69 62 2f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 TOOLBOX_calib/..................
0020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0040 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0060 00 00 00 00 20 20 20 37 35 30 20 00 20 20 20 34 37 31 20 00 20 20 20 34 35 34 20 00 20 20 20 20 .......750.....471.....454......
0080 20 20 20 20 20 20 30 20 20 36 37 36 33 32 36 35 30 32 35 20 20 20 36 33 33 37 00 20 00 00 00 00 ......0..6763265025...6337......
00a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
00c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
00e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0100 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0120 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0140 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0160 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
01a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
01c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
01e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0200 54 4f 4f 4c 42 4f 58 5f 63 61 6c 69 62 2f 63 61 6c 69 62 5f 67 75 69 2e 6d 00 00 00 00 00 00 00 TOOLBOX_calib/calib_gui.m.......
0220 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0240 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0260 00 00 00 00 20 20 20 36 34 30 20 00 20 20 20 34 37 31 20 00 20 20 20 34 35 34 20 00 20 20 20 20 .......640.....471.....454......
0280 20 20 31 34 37 33 33 20 20 36 37 36 33 30 37 30 32 31 33 20 20 31 30 35 34 32 00 20 00 00 00 00 ..14733..6763070213..10542......
02a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
02c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
02e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0300 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0320 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0340 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0360 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0380 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
03a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
03c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
03e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
0400 66 70 72 69 6e 74 66 28 31 2c 27 2a 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d fprintf(1,'*--------------------
0420 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d --------------------------------
0440 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d --------------------------------
0460 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2a 5c 6e 27 29 3b 0a 66 70 72 69 6e 74 66 28 31 ----------------*\n');.fprintf(1
0480 2c 27 7c 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 43 61 6e 65 72 61 20 63 61 6c ,'|...................Canera.cal
04a0 69 62 72 61 74 69 6f 6e 20 66 72 6f 6d 20 6d 75 6c 74 69 70 6c 65 20 69 6d 61 67 65 73 20 6f 66 ibration.from.multiple.images.of
04c0 20 61 20 70 6c 61 6e 61 72 20 67 72 69 64 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .a.planar.grid..................
04e0 20 20 20 20 20 20 20 7c 5c 6e 27 29 3b 0a 66 70 72 69 6e 74 66 28 31 2c 27 7c 20 20 20 20 20 20 .......|\n');.fprintf(1,'|......
0500 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 28 63 29 20 4a 65 61 6e 2d 59 76 65 ....................(c).Jean-Yve
0520 73 20 42 6f 75 67 75 65 74 20 2d 20 41 75 67 75 73 74 20 33 31 73 74 2c 20 31 39 39 39 20 20 20 s.Bouguet.-.August.31st,.1999...
0540 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 7c 5c ..............................|\
0560 6e 27 29 3b 0a 66 70 72 69 6e 74 66 28 31 2c 27 2a 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d n');.fprintf(1,'*---------------
0580 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d --------------------------------
05a0 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d --------------------------------
05c0 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2a 5c 6e 5c 6e 5c 6e 27 29 3b 0a ---------------------*\n\n\n');.
05e0 0a 0a 66 70 72 69 6e 74 66 28 31 2c 27 4c 49 53 54 20 4f 46 20 43 41 4c 49 42 52 41 54 49 4f 4e ..fprintf(1,'LIST.OF.CALIBRATION
0600 20 43 4f 4d 4d 41 4e 44 53 20 28 74 6f 20 62 65 20 65 78 65 63 75 74 65 64 20 66 72 6f 6d 20 31 .COMMANDS.(to.be.executed.from.1
0620 20 74 6f 20 35 29 3a 5c 6e 5c 6e 27 29 3b 0a 0a 66 70 72 69 6e 74 66 28 31 2c 27 31 2d 20 49 6d .to.5):\n\n');..fprintf(1,'1-.Im
0640 61 67 65 20 6e 61 6d 65 73 3a 20 20 20 20 20 20 20 20 20 20 4c 65 74 73 20 74 68 65 20 75 73 65 age.names:..........Lets.the.use
0660 72 20 65 6e 74 65 72 20 74 68 65 20 66 69 6c 65 20 6e 61 6d 65 73 20 6f 66 20 74 68 65 20 63 61 r.enter.the.file.names.of.the.ca
0680 6c 69 62 72 61 74 69 6f 6e 20 69 6d 61 67 65 73 20 28 6d 61 78 20 3d 20 33 30 20 69 6d 61 67 65 libration.images.(max.=.30.image
06a0 73 29 2e 5c 6e 27 29 3b 0a 66 70 72 69 6e 74 66 28 31 2c 27 20 20 20 20 20 20 20 20 20 20 20 20 s).\n');.fprintf(1,'............
06c0 20 20 20 20 20 20 20 20 20 20 20 20 20 49 74 20 69 6e 63 6c 75 64 65 73 20 62 61 73 65 6e 61 6d .............It.includes.basenam
06e0 65 2c 20 69 6d 61 67 65 20 74 79 70 65 20 28 27 27 74 69 66 27 27 2c 20 27 27 62 6d 70 27 27 20 e,.image.type.(''tif'',.''bmp''.
0700 6f 72 20 27 27 72 61 73 27 27 29 2c 20 6e 75 6d 62 65 72 69 6e 67 20 73 63 68 65 6d 65 2e 5c 6e or.''ras''),.numbering.scheme.\n
0720 27 29 3b 0a 66 70 72 69 6e 74 66 28 31 2c 27 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ');.fprintf(1,'.................
0740 20 20 20 20 20 20 20 20 41 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 6c 61 75 6e 63 68 73 20 74 68 ........Automatically.launchs.th
0760 65 20 6e 65 78 74 20 73 74 65 70 20 28 52 65 61 64 20 69 6d 61 67 65 73 29 2e 5c 6e 27 29 3b 0a e.next.step.(Read.images).\n');.
0780 66 70 72 69 6e 74 66 28 31 2c 27 32 2d 20 52 65 61 64 20 69 6d 61 67 65 73 3a 20 20 20 20 20 20 fprintf(1,'2-.Read.images:......
07a0 20 20 20 20 52 65 61 64 73 20 69 6e 20 74 68 65 20 63 61 6c 69 62 72 61 74 69 6f 6e 20 69 6d 61 ....Reads.in.the.calibration.ima
07c0 67 65 73 20 66 72 6f 6d 20 66 69 6c 65 73 2e 5c 6e 27 29 3b 0a 66 70 72 69 6e 74 66 28 31 2c 27 ges.from.files.\n');.fprintf(1,'
07e0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 41 75 74 6f 6d 61 74 .........................Automat
0800 69 63 61 6c 6c 79 20 6c 61 75 6e 63 68 73 20 74 68 65 20 6e 65 78 74 20 73 74 65 70 20 28 45 78 ically.launchs.the.next.step.(Ex
0820 74 72 61 63 74 20 67 72 69 64 20 63 6f 72 6e 65 72 73 29 2e 5c 6e 27 29 3b 0a 66 70 72 69 6e 74 tract.grid.corners).\n');.fprint
0840 66 28 31 2c 27 33 2d 20 45 78 74 72 61 63 74 20 67 72 69 64 20 63 6f 72 6e 65 72 73 3a 20 45 78 f(1,'3-.Extract.grid.corners:.Ex
0860 74 72 61 63 74 73 20 74 68 65 20 67 72 69 64 20 63 6f 72 6e 65 72 73 20 66 72 6f 6d 20 74 68 65 tracts.the.grid.corners.from.the
0880 20 69 6d 61 67 65 2e 5c 6e 27 29 3b 0a 66 70 72 69 6e 74 66 28 31 2c 27 20 20 20 20 20 20 20 20 .image.\n');.fprintf(1,'........
08a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 42 61 73 65 64 20 66 6f 75 72 20 6d 61 75 61 .................Based.four.maua
08c0 6c 20 63 6c 69 63 6b 73 20 70 65 72 20 69 6d 61 67 65 2e 5c 6e 27 29 3b 0a 66 70 72 69 6e 74 66 l.clicks.per.image.\n');.fprintf
08e0 28 31 2c 27 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 68 65 (1,'.........................The
0900 20 63 61 6c 69 62 72 61 74 69 6f 6e 20 64 61 74 61 20 69 73 20 73 61 76 65 64 20 75 6e 64 65 72 .calibration.data.is.saved.under
0920 20 27 27 63 61 6c 69 62 5f 64 61 74 61 2e 6d 61 74 27 27 2e 5c 6e 27 29 3b 0a 66 70 72 69 6e 74 .''calib_data.mat''.\n');.fprint
0940 66 28 31 2c 27 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 41 75 f(1,'.........................Au
0960 74 6f 6d 61 74 69 63 61 6c 6c 79 20 6c 61 75 6e 63 68 73 20 74 68 65 20 6e 65 78 74 20 73 74 65 tomatically.launchs.the.next.ste
0980 70 20 28 52 75 6e 20 63 61 6c 69 62 72 61 74 69 6f 6e 29 2e 5c 6e 27 29 3b 0a 66 70 72 69 6e 74 p.(Run.calibration).\n');.fprint
09a0 66 28 31 2c 27 34 2d 20 52 75 6e 20 63 61 6c 69 62 72 61 74 69 6f 6e 3a 20 20 20 20 20 20 4d 61 f(1,'4-.Run.calibration:......Ma
09c0 69 6e 20 63 61 6c 69 62 72 61 74 69 6f 6e 20 70 72 6f 63 65 64 75 72 65 2e 5c 6e 27 29 3b 0a 66 in.calibration.procedure.\n');.f
09e0 70 72 69 6e 74 66 28 31 2c 27 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 printf(1,'......................
0a00 20 20 20 4f 70 74 69 6d 69 7a 61 74 69 6f 6e 20 6f 66 20 69 6e 74 72 69 6e 73 69 63 20 61 6e 64 ...Optimization.of.intrinsic.and
0a20 20 65 78 74 72 69 6e 73 69 63 20 70 61 72 61 6d 65 74 65 72 73 20 74 6f 20 6d 69 6e 69 6d 69 7a .extrinsic.parameters.to.minimiz
0a40 65 5c 6e 27 29 3b 0a 66 70 72 69 6e 74 66 28 31 2c 27 20 20 20 20 20 20 20 20 20 20 20 20 20 20 e\n');.fprintf(1,'..............
0a60 20 20 20 20 20 20 20 20 20 20 20 74 68 65 20 72 65 70 72 6f 6a 65 63 74 69 6f 6e 20 65 72 72 6f ...........the.reprojection.erro
0a80 72 20 28 69 6e 20 74 68 65 20 6c 65 61 73 74 20 73 71 75 61 72 65 73 20 73 65 6e 73 65 2e 5c 6e r.(in.the.least.squares.sense.\n
0aa0 27 29 3b 0a 66 70 72 69 6e 74 66 28 31 2c 27 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 ');.fprintf(1,'.................
0ac0 20 20 20 20 20 20 20 20 45 73 74 69 6d 61 74 65 64 20 70 61 72 61 6d 65 74 65 72 73 3a 20 32 20 ........Estimated.parameters:.2.
0ae0 66 6f 63 61 6c 20 6c 65 6e 67 74 68 73 2c 20 70 72 69 6e 63 69 70 61 6c 20 70 6f 69 6e 74 2c 5c focal.lengths,.principal.point,\
0b00 6e 27 29 3b 0a 66 70 72 69 6e 74 66 28 31 2c 27 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 n');.fprintf(1,'................
0b20 20 20 20 20 20 20 20 20 20 72 61 64 69 61 6c 20 28 32 20 63 6f 65 66 66 2e 20 2d 3e 20 34 20 64 .........radial.(2.coeff..->.4.d
0b40 65 67 72 65 65 20 6d 6f 64 65 6c 29 20 61 6e 64 20 74 61 6e 67 65 6e 74 69 61 6c 20 28 32 20 63 egree.model).and.tangential.(2.c
0b60 6f 65 66 66 2e 29 20 64 69 73 74 6f 72 74 69 6f 6e 2c 5c 6e 27 29 3b 0a 66 70 72 69 6e 74 66 28 oeff.).distortion,\n');.fprintf(
0b80 31 2c 27 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 6e 64 20 1,'.........................and.
0ba0 65 78 74 72 69 6e 73 69 63 20 70 61 72 61 6d 65 74 65 72 73 20 28 36 20 70 61 72 61 6d 65 74 65 extrinsic.parameters.(6.paramete
0bc0 72 73 20 70 65 72 20 69 6d 61 67 65 29 2e 5c 6e 27 29 3b 0a 66 70 72 69 6e 74 66 28 31 2c 27 20 rs.per.image).\n');.fprintf(1,'.
0be0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 68 65 20 66 69 6e 61 ........................The.fina
0c00 6c 20 73 6f 6c 75 74 69 6f 6e 20 69 73 20 73 61 76 65 64 20 75 6e 64 65 72 20 27 27 43 61 6c 69 l.solution.is.saved.under.''Cali
0c20 62 5f 52 65 73 75 6c 74 73 2e 6d 61 74 27 27 2e 5c 6e 27 29 3b 0a 66 70 72 69 6e 74 66 28 31 2c b_Results.mat''.\n');.fprintf(1,
0c40 27 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 46 6f 72 20 61 20 '.........................For.a.
0c60 64 65 73 63 72 69 70 74 69 6f 6e 20 6f 66 20 74 68 65 20 69 6e 74 72 69 6e 73 69 63 20 63 61 6d description.of.the.intrinsic.cam
0c80 65 72 61 20 6d 6f 64 65 6c 2c 20 72 65 66 65 72 20 74 6f 20 74 68 65 20 72 65 66 65 72 65 6e 63 era.model,.refer.to.the.referenc
0ca0 65 3a 5c 6e 27 29 3b 0a 66 70 72 69 6e 74 66 28 31 2c 27 20 20 20 20 20 20 20 20 20 20 20 20 20 e:\n');.fprintf(1,'.............
0cc0 20 20 20 20 20 20 20 20 20 20 20 20 22 41 20 46 6f 75 72 2d 73 74 65 70 20 43 61 6d 65 72 61 20 ............"A.Four-step.Camera.
0ce0 43 61 6c 69 62 72 61 74 69 6f 6e 20 50 72 6f 63 65 64 75 72 65 20 77 69 74 68 20 69 6d 70 6c 69 Calibration.Procedure.with.impli
0d00 63 69 74 20 49 6d 61 67 65 20 43 6f 72 72 65 63 74 69 6f 6e 22 5c 6e 27 29 3b 0a 66 70 72 69 6e cit.Image.Correction"\n');.fprin
0d20 74 66 28 31 2c 27 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 4a tf(1,'.........................J
0d40 61 6e 6e 65 20 48 65 69 6b 6b 69 6c 61 20 61 6e 64 20 4f 6c 6c 69 20 53 69 6c 76 65 6e 2c 20 49 anne.Heikkila.and.Olli.Silven,.I
0d60 6e 66 6f 74 65 63 68 20 4f 75 6c 75 20 61 6e 64 20 44 65 70 61 72 74 6d 65 6e 74 20 6f 66 20 45 nfotech.Oulu.and.Department.of.E
0d80 45 5c 6e 27 29 3b 0a 66 70 72 69 6e 74 66 28 31 2c 27 20 20 20 20 20 20 20 20 20 20 20 20 20 20 E\n');.fprintf(1,'..............
0da0 20 20 20 20 20 20 20 20 20 20 20 55 6e 69 76 65 72 73 69 74 79 20 6f 66 20 4f 75 6c 75 2c 20 41 ...........University.of.Oulu,.A
0dc0 70 70 65 61 72 65 64 20 69 6e 20 43 56 50 52 27 27 39 37 2c 20 50 75 65 72 74 6f 20 52 69 63 6f ppeared.in.CVPR''97,.Puerto.Rico
0de0 2e 5c 6e 27 29 3b 0a 66 70 72 69 6e 74 66 28 31 2c 27 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .\n');.fprintf(1,'..............
0e00 20 20 20 20 20 20 20 20 20 20 20 56 69 73 69 74 20 68 74 74 70 3a 2f 2f 77 77 77 2e 65 65 2e 6f ...........Visit.http://www.ee.o
0e20 75 6c 75 2e 66 69 2f 7e 6a 74 68 2f 63 61 6c 69 62 72 2f 43 61 6c 69 62 72 61 74 69 6f 6e 2e 68 ulu.fi/~jth/calibr/Calibration.h
0e40 74 6d 6c 5c 6e 27 29 3b 0a 66 70 72 69 6e 74 66 28 31 2c 27 20 20 20 20 20 20 20 20 20 20 20 20 tml\n');.fprintf(1,'............
0e60 20 20 20 20 20 20 20 20 20 20 20 20 20 41 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 6c 61 75 6e 63 .............Automatically.launc
0e80 68 73 20 74 68 65 20 6e 65 78 74 20 73 74 65 70 20 28 47 72 61 70 68 69 63 20 6f 75 74 29 2e 5c hs.the.next.step.(Graphic.out).\
0ea0 6e 27 29 3b 0a 66 70 72 69 6e 74 66 28 31 2c 27 35 2d 20 47 72 61 70 68 69 63 20 6f 75 74 3a 20 n');.fprintf(1,'5-.Graphic.out:.
0ec0 20 20 20 20 20 20 20 20 20 47 65 6e 65 72 61 74 65 73 20 74 68 65 20 67 72 61 70 68 69 63 61 6c .........Generates.the.graphical
0ee0 20 6f 75 74 70 75 74 20 61 73 73 6f 63 69 61 74 65 64 20 74 6f 20 74 68 65 20 63 75 72 72 65 6e .output.associated.to.the.curren
0f00 74 20 63 61 6c 69 62 72 61 74 69 6f 6e 20 73 6f 6c 75 74 69 6f 6e 2e 5c 6e 27 29 3b 0a 66 70 72 t.calibration.solution.\n');.fpr
0f20 69 6e 74 66 28 31 2c 27 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 intf(1,'........................
0f40 20 49 74 20 73 68 6f 77 73 20 74 68 65 20 33 44 20 6c 6f 63 61 74 69 6f 6e 73 20 6f 66 20 74 68 .It.shows.the.3D.locations.of.th
0f60 65 20 67 72 69 64 73 2c 20 61 6e 64 20 72 65 70 72 6f 6a 65 63 74 73 20 74 68 65 20 33 44 20 70 e.grids,.and.reprojects.the.3D.p
0f80 61 74 74 65 72 6e 73 20 6f 6e 20 74 68 65 5c 6e 27 29 3b 0a 66 70 72 69 6e 74 66 28 31 2c 27 20 atterns.on.the\n');.fprintf(1,'.
0fa0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 6f 72 69 67 69 6e 61 6c ........................original
0fc0 20 63 61 6c 69 62 72 61 74 69 6f 6e 20 69 6d 61 67 65 73 2e 5c 6e 27 29 3b 0a 66 70 72 69 6e 74 .calibration.images.\n');.fprint
0fe0 66 28 31 2c 27 36 2d 20 73 6f 6c 2e 20 77 69 74 68 20 63 65 6e 74 65 72 3a 20 20 20 20 20 4c 65 f(1,'6-.sol..with.center:.....Le
1000 74 73 20 74 68 65 20 75 73 65 72 20 73 65 6c 65 63 74 20 74 68 65 20 63 61 6c 69 62 72 61 74 69 ts.the.user.select.the.calibrati
1020 6f 6e 20 73 6f 6c 75 74 69 6f 6e 20 77 69 74 68 20 63 6f 6d 70 75 74 65 64 20 70 72 69 6e 63 69 on.solution.with.computed.princi
1040 70 61 6c 20 70 6f 69 6e 74 2e 5c 6e 27 29 3b 0a 66 70 72 69 6e 74 66 28 31 2c 27 20 20 20 20 20 pal.point.\n');.fprintf(1,'.....
1060 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 68 69 73 20 69 73 20 74 68 65 20 ....................This.is.the.
1080 64 65 66 61 75 6c 74 20 63 61 73 65 20 28 73 6f 6c 75 74 69 6f 6e 20 72 65 74 61 69 6e 65 64 20 default.case.(solution.retained.
10a0 61 66 74 65 72 20 52 75 6e 20 63 61 6c 69 62 72 61 74 69 6f 6e 29 2e 5c 6e 27 29 3b 0a 66 70 72 after.Run.calibration).\n');.fpr
10c0 69 6e 74 66 28 31 2c 27 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 intf(1,'........................
10e0 20 41 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 28 72 65 29 67 65 6e 65 72 61 74 65 73 20 74 68 65 .Automatically.(re)generates.the
1100 20 67 72 61 70 68 69 63 61 6c 20 6f 75 74 70 75 74 20 61 73 73 6f 63 69 61 74 65 64 20 74 6f 20 .graphical.output.associated.to.
1120 74 68 61 74 20 73 6f 6c 75 74 69 6f 6e 2e 5c 6e 27 29 3b 0a 66 70 72 69 6e 74 66 28 31 2c 27 37 that.solution.\n');.fprintf(1,'7
1140 2d 20 73 6f 6c 2e 20 77 69 74 68 6f 75 74 20 63 65 6e 74 65 72 3a 20 20 4c 65 74 73 20 74 68 65 -.sol..without.center:..Lets.the
1160 20 75 73 65 72 73 20 73 65 6c 65 63 74 20 74 68 65 20 63 61 6c 69 62 72 61 74 69 6f 6e 20 73 6f .users.select.the.calibration.so
1180 6c 75 74 69 6f 6e 20 77 69 74 68 6f 75 74 20 63 6f 6d 70 75 74 65 64 20 70 72 69 6e 63 69 70 61 lution.without.computed.principa
11a0 6c 20 70 6f 69 6e 74 2e 5c 6e 27 29 3b 0a 66 70 72 69 6e 74 66 28 31 2c 27 20 20 20 20 20 20 20 l.point.\n');.fprintf(1,'.......
11c0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 49 6e 20 74 68 61 74 20 63 61 73 65 2c 20 ..................In.that.case,.
11e0 74 68 65 20 70 72 69 6e 63 69 70 61 6c 20 70 6f 69 6e 74 20 69 73 20 61 73 73 75 6d 65 64 20 61 the.principal.point.is.assumed.a
1200 74 20 74 68 65 20 63 65 6e 74 65 72 20 6f 66 20 74 68 65 20 69 6d 61 67 65 2e 5c 6e 27 29 3b 0a t.the.center.of.the.image.\n');.
1220 66 70 72 69 6e 74 66 28 31 2c 27 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 fprintf(1,'.....................
1240 20 20 20 20 41 75 74 6f 6d 61 74 69 63 61 6c 6c 79 20 67 65 6e 65 72 61 74 65 73 20 74 68 65 20 ....Automatically.generates.the.
1260 67 72 61 70 68 69 63 61 6c 20 6f 75 74 70 75 74 20 61 73 73 6f 63 69 61 74 65 64 20 74 6f 20 74 graphical.output.associated.to.t
1280 68 61 74 20 73 6f 6c 75 74 69 6f 6e 2e 5c 6e 27 29 3b 0a 66 70 72 69 6e 74 66 28 31 2c 27 20 20 hat.solution.\n');.fprintf(1,'..
12a0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 54 68 69 73 20 6f 70 74 69 .......................This.opti
12c0 6f 6e 20 69 73 20 73 6f 6d 65 74 69 6d 65 73 20 75 73 65 66 75 6c 20 77 68 65 6e 20 74 68 65 20 on.is.sometimes.useful.when.the.
12e0 70 72 69 6e 63 69 70 61 6c 20 70 6f 69 6e 74 20 69 73 20 64 69 66 66 69 63 75 6c 74 20 74 6f 5c principal.point.is.difficult.to\
1300 6e 27 29 3b 0a 66 70 72 69 6e 74 66 28 31 2c 27 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 n');.fprintf(1,'................
1320 20 20 20 20 20 20 20 20 20 65 73 74 69 6d 61 74 65 20 28 69 6e 20 70 61 72 74 69 63 75 6c 61 72 .........estimate.(in.particular
1340 20 77 68 65 6e 20 74 68 65 20 63 61 6d 65 72 61 20 66 69 65 6c 64 20 6f 66 20 76 69 65 77 20 69 .when.the.camera.field.of.view.i
1360 73 20 73 6d 61 6c 6c 29 2e 5c 6e 27 29 3b 0a 66 70 72 69 6e 74 66 28 31 2c 27 38 2d 20 45 78 69 s.small).\n');.fprintf(1,'8-.Exi
1380 74 3a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 45 78 69 74 73 20 74 68 65 20 63 61 6c t:.................Exits.the.cal
13a0 69 62 72 61 74 69 6f 6e 20 74 6f 6f 6c 2e 5c 6e 5c 6e 5c 6e 27 29 3b 0a 0a 0a 66 70 72 69 6e 74 ibration.tool.\n\n\n');...fprint
13c0 66 28 31 2c 27 57 41 52 4e 49 4e 47 3a 20 44 6f 20 6e 6f 74 20 66 6f 72 67 65 74 20 74 6f 20 63 f(1,'WARNING:.Do.not.forget.to.c
13e0 68 61 6e 67 65 20 64 58 5f 64 65 66 61 75 6c 74 20 61 6e 64 20 64 58 5f 64 65 66 61 75 6c 74 20 hange.dX_default.and.dX_default.
1400 69 6e 20 63 6c 69 63 6b 5f 63 61 6c 69 62 2e 6d 20 28 45 78 74 72 61 63 74 20 67 72 69 64 20 63 in.click_calib.m.(Extract.grid.c
1420 6f 72 6e 65 72 73 29 2e 5c 6e 27 29 3b 0a 66 70 72 69 6e 74 66 28 31 2c 27 20 20 20 20 20 20 20 orners).\n');.fprintf(1,'.......
1440 20 20 54 68 65 73 65 20 61 72 65 20 74 68 65 20 64 65 66 61 75 6c 74 20 68 6f 72 2e 20 61 6e 64 ..These.are.the.default.hor..and
1460 20 76 65 72 74 2e 20 73 69 7a 65 73 20 6f 66 20 65 61 63 68 20 73 71 75 61 72 65 20 6f 66 20 74 .vert..sizes.of.each.square.of.t
1480 68 65 20 63 61 6c 69 62 72 61 74 69 6f 6e 20 70 61 74 74 65 72 6e 2e 5c 6e 27 29 3b 0a 66 70 72 he.calibration.pattern.\n');.fpr
14a0 69 6e 74 66 28 31 2c 27 4e 4f 54 45 3a 20 20 20 20 77 69 6e 74 78 20 61 6e 64 20 77 69 6e 74 79 intf(1,'NOTE:....wintx.and.winty
14c0 20 61 72 65 20 74 77 6f 20 70 61 72 61 6d 65 74 65 72 73 20 64 65 66 69 6e 69 6e 67 20 74 68 65 .are.two.parameters.defining.the
14e0 20 73 69 7a 65 20 6f 66 20 74 68 65 20 69 6d 61 67 65 20 6e 65 69 67 68 62 6f 72 68 6f 6f 64 20 .size.of.the.image.neighborhood.
1500 66 6f 72 20 73 75 62 70 69 78 65 6c 2e 5c 6e 27 29 3b 0a 66 70 72 69 6e 74 66 28 31 2c 27 20 20 for.subpixel.\n');.fprintf(1,'..
1520 20 20 20 20 20 20 20 63 6f 72 6e 65 72 20 64 65 74 65 63 74 69 6f 6e 2e 20 54 68 65 20 65 66 66 .......corner.detection..The.eff
1540 65 63 74 69 76 65 20 77 69 6e 64 6f 77 20 73 69 7a 65 20 69 73 20 28 32 2a 77 69 6e 74 78 2b 31 ective.window.size.is.(2*wintx+1
1560 29 78 28 32 2a 77 69 6e 74 79 2b 31 29 20 70 69 78 65 6c 73 2e 5c 6e 27 29 3b 0a 0a 0a 67 6c 6f )x(2*winty+1).pixels.\n');...glo
1580 62 61 6c 20 58 5f 31 20 78 5f 31 20 58 5f 32 20 78 5f 32 20 58 5f 33 20 78 5f 33 20 58 5f 34 20 bal.X_1.x_1.X_2.x_2.X_3.x_3.X_4.
15a0 78 5f 34 20 58 5f 35 20 78 5f 35 20 58 5f 36 20 78 5f 36 20 58 5f 37 20 78 5f 37 20 58 5f 38 20 x_4.X_5.x_5.X_6.x_6.X_7.x_7.X_8.
15c0 78 5f 38 20 58 5f 39 20 78 5f 39 20 58 5f 31 30 20 78 5f 31 30 20 58 5f 31 31 20 78 5f 31 31 20 x_8.X_9.x_9.X_10.x_10.X_11.x_11.
15e0 58 5f 31 32 20 78 5f 31 32 20 58 5f 31 33 20 78 5f 31 33 20 58 5f 31 34 20 78 5f 31 34 20 58 5f X_12.x_12.X_13.x_13.X_14.x_14.X_
1600 31 35 20 78 5f 31 35 20 58 5f 31 36 20 78 5f 31 36 20 58 5f 31 37 20 78 5f 31 37 20 58 5f 31 38 15.x_15.X_16.x_16.X_17.x_17.X_18
1620 20 78 5f 31 38 20 58 5f 31 39 20 78 5f 31 39 20 58 5f 32 30 20 78 5f 32 30 20 58 5f 32 31 20 78 .x_18.X_19.x_19.X_20.x_20.X_21.x
1640 5f 32 31 20 58 5f 32 32 20 78 5f 32 32 20 58 5f 32 33 20 78 5f 32 33 20 58 5f 32 34 20 78 5f 32 _21.X_22.x_22.X_23.x_23.X_24.x_2
1660 34 20 58 5f 32 35 20 78 5f 32 35 20 58 5f 32 36 20 78 5f 32 36 20 58 5f 32 37 20 78 5f 32 37 20 4.X_25.x_25.X_26.x_26.X_27.x_27.
1680 58 5f 32 38 20 78 5f 32 38 20 58 5f 32 39 20 78 5f 32 39 20 58 5f 33 30 20 78 5f 33 30 20 0a 0a X_28.x_28.X_29.x_29.X_30.x_30...
16a0 66 69 67 75 72 65 28 31 29 3b 20 63 6c 66 3b 0a 0a 70 6f 73 20 3d 20 67 65 74 28 31 2c 27 50 6f figure(1);.clf;..pos.=.get(1,'Po
16c0 73 69 74 69 6f 6e 27 29 3b 0a 0a 73 65 74 28 31 2c 27 55 6e 69 74 73 27 2c 27 70 6f 69 6e 74 73 sition');..set(1,'Units','points
16e0 27 2c 20 2e 2e 2e 0a 09 27 42 61 63 6b 69 6e 67 53 74 6f 72 65 27 2c 27 6f 66 66 27 2c 20 2e 2e ',......'BackingStore','off',...
1700 2e 0a 09 27 43 6f 6c 6f 72 27 2c 5b 30 2e 38 20 30 2e 38 20 30 2e 38 5d 2c 20 2e 2e 2e 0a 09 27 ...'Color',[0.8.0.8.0.8],......'
1720 4d 65 6e 75 42 61 72 27 2c 27 6e 6f 6e 65 27 2c 20 2e 2e 2e 0a 09 27 52 65 73 69 7a 65 27 2c 27 MenuBar','none',......'Resize','
1740 6f 66 66 27 2c 20 2e 2e 2e 0a 09 27 4e 61 6d 65 27 2c 27 43 61 6d 65 72 61 20 63 61 6c 69 62 72 off',......'Name','Camera.calibr
1760 61 74 69 6f 6e 20 74 6f 6f 6c 27 2c 20 2e 2e 2e 0a 27 50 6f 73 69 74 69 6f 6e 27 2c 5b 70 6f 73 ation.tool',.....'Position',[pos
1780 28 31 29 20 70 6f 73 28 32 29 20 33 31 32 20 20 35 39 5d 2c 20 2e 2e 2e 0a 27 4e 75 6d 62 65 72 (1).pos(2).312..59],.....'Number
17a0 54 69 74 6c 65 27 2c 27 6f 66 66 27 29 3b 0a 0a 75 69 63 6f 6e 74 72 6f 6c 28 27 50 61 72 65 6e Title','off');..uicontrol('Paren
17c0 74 27 2c 31 2c 20 2e 2e 2e 0a 09 27 55 6e 69 74 73 27 2c 27 70 6f 69 6e 74 73 27 2c 20 2e 2e 2e t',1,......'Units','points',....
17e0 0a 09 27 43 61 6c 6c 62 61 63 6b 27 2c 27 64 61 74 61 5f 63 61 6c 69 62 3b 27 2c 20 2e 2e 2e 0a ..'Callback','data_calib;',.....
1800 09 27 4c 69 73 74 62 6f 78 54 6f 70 27 2c 30 2c 20 2e 2e 2e 0a 09 27 50 6f 73 69 74 69 6f 6e 27 .'ListboxTop',0,......'Position'
1820 2c 5b 32 2e 32 35 20 33 30 2e 35 20 20 37 35 20 20 20 32 37 5d 2c 20 2e 2e 2e 0a 09 27 53 74 72 ,[2.25.30.5..75...27],......'Str
1840 69 6e 67 27 2c 27 49 6d 61 67 65 20 6e 61 6d 65 73 27 2c 20 2e 2e 2e 0a 20 20 20 27 54 61 67 27 ing','Image.names',........'Tag'
1860 2c 27 50 75 73 68 62 75 74 74 6f 6e 31 27 29 3b 0a 0a 75 69 63 6f 6e 74 72 6f 6c 28 27 50 61 72 ,'Pushbutton1');..uicontrol('Par
1880 65 6e 74 27 2c 31 2c 20 2e 2e 2e 0a 09 27 55 6e 69 74 73 27 2c 27 70 6f 69 6e 74 73 27 2c 20 2e ent',1,......'Units','points',..
18a0 2e 2e 0a 09 27 43 61 6c 6c 62 61 63 6b 27 2c 27 69 6d 61 5f 72 65 61 64 5f 63 61 6c 69 62 3b 27 ....'Callback','ima_read_calib;'
18c0 2c 20 2e 2e 2e 0a 09 27 4c 69 73 74 62 6f 78 54 6f 70 27 2c 30 2c 20 2e 2e 2e 0a 09 27 50 6f 73 ,......'ListboxTop',0,......'Pos
18e0 69 74 69 6f 6e 27 2c 5b 37 39 2e 35 20 33 30 2e 35 20 37 35 20 32 37 5d 2c 20 2e 2e 2e 0a 09 27 ition',[79.5.30.5.75.27],......'
1900 53 74 72 69 6e 67 27 2c 27 52 65 61 64 20 69 6d 61 67 65 73 27 2c 20 2e 2e 2e 0a 20 20 20 27 54 String','Read.images',........'T
1920 61 67 27 2c 27 50 75 73 68 62 75 74 74 6f 6e 31 27 29 3b 0a 0a 75 69 63 6f 6e 74 72 6f 6c 28 27 ag','Pushbutton1');..uicontrol('
1940 50 61 72 65 6e 74 27 2c 31 2c 20 2e 2e 2e 0a 09 27 55 6e 69 74 73 27 2c 27 70 6f 69 6e 74 73 27 Parent',1,......'Units','points'
1960 2c 20 2e 2e 2e 0a 09 27 43 61 6c 6c 62 61 63 6b 27 2c 27 63 6c 69 63 6b 5f 63 61 6c 69 62 3b 27 ,......'Callback','click_calib;'
1980 2c 20 2e 2e 2e 0a 09 27 4c 69 73 74 62 6f 78 54 6f 70 27 2c 30 2c 20 2e 2e 2e 0a 09 27 50 6f 73 ,......'ListboxTop',0,......'Pos
19a0 69 74 69 6f 6e 27 2c 5b 31 35 36 2e 37 35 20 33 30 2e 35 20 37 35 20 32 37 5d 2c 20 2e 2e 2e 0a ition',[156.75.30.5.75.27],.....
19c0 09 27 53 74 72 69 6e 67 27 2c 27 45 78 74 72 61 63 74 20 67 72 69 64 20 63 6f 72 6e 65 72 73 27 .'String','Extract.grid.corners'
19e0 2c 20 2e 2e 2e 0a 20 20 20 27 54 61 67 27 2c 27 50 75 73 68 62 75 74 74 6f 6e 31 27 29 3b 0a 0a ,........'Tag','Pushbutton1');..
1a00 75 69 63 6f 6e 74 72 6f 6c 28 27 50 61 72 65 6e 74 27 2c 31 2c 20 2e 2e 2e 0a 09 27 55 6e 69 74 uicontrol('Parent',1,......'Unit
1a20 73 27 2c 27 70 6f 69 6e 74 73 27 2c 20 2e 2e 2e 0a 09 27 43 61 6c 6c 62 61 63 6b 27 2c 27 67 6f s','points',......'Callback','go
1a40 5f 63 61 6c 69 62 5f 6f 70 74 69 6d 3b 27 2c 20 2e 2e 2e 0a 09 27 4c 69 73 74 62 6f 78 54 6f 70 _calib_optim;',......'ListboxTop
1a60 27 2c 30 2c 20 2e 2e 2e 0a 09 27 50 6f 73 69 74 69 6f 6e 27 2c 5b 32 33 34 20 33 30 2e 35 20 37 ',0,......'Position',[234.30.5.7
1a80 35 20 32 37 5d 2c 20 2e 2e 2e 0a 09 27 53 74 72 69 6e 67 27 2c 27 52 75 6e 20 63 61 6c 69 62 72 5.27],......'String','Run.calibr
1aa0 61 74 69 6f 6e 27 2c 20 2e 2e 2e 0a 20 20 20 27 54 61 67 27 2c 27 50 75 73 68 62 75 74 74 6f 6e ation',........'Tag','Pushbutton
1ac0 31 27 29 3b 0a 0a 75 69 63 6f 6e 74 72 6f 6c 28 27 50 61 72 65 6e 74 27 2c 31 2c 20 2e 2e 2e 0a 1');..uicontrol('Parent',1,.....
1ae0 09 27 55 6e 69 74 73 27 2c 27 70 6f 69 6e 74 73 27 2c 20 2e 2e 2e 0a 09 27 43 61 6c 6c 62 61 63 .'Units','points',......'Callbac
1b00 6b 27 2c 27 67 72 61 70 68 6f 75 74 5f 63 61 6c 69 62 3b 27 2c 20 2e 2e 2e 0a 09 27 4c 69 73 74 k','graphout_calib;',......'List
1b20 62 6f 78 54 6f 70 27 2c 30 2c 20 2e 2e 2e 0a 09 27 50 6f 73 69 74 69 6f 6e 27 2c 5b 32 2e 32 35 boxTop',0,......'Position',[2.25
1b40 20 31 2e 35 20 37 35 20 32 37 5d 2c 20 2e 2e 2e 0a 09 27 53 74 72 69 6e 67 27 2c 27 47 72 61 70 .1.5.75.27],......'String','Grap
1b60 68 69 63 20 6f 75 74 27 2c 20 2e 2e 2e 0a 20 20 20 27 54 61 67 27 2c 27 50 75 73 68 62 75 74 74 hic.out',........'Tag','Pushbutt
1b80 6f 6e 31 27 29 3b 0a 0a 75 69 63 6f 6e 74 72 6f 6c 28 27 50 61 72 65 6e 74 27 2c 31 2c 20 2e 2e on1');..uicontrol('Parent',1,...
1ba0 2e 0a 09 27 55 6e 69 74 73 27 2c 27 70 6f 69 6e 74 73 27 2c 20 2e 2e 2e 0a 09 27 43 61 6c 6c 62 ...'Units','points',......'Callb
1bc0 61 63 6b 27 2c 27 73 65 6c 65 63 74 5f 73 6f 6c 5f 77 69 74 68 5f 63 65 6e 74 65 72 3b 27 2c 20 ack','select_sol_with_center;',.
1be0 2e 2e 2e 0a 09 27 4c 69 73 74 62 6f 78 54 6f 70 27 2c 30 2c 20 2e 2e 2e 0a 09 27 50 6f 73 69 74 .....'ListboxTop',0,......'Posit
1c00 69 6f 6e 27 2c 5b 37 39 2e 35 20 31 2e 35 20 37 35 20 32 37 5d 2c 20 2e 2e 2e 0a 09 27 53 74 72 ion',[79.5.1.5.75.27],......'Str
1c20 69 6e 67 27 2c 27 73 6f 6c 2e 20 77 69 74 68 20 63 65 6e 74 65 72 27 2c 20 2e 2e 2e 0a 20 20 20 ing','sol..with.center',........
1c40 27 54 61 67 27 2c 27 50 75 73 68 62 75 74 74 6f 6e 31 27 29 3b 0a 0a 75 69 63 6f 6e 74 72 6f 6c 'Tag','Pushbutton1');..uicontrol
1c60 28 27 50 61 72 65 6e 74 27 2c 31 2c 20 2e 2e 2e 0a 09 27 55 6e 69 74 73 27 2c 27 70 6f 69 6e 74 ('Parent',1,......'Units','point
1c80 73 27 2c 20 2e 2e 2e 0a 09 27 43 61 6c 6c 62 61 63 6b 27 2c 27 73 65 6c 65 63 74 5f 73 6f 6c 5f s',......'Callback','select_sol_
1ca0 6e 6f 5f 63 65 6e 74 65 72 3b 27 2c 20 2e 2e 2e 0a 09 27 4c 69 73 74 62 6f 78 54 6f 70 27 2c 30 no_center;',......'ListboxTop',0
1cc0 2c 20 2e 2e 2e 0a 09 27 50 6f 73 69 74 69 6f 6e 27 2c 5b 31 35 36 2e 37 35 20 31 2e 35 20 37 35 ,......'Position',[156.75.1.5.75
1ce0 20 32 37 5d 2c 20 2e 2e 2e 0a 09 27 53 74 72 69 6e 67 27 2c 27 73 6f 6c 2e 20 77 69 74 68 6f 75 .27],......'String','sol..withou
1d00 74 20 63 65 6e 74 65 72 27 2c 20 2e 2e 2e 0a 20 20 20 27 54 61 67 27 2c 27 50 75 73 68 62 75 74 t.center',........'Tag','Pushbut
1d20 74 6f 6e 31 27 29 3b 0a 0a 75 69 63 6f 6e 74 72 6f 6c 28 27 50 61 72 65 6e 74 27 2c 31 2c 20 2e ton1');..uicontrol('Parent',1,..
1d40 2e 2e 0a 09 27 55 6e 69 74 73 27 2c 27 70 6f 69 6e 74 73 27 2c 20 2e 2e 2e 0a 09 27 43 61 6c 6c ....'Units','points',......'Call
1d60 62 61 63 6b 27 2c 27 63 6c 6f 73 65 28 31 29 3b 27 2c 20 2e 2e 2e 0a 09 27 4c 69 73 74 62 6f 78 back','close(1);',......'Listbox
1d80 54 6f 70 27 2c 30 2c 20 2e 2e 2e 0a 09 27 50 6f 73 69 74 69 6f 6e 27 2c 5b 32 33 34 20 31 2e 35 Top',0,......'Position',[234.1.5
1da0 20 37 35 20 32 37 5d 2c 20 2e 2e 2e 0a 09 27 53 74 72 69 6e 67 27 2c 27 45 78 69 74 27 2c 20 2e .75.27],......'String','Exit',..
1dc0 2e 2e 0a 20 20 20 27 54 61 67 27 2c 27 50 75 73 68 62 75 74 74 6f 6e 31 27 29 3b 00 00 00 00 00 ......'Tag','Pushbutton1');.....
1de0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1e00 54 4f 4f 4c 42 4f 58 5f 63 61 6c 69 62 2f 63 6c 69 63 6b 5f 63 61 6c 69 62 2e 6d 00 00 00 00 00 TOOLBOX_calib/click_calib.m.....
1e20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1e40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1e60 00 00 00 00 20 20 20 36 34 30 20 00 20 20 20 34 37 31 20 00 20 20 20 34 35 34 20 00 20 20 20 20 .......640.....471.....454......
1e80 20 20 20 33 31 30 30 20 20 36 37 36 33 30 37 30 32 31 35 20 20 31 31 30 30 37 00 20 00 00 00 00 ...3100..6763070215..11007......
1ea0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1ec0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1ee0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1f00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1f20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1f40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1f60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1f80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1fa0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1fc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
1fe0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................................
2000 0a 69 66 20 7e 65 78 69 73 74 28 27 49 5f 31 27 29 2c 0a 20 20 20 69 6d 61 5f 72 65 61 64 5f 63 .if.~exist('I_1'),....ima_read_c
2020 61 6c 69 62 3b 0a 65 6e 64 3b 0a 0a 25 77 69 6e 74 78 20 3d 20 31 30 3b 20 25 20 6e 65 69 67 62 alib;.end;..%wintx.=.10;.%.neigb
2040 6f 72 68 6f 6f 64 20 6f 66 20 69 6e 74 65 67 72 61 74 69 6f 6e 20 66 6f 72 0a 25 77 69 6e 74 79 orhood.of.integration.for.%winty
2060 20 3d 20 31 30 3b 20 25 20 74 68 65 20 63 6f 72 6e 65 72 20 66 69 6e 64 65 72 0a 0a 66 70 72 69 .=.10;.%.the.corner.finder..fpri
2080 6e 74 66 28 31 2c 27 5c 6e 45 78 74 72 61 63 74 69 6f 6e 20 6f 66 20 74 68 65 20 67 72 69 64 20 ntf(1,'\nExtraction.of.the.grid.
20a0 63 6f 72 6e 65 72 73 20 6f 6e 20 74 68 65 20 69 6d 61 67 65 73 5c 6e 27 29 3b 0a 0a 64 69 73 70 corners.on.the.images\n');..disp
20c0 28 27 57 69 6e 64 6f 77 20 73 69 7a 65 20 66 6f 72 20 63 6f 72 6e 65 72 20 66 69 6e 64 65 72 20 ('Window.size.for.corner.finder.
20e0 28 77 69 6e 74 78 20 61 6e 64 20 77 69 6e 74 79 29 3a 27 29 3b 0a 77 69 6e 74 78 20 3d 20 69 6e (wintx.and.winty):');.wintx.=.in
2100 70 75 74 28 27 77 69 6e 74 78 20 28 5b 5d 20 3d 20 35 29 20 3d 20 27 29 3b 0a 69 66 20 69 73 65 put('wintx.([].=.5).=.');.if.ise
2120 6d 70 74 79 28 77 69 6e 74 78 29 2c 20 77 69 6e 74 78 20 3d 20 35 3b 20 65 6e 64 3b 0a 77 69 6e mpty(wintx),.wintx.=.5;.end;.win
2140 74 78 20 3d 20 72 6f 75 6e 64 28 77 69 6e 74 78 29 3b 0a 77 69 6e 74 79 20 3d 20 69 6e 70 75 74 tx.=.round(wintx);.winty.=.input
2160 28 27 77 69 6e 74 79 20 28 5b 5d 20 3d 20 35 29 20 3d 20 27 29 3b 0a 69 66 20 69 73 65 6d 70 74 ('winty.([].=.5).=.');.if.isempt
2180 79 28 77 69 6e 74 79 29 2c 20 77 69 6e 74 79 20 3d 20 35 3b 20 65 6e 64 3b 0a 77 69 6e 74 79 20 y(winty),.winty.=.5;.end;.winty.
21a0 3d 20 72 6f 75 6e 64 28 77 69 6e 74 79 29 3b 0a 0a 0a 66 70 72 69 6e 74 66 28 31 2c 27 57 69 6e =.round(winty);...fprintf(1,'Win
21c0 64 6f 77 20 73 69 7a 65 20 3d 20 25 64 78 25 64 5c 6e 27 2c 32 2a 77 69 6e 74 78 2b 31 2c 32 2a dow.size.=.%dx%d\n',2*wintx+1,2*
21e0 77 69 6e 74 79 2b 31 29 3b 0a 0a 0a 64 69 73 70 28 27 57 41 52 4e 4e 47 21 21 21 20 44 6f 20 6e winty+1);...disp('WARNNG!!!.Do.n
2200 6f 74 20 66 6f 72 67 65 74 20 74 6f 20 63 68 61 6e 67 65 20 64 58 5f 64 65 66 61 75 6c 74 20 61 ot.forget.to.change.dX_default.a
2220 6e 64 20 64 59 5f 64 65 66 61 75 6c 74 20 69 6e 20 63 6c 69 63 6b 5f 63 61 6c 69 62 2e 6d 21 21 nd.dY_default.in.click_calib.m!!
2240 21 27 29 0a 0a 0a 25 20 44 65 66 61 75 6c 74 20 73 69 7a 65 20 6f 66 20 74 68 65 20 70 61 74 74 !')...%.Default.size.of.the.patt
2260 65 72 6e 20 73 71 75 61 72 65 73 3b 0a 0a 25 20 53 65 74 75 70 20 6f 66 20 4a 59 20 28 6f 6c 64 ern.squares;..%.Setup.of.JY.(old
2280 20 61 74 20 43 61 6c 74 65 63 68 29 0a 64 58 5f 64 65 66 61 75 6c 74 20 3d 20 32 31 2e 39 32 35 .at.Caltech).dX_default.=.21.925
22a0 30 2f 31 31 3b 0a 64 59 5f 64 65 66 61 75 6c 74 20 3d 20 31 38 2e 31 32 35 30 2f 39 3b 0a 0a 25 0/11;.dY_default.=.18.1250/9;..%
22c0 20 53 65 74 75 70 20 6f 66 20 4a 59 20 28 6e 65 77 20 61 74 20 49 6e 74 65 6c 29 0a 64 58 5f 64 .Setup.of.JY.(new.at.Intel).dX_d
22e0 65 66 61 75 6c 74 20 3d 20 31 2e 39 37 35 30 3b 0a 64 59 5f 64 65 66 61 75 6c 74 20 3d 20 31 2e efault.=.1.9750;.dY_default.=.1.
2300 39 38 36 35 3b 0a 0a 25 20 53 65 74 75 70 20 6f 66 20 47 65 72 6d 61 6e 0a 64 58 5f 64 65 66 61 9865;..%.Setup.of.German.dX_defa
2320 75 6c 74 20 3d 20 31 30 2e 31 36 3b 0a 64 59 5f 64 65 66 61 75 6c 74 20 3d 20 31 30 2e 31 36 3b ult.=.10.16;.dY_default.=.10.16;
2340 0a 0a 25 20 53 65 74 75 70 20 6f 66 20 4a 59 20 28 6e 65 77 20 61 74 20 49 6e 74 65 6c 29 0a 64 ..%.Setup.of.JY.(new.at.Intel).d
2360 58 5f 64 65 66 61 75 6c 74 20 3d 20 31 2e 39 37 35 30 2a 32 2e 35 34 3b 0a 64 59 5f 64 65 66 61 X_default.=.1.9750*2.54;.dY_defa
2380 75 6c 74 20 3d 20 31 2e 39 38 36 35 2a 32 2e 35 3