Skip to content

WIP: Chromatic Aberration Correction Data #1266

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: 5.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
84 changes: 84 additions & 0 deletions testdata/cv/cameracalibration/chromatic_aberration/radial.yaml
Original file line number Diff line number Diff line change
@@ -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
Loading