diff --git a/testdata/cv/cameracalibration/chromatic_aberration/ca_photo.png b/testdata/cv/cameracalibration/chromatic_aberration/ca_photo.png new file mode 100644 index 000000000..cf2d3c4e6 Binary files /dev/null and b/testdata/cv/cameracalibration/chromatic_aberration/ca_photo.png differ diff --git a/testdata/cv/cameracalibration/chromatic_aberration/ca_photo_calib.yaml b/testdata/cv/cameracalibration/chromatic_aberration/ca_photo_calib.yaml new file mode 100644 index 000000000..bd8024731 --- /dev/null +++ b/testdata/cv/cameracalibration/chromatic_aberration/ca_photo_calib.yaml @@ -0,0 +1,86 @@ +%YAML 1.2 +--- +blue_channel: + coeffs_x: [0.13935644101142775, -0.28884017435515447, 2.447186946150032, 0.5953110456465923, + 0.775279164474149, 1.0695513486861479, 2.401877164507783, -14.563779829977316, + -0.8572912813831761, -33.24790191269452, -9.886114119286384, 0.941778123538595, + -6.142417430669413, -7.160450935118092, 15.551308630704124, -10.71729659931222, + 47.93905258013587, -11.517513274868794, 93.06145477096446, 19.597414016242187, + 105.16857146637153, 26.634632108488265, 0.8615171910931442, 18.660104751261255, + 3.8227458000183008, -4.635288238490891, 19.922266006124563, -46.40857696345061, + 25.522891996593035, -81.07666015444524, 17.883756637322865, -144.31390380699364, + 10.47168254841605, -194.00218200484275, -61.38679504315077, -160.58702086912896, + -28.734735487260977, -8.090860366682929, -16.122245788405593, 8.77072906486847, + -18.272144317495673, -14.043024063019251, 27.666774749547773, -26.697591781364633, + 45.062259673025366, -28.86816215374432, 64.08676910299829, -0.7626705767323348, + 109.58748626631206, -38.20361709572541, 165.07521057041137, 11.176840782108295, + 165.71749877835697, 79.2493209832975, 115.2528076151076, 11.187163352494583, 6.3015270232392915, + 4.57741641998291, -8.559777259770614, 7.917714595774475, 6.944075584411616, 3.681498527570273, + 2.95344424253155, -19.41772460930088, 14.845870017929967, -13.399471282779965, + 12.147389411491828, -19.22229385353514, -8.149440765341614, -32.94677734358983, + 26.104450225725934, -48.62528228743322, -5.069967269897461, -64.9179382322322, + -0.37113302962078604, -49.26963043196662, -39.8101196287295, -31.268487929955192] + coeffs_y: [-0.2545160938036028, 2.5201618661898997, 0.5819218751570039, 1.4882785078639882, + -3.206770658143963, -2.533838271652925, -10.491499899125953, -2.5368862150838876, + -7.992882728116486, 4.475888728595252, -11.15622711045465, 4.7037868497716016, + 0.02487282268702984, 19.636091231574987, 24.252387998609034, 21.09939765726295, + 18.2502613061318, 56.120223997687006, 2.840614318847643, -19.34165763807026, -52.79891204543221, + 33.17965316509304, 1.981958746829409, -0.4579220116138458, -45.32888793878282, + -17.2443389890167, -30.56501579230778, -63.835384366311175, -18.4378566729714, + -58.46940612663054, -101.93977355813178, 2.954612255042311, -41.41535949665715, + 11.624979972715549, 80.5443191517857, 152.23027038110217, -40.138076779947625, + -4.218929290695676, 6.418069362565631, 21.2245082853341, -1.9729264974594116, + 59.92322540240771, 37.28255462618604, 17.616865157908585, 68.64218902428073, 3.793371438811465, + 73.93068694951987, 70.77822875908781, -9.659353256159363, 91.95240783637145, -0.23619845509529114, + -35.42524719219773, -33.66784286480024, -91.14437103203232, -176.14137267748464, + 16.911691664930757, 0.504630446434021, -4.889991283384045, 4.1438012122722, 3.9295289516448877, + -27.917631149177428, -5.216914176910264, -16.298511505068078, -19.409738540567027, + -3.2456445693477014, -26.550878524406844, 2.0398979186227773, -32.11587905846444, + -18.114604949827577, 5.266912460296786, -38.099933624116474, -1.2935901880264282, + -10.784534454316047, 5.310288906097405, 29.568288803014052, 18.843971252382, 34.32045745834233, + 72.54804992594664] + rms: 0.1303802087598861 +red_channel: + coeffs_x: [0.05607910454273224, -0.18561041355133057, -1.0962991567458709, 0.45322874907524785, + -0.6679724230249312, 3.464437894627817, 2.927685210924659, -7.023755837131075, + -0.5750972628593428, -6.210218944457837, -2.865098346710783, 0.8637685104833928, + -4.713438274402313, 3.5854704470446705, 1.3839422794374263, -13.783982377443515, + 15.021006778437693, -3.811794820136586, 32.78089159796152, 3.4901507919157684, + -40.98352318364381, 7.040201413565787, 0.22717486321926117, -0.40318744251527366, + -2.558238174276025, 13.007586427432312, -6.749622993819211, -22.12722204865869, + 28.314234555440468, -16.716279821933202, 16.680796950821918, -30.59848423815183, + -8.011585314551452, -56.090966774652436, -3.9714041781537075, 198.97712365114452, + -8.442332883508762, -0.6000416203962659, 2.0932640370066555, -1.8774372461201068, + -2.9050392373547353, 3.1810741424560542, -12.606089518058521, 6.107713212572541, + 31.150777735952147, -26.874240113730806, 7.334116196453096, -18.070797040657986, + 26.31710043106931, -7.156135590790537, 17.336285564843298, 20.97736432959536, + 42.78688170714176, -4.782756838245247, -275.461098225207, 3.700439457809531, 0.037686046212911606, + 0.36465677618980324, 1.083510160446166, -5.156109521572759, 1.9689940327729347, + 7.902256166319869, -2.239342976688486, 1.4752585640524916, -2.346142826249328, + -13.684868609479105, 9.627892426911364, -0.08295536041259766, 6.6303620622832025, + -10.981674587217627, 4.579927735824927, -1.372216820716858, -0.12185025960206985, + -8.015493154501034, -11.857020002001256, -10.114484430061434, 6.576997910912186, + 124.7319798015638] + coeffs_y: [-0.029564078897237778, -0.41700728949309956, -0.28165116502107995, -0.0004210117622278631, + 1.536733399561371, -0.850249729865203, -1.3295068623476385, -0.45667205743529127, + -9.708478546907267, 8.040606210598348, -4.474323633776635, -1.2463519910359901, + -1.3161401676510551, -7.24157677606353, 8.791366959891084, -6.776780293020045, + 2.954155797332775, 10.469498858482226, 8.47711086620522, 38.86825676046851, -62.193948525538495, + 14.335648772635333, -3.1287437198427424, 6.336452775165414, 13.072334182519693, + -1.351013622454471, 12.602002679404269, -28.995579630102977, 22.028584988866367, + -10.845630922183643, 8.052840979881436, -10.73756186749202, -24.799935573085627, + -14.944253241015916, -82.5998878769804, 175.68475753763758, -16.7895310372843, + 6.286345151862874, -7.71688272372048, -6.534033190318645, -4.346992725252027, + -25.862266501823196, 6.316575123757234, -2.7707970227283396, 37.10928568948449, + -23.29117312495248, 16.53639137107842, -16.190401345066874, -2.949217319488525, + -6.276680131181119, 26.95655479976261, 34.95166966823088, -0.7534130886567728, + 84.30803773846587, -206.87874444610657, 6.725133693921618, -3.302152183499853, + 3.0085820712528513, 1.1516414880752563, 2.4848204333984425, 6.67967096961666, + 0.4416534006595603, 13.632086161882818, -4.044101981880807, -4.522432522365388, + -16.301482612562204, 8.787497782719722, -8.114004068096529, 7.054369891533079, + 4.0550744822965825, 2.367027908254669, -6.048928526998027, 5.563650894053929, + -10.687107702054425, -21.277489937170415, 7.075816838045468, -31.740892778829235, + 86.77721136234724] + rms: 0.38510325492893555 +image_width: 6720 +image_height: 4480 diff --git a/testdata/cv/cameracalibration/chromatic_aberration/calib_result_tablet.yaml b/testdata/cv/cameracalibration/chromatic_aberration/calib_result_tablet.yaml new file mode 100644 index 000000000..a9fad13af --- /dev/null +++ b/testdata/cv/cameracalibration/chromatic_aberration/calib_result_tablet.yaml @@ -0,0 +1,88 @@ +%YAML 1.2 +--- +blue_channel: + coeffs_x: [0.001874943213353336, 0.011450024109775397, -0.10342231372553584, 0.2196539926194916, + -0.420642561944804, -0.3663146079107356, -0.3572077684849427, -3.635530710181386, + 0.17540986830162192, -7.525183218392059, -1.7433620584625367, 4.197349904003764, + 0.5277240760996731, -0.05194685889893062, 4.882411548701872, 4.457769092612671, + 5.933364917820408, -2.9530691598439116, 14.796158751193799, -3.295017075893664, + 24.09160041809082, 6.399707256678607, -14.561919304055719, -0.691358740488711, + 0.43237346947878225, -2.9704964038512647, 5.59660248304203, -14.767439788071382, + -16.069764979731705, -2.5523673883086824, 5.786974590713087, -13.106674235499398, + 10.083803174784627, -10.300640106201172, 12.39644808272895, -39.20851515018715, + -9.818475709513933, 23.95440859475033, -1.07256446732061, -1.5892015714980368, + 2.9545512200395807, -5.662025038322252, 5.847059250140909, -10.105185445866688, + 17.859245340765156, 22.826116586844034, -2.353232823395043, -2.6582634827829867, + 7.04322381325773, -11.616234708620652, 4.700730800628662, -11.521014214930378, + -6.464402657247161, -17.61142547234053, 39.37977220179943, 5.275221883646436, + -13.364072721276221, 2.037924420611019, -3.1153561556907983, -3.2584848488654186, + 8.915659803252753, 0.5188622480237889, 0.3295015376001639, -4.408338551871203, + 5.4543051949882, -7.584331480129806, -11.341469796417412, 2.3705842682868523, + -0.0332592442413027, -2.1804419082599598, 1.0530884160461893, -0.9991351976605977, + 10.168556256933009, 1.0017242639417996, 1.6942841871604037, 6.726958749747035, + 8.93585201030256, -17.02582929435729] + coeffs_y: [0.013619546604906536, -0.10250568280908366, -0.04303953742097102, -0.08388842367692212, + -0.02606666035861529, -0.3684834182630789, -2.8766162697653472, 0.8044148384146, + -4.830223506292736, 1.5009149423167327, -2.672255659096502, 0.2821037769317627, + 1.9356760364353351, 1.5221100781801709, 1.7896253171832026, 6.995634974147331, + -7.118566023143829, 11.849291839638967, -4.42003644296505, 13.1455125807613, -8.995178174612846, + 12.6744488669463, -0.09312490963811952, 0.9956046757517589, -0.6147230088259323, + -1.5146996460228563, -6.230297584108116, -4.149888501730608, -14.408403430719332, + 23.74566854474481, -6.82476711378423, 5.348167208977493, -14.020362854003906, + 15.633642130092921, -15.836074829210919, 20.505670598917227, -18.61949163427722, + -1.8283564352297503, -8.487707245310975, 2.3930439536583448, 0.9396935465906887, + 0.1911831245350524, -3.0467044816074447, 9.76801586151123, 5.022748947339944, + 18.385396957792018, -34.78482789812509, 4.476979701158289, 0.06430717126621742, + -0.03402009648207379, -12.181780945568478, 6.898930073410146, -19.630617199242447, + 12.546930306296508, -20.119974086174167, 9.12919616719373, 2.039115713934026, + 6.913659862025497, -2.3573892389909097, -0.5513024935540661, 0.44734466075897217, + 1.0437745299471144, -0.9249004461705415, 2.931605860917604, -4.949141979768664, + -2.38036465151047, -8.760169982309609, 18.343580649220115, -4.947791571368057, + -2.8835477569028054, 5.409080956083502, 4.646211989157765, -1.8495879270001716, + 4.58443250636949, -0.5482450859672195, 9.159998859858044, -5.025021077464594, + 7.0704517826061775] + rms: 0.07073652344839963 +red_channel: + coeffs_x: [-0.021076383109391774, 0.010367349246565427, -1.301422666713775, 0.39696403117417645, + 0.4166220657292628, -0.32448620391246624, 0.014046576393089857, 4.175574287234175, + 0.3087207646357548, 7.141582157267204, -3.2395997562128747, -1.3302873340832677, + -0.8493230894234144, -3.6106948719392222, 2.5383035766650703, 0.19024368939928593, + -9.817671064192812, -0.9989356400263952, -21.864556991086268, -1.310101420355347, + -20.50613586600285, 10.75024138158159, 0.4060443045465585, 5.066227487763223, + 7.041130542755127, 0.9032992102608743, 8.499613761901855, -7.639512064007718, + -1.5208110724074009, 15.37154349938465, 2.4753578138244294, 27.845566054488135, + 4.064146958217109, 39.71133824043076, 2.813312508810229, 25.027868303364603, -15.710617969934411, + 3.2737813249641623, -8.375062794919375, -5.514739528147992, 0.6912562297172649, + -12.574329361638394, -4.125358170738101, -6.491456985123678, 9.945988667565953, + 3.5126049425889305, -15.767442224530937, -4.549415046973943, -19.247693807332947, + -3.300298463206253, -26.32826593461898, -4.465147040905348, -37.54652773631175, + -3.1072793040052122, -12.747791271127005, 8.377787607120009, -3.5054197222565855, + 3.5053403207928326, 2.539402723312378, 2.779311880359544, 3.6599888836541896, + -4.0489321351299985, 6.551821235353311, 4.780202817774406, 1.0231349538562016, + -4.810235960906602, -2.5040860553211335, 7.6314654463507825, 4.19394454335019, + 2.2693360570062433, -4.0617208496690775, 14.654609858280613, 8.636386847230801, + 2.9125882569267225, -1.8884849762177605, 17.03795633035748, 1.6370539535609576, + 1.121287003567996] + coeffs_y: [-0.0442605011335375, -0.8777240216544895, -0.06561436430407513, 0.9233761021842505, + 0.07095020329093936, 0.26716328646390064, 2.424313838945175, 0.9481367383764379, + 4.690444391799549, 1.3962881283120432, -5.866950477723579, -1.7346517426477512, + -2.6571953296661377, 0.3298496475660119, -0.5018925194433715, 0.3266857658792214, + -5.13158157818178, -16.169971404659854, -4.304068061133001, -13.985547203791901, + -7.411128955707238, 16.192481994628906, 7.662938924974494, 7.357868245885034, + 1.2714792944925521, 4.7327146368375255, -2.444410742122574, 0.7155583500862122, + -16.05218118826155, 15.913506352767977, 19.674936543484943, 3.5987865504090566, + 28.487529673891924, 12.074026146146656, 19.558713795490785, 16.18668556703301, + -20.260429394325506, -13.882326261951144, -9.499248456932715, -1.3199472427368164, + -5.1151523842843565, -1.4660704135894775, -5.415571690604764, 4.6762576587646825, + -0.9074215887699576, 27.883285485173207, -21.740392728300947, -8.254445665204493, + -1.7000636784538221, -22.99040413221155, -9.290072455582923, -23.370641780946045, + -11.014470071537747, -13.690323941627003, -15.996159554288791, 9.292456614536013, + 8.772855689643247, 4.752491010706172, -0.8372781838292873, 1.3991030365124177, + 2.541593767034028, 2.7397279491772997, -0.30106213556821637, 2.2573508941975073, + -2.665465088674141, 0.5188210722144251, -14.746234058941235, 9.83524516757459, + -0.1302098188357072, 4.865075926270341, 4.842196041890197, -4.243502637020442, + 9.879345881693215, 9.405286791842268, 7.26765676668188, 1.8513756130626555, 3.4348675391993413, + 5.9586830073033115] + rms: 0.0812277511528445 +image_width: 4224 +image_height: 3136 diff --git a/testdata/cv/cameracalibration/chromatic_aberration/chromatic_aberration_pattern_a3.png b/testdata/cv/cameracalibration/chromatic_aberration/chromatic_aberration_pattern_a3.png new file mode 100644 index 000000000..3e8764f33 Binary files /dev/null and b/testdata/cv/cameracalibration/chromatic_aberration/chromatic_aberration_pattern_a3.png differ diff --git a/testdata/cv/cameracalibration/chromatic_aberration/radial.yaml b/testdata/cv/cameracalibration/chromatic_aberration/radial.yaml new file mode 100644 index 000000000..63a19cca3 --- /dev/null +++ b/testdata/cv/cameracalibration/chromatic_aberration/radial.yaml @@ -0,0 +1,84 @@ +%YAML 1.2 +--- +blue_channel: + coeffs_x: [-0.0003704832342918962, -0.002387867035865788, -0.4013373483099152, 0.13549732913509763, + -0.09760343283414841, 0.06905318796634674, 0.26010434741842986, -57.28125760514774, + -0.36141900882034, -154.13330069252785, -2.6706020782415325, 1.4277278224012944, + -4.610037803110824, 4.974219325864192, -1.5367845302249792, -4.026978967397846, + 240.83071898654413, -1.0595514866418145, 1297.0189208946672, 8.428838730731549, + 2113.5559081620904, 16.73425483444847, -8.927031517539191, 55.41994857771557, + -40.06634902932382, 32.50350952173549, -81.00222778303939, 7.458432197350978, + 22.910167692318716, -575.8380126933068, 47.4871330258612, -6595.322265624311, + -7.264458654599339, -14614.776367186774, -79.46234893800901, -17797.999999986016, + -41.073535918079976, 24.584144592251988, -208.15695190425905, 110.80707550042108, + -175.14666748045005, 409.4376525878962, -48.46387863155761, 483.07626342773403, + -3.7062184801697895, -56.31511306712821, 407.3804626462871, -166.1075134277631, + 14631.168945312389, -492.10064697267046, 52308.96484374995, 220.3960571289417, + 71282.58593749991, 357.54479980466846, 72026.2343749975, 34.23215103130181, -23.97851943936889, + 247.6690216064617, -104.35576629637079, 253.68943786622992, -517.0124511718566, + -62.038673400892044, -1208.4552001953011, -50.090744018850884, -932.7798461913983, + -32.70973968517723, 50.436168670457036, 198.88072204588192, 163.50410461422234, + -10656.55175781249, 869.5358276367198, -62911.8046875, 1425.0007324218618, -125632.0625, + -1058.9176025390539, -122546.71875, -574.6560668945341, -110058.99218749981] + coeffs_y: [0.00014942942174455141, -0.2787746779089679, -0.010910301469266415, 0.07444628328084946, + 0.16408602893352509, -0.06092175224181328, -54.507125642738664, 0.4455661703660859, + -72.96263883988541, 0.9063192005784447, -1.4592773929516216, -4.869520663881111, + -0.12190444022417068, -3.296188594267919, 1.5314974848734912, 384.64944440737423, + -4.193855285267102, 655.8001708944674, -27.934556960634254, 489.4724121075117, + -23.711460113375917, 9.671287535514788, 33.644947051530266, -2.9879720191695185, + 64.27846527100205, 3.692666291528175, 49.309314727889586, -25.760881423691757, + -1754.1213377837523, 8.363238335108266, -2897.4072265611967, 269.4853210448878, + -5360.077148437233, 407.69491577147124, -1750.371826171688, 258.83117675758086, + -27.06374168393003, -73.35050964346475, 30.369832992499873, -412.3964843749882, + 41.1048965454282, -243.89414978026332, -35.7887916565721, -362.63510131834937, + 192.06202697753446, 3983.674072230178, 2.443359374095416, 5374.891601562235, -610.5456542968519, + 17076.251953124964, -3038.264160156246, 20422.53124999998, -2076.1999511718777, + 36.34697723382998, -1239.9927978515198, 26.749279022077438, 43.95978164705612, + -40.155925750435465, 609.3858642578205, -206.32501220700718, 908.0293579101535, + -69.22491455087686, 415.67373657228296, 108.75346374508719, 870.0625610351599, + -457.40090942383694, -3472.6176757765625, -10.307168960094142, -3707.8920898437254, + 342.05441284178, -12847.916992187498, 3995.686035156247, -43930.7109375, 8699.328125, + -21403.853515625, 3391.571044921873, 8220.598632812498, 2151.447265624994] + rms: 0.02621792005086666 +red_channel: + coeffs_x: [-0.002726474641497604, -0.006198919077797432, 0.8254254229823564, -0.09138899328252602, + 0.17542335391044617, 0.44556069110984303, 0.0862171519535725, 40.55149839990711, + 0.83284145489873, 120.09600061762697, 2.463563916253802, -1.7049199356702172, + -1.6833767895687184, -8.024211883610121, -14.79745960131898, -0.16858702898025513, + -22.858081817088937, -15.495417594948815, -508.6475219715465, -28.665666580135266, + -1281.480468731274, -16.142362592004368, 5.169410705546603, -49.708091735841194, + 60.89816284177005, 100.74209594725309, 105.49514007566513, 173.01492309521, -1.3525573023429647, + -526.8519897447483, 85.5914688110027, -649.6141357421403, 361.5422363281133, 4407.882812499841, + 332.3374023437218, 9241.362304682207, 40.576705931587554, -1.9954750533558097, + 261.3992004394263, -164.49366760255168, 148.2340545654404, -473.754425048831, + -775.6516723632768, -564.7250976562375, -856.0977172850562, 5.522111892612676, + 2137.501708983671, -176.96850585936264, 6373.208007812467, -1330.8830566406234, + 13305.691406249993, -2537.6386718749986, -22083.904296874978, -1564.405395507807, + -33560.84374999918, -35.161888122425374, -7.867008686049802, -326.0928344726568, + 153.05053710937628, -771.8801269531278, 537.1430664062467, -88.6890563964768, + 1220.1672363281243, 1730.716186523436, 1040.0650634765607, 1520.8964843749916, + -5.4659547805480475, -2497.481201171761, 130.4328765869128, -7099.641601562496, + 1348.1632080078125, -43075.6796875, 4797.123046874999, -30677.7734375, 5348.043457031249, + 42428.17578125, 2602.1948242187486, 47559.05078124995] + coeffs_y: [0.0012310431420164813, 0.4875303356730329, -0.016154533940343177, -0.14104983320445402, + 0.014288267120718956, -0.09956392677566338, 47.37997802163179, 1.0890115510955334, + 77.18330382050995, 0.9554807545100672, 1.385092970294011, 0.33967840552648576, + 12.051202773924059, 0.32598084024436813, 1.6783847838020258, -291.0810850840172, + -8.564951896514327, -737.2939453091464, -53.43052673324516, -707.4409790018826, + -16.59837722763292, -3.9233798965844935, 4.125063417705623, -99.71357727033043, + -73.97287750248732, -225.50474548334526, 22.89969635020557, -1.2065222262305706, + 1164.498779223229, 18.990823745670017, 3603.1918945300654, 360.2016601562276, + 7265.488281249733, 712.7692260741824, 4672.816406249629, 126.3776016234765, 1.935094475091683, + -28.121652603218305, 240.69090270996833, 251.10649108884357, 1337.5335693359298, + 774.5722045898415, 1359.6707763671789, -351.1211853027335, -80.85392761225376, + -2264.3742675536023, 10.657272338878974, -8364.306640624714, -910.3482055663969, + -21605.97070312497, -3229.536132812495, -35174.105468749985, -3602.4162597656223, + -16479.779296874953, -469.11737060545653, 3.113564490504098, 36.869373321424355, + -158.0991058349669, -169.76664733886955, -1825.2593994140668, -1658.0546875000007, + -4193.440917968749, -1812.5339355468768, -2514.01611328125, 1083.1566162109364, + 271.12902832030636, 1656.9152831997737, -51.46760559066724, 7755.710937499968, + 779.891723632812, 17745.126953125, 4120.53857421875, 56376.55859375, 8273.3935546875, + 61268.7421875, 6205.963378906249, 23973.070312499996, 706.4294433593748] + rms: 0.036866121723535664 +image_width: 4961 +image_height: 3508 diff --git a/testdata/cv/cameracalibration/chromatic_aberration/simple_warp.yaml b/testdata/cv/cameracalibration/chromatic_aberration/simple_warp.yaml new file mode 100644 index 000000000..c8c9e71a6 --- /dev/null +++ b/testdata/cv/cameracalibration/chromatic_aberration/simple_warp.yaml @@ -0,0 +1,88 @@ +%YAML 1.2 +--- +blue_channel: + coeffs_x: [2.3639990109937417, -1.576616541071196e-05, -2.282667138313971e-05, 0.00020105246909236354, + 8.107019807945837e-05, 0.0010098126550871541, 0.00043432807805661016, 0.00041039573882962446, + 0.0001720501625638938, 0.001468167760006872, -0.002479685157703421, 0.0003156028498902087, + 0.0007558050865378061, -0.002826921842323166, -0.0122909043322666, -0.0030046952004487057, + -0.006391242146492004, 0.001316423151454054, 0.0019421234947059882, -0.0064084125499289605, + -0.017668211832642555, 0.009678891720567163, 0.00026451191388895934, -0.007598730062523865, + -0.00324344199929051, 0.004304712845554567, 0.0156387468991245, 0.04576281018639292, + 0.00802457332611084, 0.02608746634179735, 0.0011879340024064712, -0.015698077571884645, + -0.010787355713546276, 0.00770663953701043, 0.034953348440590414, 0.06566259981447839, + -0.014384193406942615, -0.00122972781578635, 0.014338796536936932, 0.005461248161321533, + -0.004766505677253008, -0.002368117392012823, -0.003075000552893109, -0.02073775391586266, + -0.06260360032320023, -0.009425220623494114, -0.038183979132549034, -0.0029850972622650638, + 0.02243355086519255, 0.00836347891903213, 0.0004889945603337718, 0.007412092165361154, + -0.010539664886891842, -0.05147504040383297, -0.09033419881142782, 0.007182967145522941, + 0.0006625655435895221, -0.007714443969269288, -0.0016402857833511034, 0.000702634380721615, + -0.0020612518754544984, 0.0029342569050295236, 0.003613981775340946, 3.0194250781914613e-05, + 0.008303528882764385, 0.02865571505556245, 0.0040510380300671145, 0.018486840650439262, + 0.0010682394495233893, -0.009120154194533825, -0.0009206197573803365, -0.00480895210057497, + -0.00529931529151779, 0.004452078783307313, 0.00032331464233393284, 0.0030339803124508733, + 0.02348635531961918, 0.04162981295199509] + coeffs_y: [-1.157107653370486, -0.00020808965374375743, 6.870284237218679e-06, -0.001046983420601671, + 5.033668474580013e-05, 2.056273846212276e-05, -0.0008258752195173389, 3.7999882735449854e-05, + 8.516492660260011e-05, -0.00013028309223599632, 0.005422318860704865, -0.000465419498406642, + 0.00045874543055711013, -7.701571703131495e-05, -0.0007859054233817057, 0.012592958279605514, + 8.056849371332908e-05, -0.000360095292890568, 0.00046471766401148486, -0.0001740351669543303, + -0.00027219377807341516, -0.014046299074111744, 0.0010065946636280106, -0.0004749795178359737, + 0.0027485368535372814, -0.002686782768914273, -0.0014986229787293766, 0.004195090420686273, + -0.03979828208684921, -0.0013898019823179496, -0.00018597611731428087, 0.001677850438937792, + 0.004789311336812462, -0.005394918670726861, -0.002783034306179326, 0.0045028888403018715, + 0.017279691994190216, -0.0010268720109977922, 0.0005454697389649977, -0.00461122768176852, + 0.0028448665946254163, -0.0003708917851573059, 0.001936555966688982, 0.0021396160047466015, + -0.006170822773128748, 0.0488552451201719, 0.0023579919323360467, -0.0001947160092911846, + -0.001157155493274331, -0.004668406200641104, 0.001420524810023288, -0.0033238162762516343, + 0.006722553123298026, 0.004934052912935932, -0.008035048801635537, -0.007902806594174232, + 0.00047291302904288034, -0.0006235872176934864, 0.0020378862973302603, -0.00018429651826088234, + 0.0010752535202571353, -0.0019946099364114883, -0.0005874175694771111, 5.693207378159892e-05, + -0.0008065422222088863, 0.0028200470349870584, -0.020918430743505075, -0.001101847714230736, + 0.0008152859416318025, -0.0007120823036407019, 0.0005277790890529893, 0.0015446940771776353, + 0.002962803947367657, -0.0027039579479482853, -7.639338827103826e-05, -0.0020216107266482794, + -0.0022369158934113253, 0.0040313691193317345] + rms: 3.867790753508054e-07 +red_channel: + coeffs_x: [-3.000000238418579, 8.275737855001353e-07, 9.708502375360695e-07, 2.9109478418831713e-06, + 4.5500919441110454e-06, 3.735275186045328e-06, -8.65236324898433e-06, -1.5824274669284932e-05, + -1.768137553881388e-05, -1.2225774298713077e-05, -1.512468315922888e-05, -2.827650860126596e-05, + -3.5832148569170386e-05, -3.3855027140816674e-05, -2.192154533986468e-05, 3.402233778615482e-05, + 6.840533023932949e-05, 9.547421359457076e-05, 0.00010400958126410842, 8.873730257619172e-05, + 5.3216994274407625e-05, 3.3672793506411836e-05, 6.557587767019868e-05, 9.346996375825256e-05, + 0.0001094646577257663, 0.0001076965345419012, 8.726795203983784e-05, 5.2075236453674734e-05, + -6.397318065864965e-05, -0.00013066010433249176, -0.00019685884763021022, -0.00024648793623782694, + -0.0002643051848281175, -0.0002429166343063116, -0.00018604951037559658, -0.00010576619388302788, + -3.427751289564185e-05, -6.67468921164982e-05, -9.928934741765261e-05, -0.00012648612027987838, + -0.00014222576282918453, -0.00014218130672816187, -0.00012545498611871153, -9.480056178290397e-05, + -5.475419675349258e-05, 5.797085032099858e-05, 0.00011701553012244403, 0.00018104475748259574, + 0.00024091813247650862, 0.00028472303529269993, 0.0003020244766958058, 0.0002875161007978022, + 0.00024303255486302078, 0.00017665003542788327, 9.844050509855151e-05, 1.3097645023663063e-05, + 2.5138851924566552e-05, 3.788826506934129e-05, 5.015093847759999e-05, 6.010872675688006e-05, + 6.595024024136364e-05, 6.64121107547544e-05, 6.116609438322484e-05, 5.092116043670103e-05, + 3.7129269912838936e-05, 2.1182406271691434e-05, -2.0340175979072228e-05, -4.018442996311933e-05, + -6.245188706088811e-05, -8.541230636183172e-05, -0.00010605908755678684, -0.00012099227024009451, + -0.00012733417679555714, -0.0001235781383002177, -0.00011003448162227869, -8.876040374161676e-05, + -6.28128182142973e-05, -3.4825949114747345e-05] + coeffs_y: [1.6435546875, -5.093473305350926e-07, -6.087174492762357e-13, -4.558837645163294e-06, + -2.991965941494257e-13, -5.258745370585737e-13, 1.6178388250409625e-05, 9.419689854517355e-12, + -6.82371173454932e-12, 5.9900231476339716e-12, 5.7182824093615636e-05, -1.4325851702828853e-12, + 5.161894132618694e-13, 4.737439824112343e-13, 3.242127052938138e-12, -0.0001396849111188203, + -5.154248555738761e-11, -4.5255750535933004e-11, -2.8647429914374634e-11, 9.08625813478281e-11, + -2.3054448974879627e-11, -0.00024368290905840695, 1.9989997504521462e-11, 8.23994691923069e-12, + -2.191771764081807e-11, -1.2656413243827824e-11, 1.512619716981245e-11, -5.676745965660368e-12, + 0.00048097845865413547, 1.1595838872446862e-10, 1.540109983988458e-10, 6.105718014515205e-11, + -1.0172992656598545e-11, 7.021966341724806e-11, -2.643649188449615e-10, 3.513882934624846e-11, + 0.00041410946869291365, -3.701342010664632e-11, -1.1486788083214794e-11, 1.4169115533646526e-11, + -4.020900095085683e-13, 3.1451358878387126e-11, 2.1262543808964196e-11, -3.6145145904109555e-11, + 3.2457751764081166e-12, -0.0007110594888217747, -1.056220041983913e-10, -1.6451487394597564e-10, + -1.105798230760513e-10, -1.0660371890791609e-10, 5.3613723703660465e-12, 1.1545583933347814e-10, + -1.0975871600482634e-10, 2.955073130639363e-10, -1.7693691997666683e-11, -0.0002417082869214937, + 1.9946409107740593e-11, 3.027445264966455e-12, -1.5427226553524354e-12, 7.274696036535522e-12, + -1.1159819596207043e-11, -7.209811740682692e-12, -1.2929842092834765e-11, -8.793355800451597e-12, + 2.1856712620338392e-11, -2.7389765802632304e-13, 0.0003762904671020806, 3.255782796141027e-11, + 6.159135701455654e-11, 6.000377972270599e-11, 5.4909733010477524e-11, 5.637384222628716e-12, + 1.6353274637226356e-11, -1.0105361859802375e-11, -7.6653683400707e-11, 5.917240308850324e-11, + -1.1476794514742039e-10, -2.570109923494268e-13] + rms: 5.684419575322002e-05 +image_width: 4961 +image_height: 3508 diff --git a/testdata/cv/cameracalibration/chromatic_aberration/synthetic_radial.png b/testdata/cv/cameracalibration/chromatic_aberration/synthetic_radial.png new file mode 100644 index 000000000..fd7590307 Binary files /dev/null and b/testdata/cv/cameracalibration/chromatic_aberration/synthetic_radial.png differ diff --git a/testdata/cv/cameracalibration/chromatic_aberration/synthetic_simple_warp.png b/testdata/cv/cameracalibration/chromatic_aberration/synthetic_simple_warp.png new file mode 100644 index 000000000..dca42de17 Binary files /dev/null and b/testdata/cv/cameracalibration/chromatic_aberration/synthetic_simple_warp.png differ diff --git a/testdata/cv/cameracalibration/chromatic_aberration/tablet_circles_.png b/testdata/cv/cameracalibration/chromatic_aberration/tablet_circles_.png new file mode 100644 index 000000000..26e368119 Binary files /dev/null and b/testdata/cv/cameracalibration/chromatic_aberration/tablet_circles_.png differ