123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120 |
-
- using OpenCVForUnity.CoreModule;
- using OpenCVForUnity.UtilsModule;
- using System;
- using System.Collections.Generic;
- using System.Runtime.InteropServices;
- namespace OpenCVForUnity.ImgprocModule {
- // C++: class Imgproc
- //javadoc: Imgproc
- public class Imgproc {
- private const int IPL_BORDER_CONSTANT = 0;
- private const int IPL_BORDER_REPLICATE = 1;
- private const int IPL_BORDER_REFLECT = 2;
- private const int IPL_BORDER_WRAP = 3;
- private const int IPL_BORDER_REFLECT_101 = 4;
- private const int IPL_BORDER_TRANSPARENT = 5;
- private const int CV_INTER_NN = 0;
- private const int CV_INTER_LINEAR = 1;
- private const int CV_INTER_CUBIC = 2;
- private const int CV_INTER_AREA = 3;
- private const int CV_INTER_LANCZOS4 = 4;
- private const int CV_MOP_ERODE = 0;
- private const int CV_MOP_DILATE = 1;
- private const int CV_MOP_OPEN = 2;
- private const int CV_MOP_CLOSE = 3;
- private const int CV_MOP_GRADIENT = 4;
- private const int CV_MOP_TOPHAT = 5;
- private const int CV_MOP_BLACKHAT = 6;
- private const int CV_RETR_EXTERNAL = 0;
- private const int CV_RETR_LIST = 1;
- private const int CV_RETR_CCOMP = 2;
- private const int CV_RETR_TREE = 3;
- private const int CV_RETR_FLOODFILL = 4;
- private const int CV_CHAIN_APPROX_NONE = 1;
- private const int CV_CHAIN_APPROX_SIMPLE = 2;
- private const int CV_CHAIN_APPROX_TC89_L1 = 3;
- private const int CV_CHAIN_APPROX_TC89_KCOS = 4;
- private const int CV_THRESH_BINARY = 0;
- private const int CV_THRESH_BINARY_INV = 1;
- private const int CV_THRESH_TRUNC = 2;
- private const int CV_THRESH_TOZERO = 3;
- private const int CV_THRESH_TOZERO_INV = 4;
- private const int CV_THRESH_MASK = 7;
- private const int CV_THRESH_OTSU = 8;
- private const int CV_THRESH_TRIANGLE = 16;
- // C++: enum GrabCutClasses
- public const int GC_BGD = 0;
- public const int GC_FGD = 1;
- public const int GC_PR_BGD = 2;
- public const int GC_PR_FGD = 3;
- // C++: enum RectanglesIntersectTypes
- public const int INTERSECT_NONE = 0;
- public const int INTERSECT_PARTIAL = 1;
- public const int INTERSECT_FULL = 2;
- // C++: enum ThresholdTypes
- public const int THRESH_BINARY = 0;
- public const int THRESH_BINARY_INV = 1;
- public const int THRESH_TRUNC = 2;
- public const int THRESH_TOZERO = 3;
- public const int THRESH_TOZERO_INV = 4;
- public const int THRESH_MASK = 7;
- public const int THRESH_OTSU = 8;
- public const int THRESH_TRIANGLE = 16;
- // C++: enum MarkerTypes
- public const int MARKER_CROSS = 0;
- public const int MARKER_TILTED_CROSS = 1;
- public const int MARKER_STAR = 2;
- public const int MARKER_DIAMOND = 3;
- public const int MARKER_SQUARE = 4;
- public const int MARKER_TRIANGLE_UP = 5;
- public const int MARKER_TRIANGLE_DOWN = 6;
- // C++: enum SmoothMethod_c
- public const int CV_BLUR_NO_SCALE = 0;
- public const int CV_BLUR = 1;
- public const int CV_GAUSSIAN = 2;
- public const int CV_MEDIAN = 3;
- public const int CV_BILATERAL = 4;
- // C++: enum LineTypes
- public const int FILLED = -1;
- public const int LINE_4 = 4;
- public const int LINE_8 = 8;
- public const int LINE_AA = 16;
- // C++: enum MorphShapes
- public const int MORPH_RECT = 0;
- public const int MORPH_CROSS = 1;
- public const int MORPH_ELLIPSE = 2;
- // C++: enum FloodFillFlags
- public const int FLOODFILL_FIXED_RANGE = 1 << 16;
- public const int FLOODFILL_MASK_ONLY = 1 << 17;
- // C++: enum InterpolationMasks
- public const int INTER_BITS = 5;
- public const int INTER_BITS2 = INTER_BITS * 2;
- public const int INTER_TAB_SIZE = 1 << INTER_BITS;
- public const int INTER_TAB_SIZE2 = INTER_TAB_SIZE * INTER_TAB_SIZE;
- // C++: enum ShapeMatchModes
- public const int CONTOURS_MATCH_I1 = 1;
- public const int CONTOURS_MATCH_I2 = 2;
- public const int CONTOURS_MATCH_I3 = 3;
- // C++: enum MorphTypes
- public const int MORPH_ERODE = 0;
- public const int MORPH_DILATE = 1;
- public const int MORPH_OPEN = 2;
- public const int MORPH_CLOSE = 3;
- public const int MORPH_GRADIENT = 4;
- public const int MORPH_TOPHAT = 5;
- public const int MORPH_BLACKHAT = 6;
- public const int MORPH_HITMISS = 7;
- // C++: enum InterpolationFlags
- public const int INTER_NEAREST = 0;
- public const int INTER_LINEAR = 1;
- public const int INTER_CUBIC = 2;
- public const int INTER_AREA = 3;
- public const int INTER_LANCZOS4 = 4;
- public const int INTER_LINEAR_EXACT = 5;
- public const int INTER_MAX = 7;
- public const int WARP_FILL_OUTLIERS = 8;
- public const int WARP_INVERSE_MAP = 16;
- // C++: enum HoughModes
- public const int HOUGH_STANDARD = 0;
- public const int HOUGH_PROBABILISTIC = 1;
- public const int HOUGH_MULTI_SCALE = 2;
- public const int HOUGH_GRADIENT = 3;
- // C++: enum DistanceTypes
- public const int DIST_USER = -1;
- public const int DIST_L1 = 1;
- public const int DIST_L2 = 2;
- public const int DIST_C = 3;
- public const int DIST_L12 = 4;
- public const int DIST_FAIR = 5;
- public const int DIST_WELSCH = 6;
- public const int DIST_HUBER = 7;
- // C++: enum ConnectedComponentsTypes
- public const int CC_STAT_LEFT = 0;
- public const int CC_STAT_TOP = 1;
- public const int CC_STAT_WIDTH = 2;
- public const int CC_STAT_HEIGHT = 3;
- public const int CC_STAT_AREA = 4;
- public const int CC_STAT_MAX = 5;
- // C++: enum HersheyFonts
- public const int FONT_HERSHEY_SIMPLEX = 0;
- public const int FONT_HERSHEY_PLAIN = 1;
- public const int FONT_HERSHEY_DUPLEX = 2;
- public const int FONT_HERSHEY_COMPLEX = 3;
- public const int FONT_HERSHEY_TRIPLEX = 4;
- public const int FONT_HERSHEY_COMPLEX_SMALL = 5;
- public const int FONT_HERSHEY_SCRIPT_SIMPLEX = 6;
- public const int FONT_HERSHEY_SCRIPT_COMPLEX = 7;
- public const int FONT_ITALIC = 16;
- // C++: enum ConnectedComponentsAlgorithmsTypes
- public const int CCL_WU = 0;
- public const int CCL_DEFAULT = -1;
- public const int CCL_GRANA = 1;
- // C++: enum AdaptiveThresholdTypes
- public const int ADAPTIVE_THRESH_MEAN_C = 0;
- public const int ADAPTIVE_THRESH_GAUSSIAN_C = 1;
- // C++: enum TemplateMatchModes
- public const int TM_SQDIFF = 0;
- public const int TM_SQDIFF_NORMED = 1;
- public const int TM_CCORR = 2;
- public const int TM_CCORR_NORMED = 3;
- public const int TM_CCOEFF = 4;
- public const int TM_CCOEFF_NORMED = 5;
- // C++: enum GrabCutModes
- public const int GC_INIT_WITH_RECT = 0;
- public const int GC_INIT_WITH_MASK = 1;
- public const int GC_EVAL = 2;
- public const int GC_EVAL_FREEZE_MODEL = 3;
- // C++: enum DistanceTransformLabelTypes
- public const int DIST_LABEL_CCOMP = 0;
- public const int DIST_LABEL_PIXEL = 1;
- // C++: enum WarpPolarMode
- public const int WARP_POLAR_LINEAR = 0;
- public const int WARP_POLAR_LOG = 256;
- // C++: enum ContourApproximationModes
- public const int CHAIN_APPROX_NONE = 1;
- public const int CHAIN_APPROX_SIMPLE = 2;
- public const int CHAIN_APPROX_TC89_L1 = 3;
- public const int CHAIN_APPROX_TC89_KCOS = 4;
- // C++: enum ColorConversionCodes
- public const int COLOR_BGR2BGRA = 0;
- public const int COLOR_RGB2RGBA = COLOR_BGR2BGRA;
- public const int COLOR_BGRA2BGR = 1;
- public const int COLOR_RGBA2RGB = COLOR_BGRA2BGR;
- public const int COLOR_BGR2RGBA = 2;
- public const int COLOR_RGB2BGRA = COLOR_BGR2RGBA;
- public const int COLOR_RGBA2BGR = 3;
- public const int COLOR_BGRA2RGB = COLOR_RGBA2BGR;
- public const int COLOR_BGR2RGB = 4;
- public const int COLOR_RGB2BGR = COLOR_BGR2RGB;
- public const int COLOR_BGRA2RGBA = 5;
- public const int COLOR_RGBA2BGRA = COLOR_BGRA2RGBA;
- public const int COLOR_BGR2GRAY = 6;
- public const int COLOR_RGB2GRAY = 7;
- public const int COLOR_GRAY2BGR = 8;
- public const int COLOR_GRAY2RGB = COLOR_GRAY2BGR;
- public const int COLOR_GRAY2BGRA = 9;
- public const int COLOR_GRAY2RGBA = COLOR_GRAY2BGRA;
- public const int COLOR_BGRA2GRAY = 10;
- public const int COLOR_RGBA2GRAY = 11;
- public const int COLOR_BGR2BGR565 = 12;
- public const int COLOR_RGB2BGR565 = 13;
- public const int COLOR_BGR5652BGR = 14;
- public const int COLOR_BGR5652RGB = 15;
- public const int COLOR_BGRA2BGR565 = 16;
- public const int COLOR_RGBA2BGR565 = 17;
- public const int COLOR_BGR5652BGRA = 18;
- public const int COLOR_BGR5652RGBA = 19;
- public const int COLOR_GRAY2BGR565 = 20;
- public const int COLOR_BGR5652GRAY = 21;
- public const int COLOR_BGR2BGR555 = 22;
- public const int COLOR_RGB2BGR555 = 23;
- public const int COLOR_BGR5552BGR = 24;
- public const int COLOR_BGR5552RGB = 25;
- public const int COLOR_BGRA2BGR555 = 26;
- public const int COLOR_RGBA2BGR555 = 27;
- public const int COLOR_BGR5552BGRA = 28;
- public const int COLOR_BGR5552RGBA = 29;
- public const int COLOR_GRAY2BGR555 = 30;
- public const int COLOR_BGR5552GRAY = 31;
- public const int COLOR_BGR2XYZ = 32;
- public const int COLOR_RGB2XYZ = 33;
- public const int COLOR_XYZ2BGR = 34;
- public const int COLOR_XYZ2RGB = 35;
- public const int COLOR_BGR2YCrCb = 36;
- public const int COLOR_RGB2YCrCb = 37;
- public const int COLOR_YCrCb2BGR = 38;
- public const int COLOR_YCrCb2RGB = 39;
- public const int COLOR_BGR2HSV = 40;
- public const int COLOR_RGB2HSV = 41;
- public const int COLOR_BGR2Lab = 44;
- public const int COLOR_RGB2Lab = 45;
- public const int COLOR_BGR2Luv = 50;
- public const int COLOR_RGB2Luv = 51;
- public const int COLOR_BGR2HLS = 52;
- public const int COLOR_RGB2HLS = 53;
- public const int COLOR_HSV2BGR = 54;
- public const int COLOR_HSV2RGB = 55;
- public const int COLOR_Lab2BGR = 56;
- public const int COLOR_Lab2RGB = 57;
- public const int COLOR_Luv2BGR = 58;
- public const int COLOR_Luv2RGB = 59;
- public const int COLOR_HLS2BGR = 60;
- public const int COLOR_HLS2RGB = 61;
- public const int COLOR_BGR2HSV_FULL = 66;
- public const int COLOR_RGB2HSV_FULL = 67;
- public const int COLOR_BGR2HLS_FULL = 68;
- public const int COLOR_RGB2HLS_FULL = 69;
- public const int COLOR_HSV2BGR_FULL = 70;
- public const int COLOR_HSV2RGB_FULL = 71;
- public const int COLOR_HLS2BGR_FULL = 72;
- public const int COLOR_HLS2RGB_FULL = 73;
- public const int COLOR_LBGR2Lab = 74;
- public const int COLOR_LRGB2Lab = 75;
- public const int COLOR_LBGR2Luv = 76;
- public const int COLOR_LRGB2Luv = 77;
- public const int COLOR_Lab2LBGR = 78;
- public const int COLOR_Lab2LRGB = 79;
- public const int COLOR_Luv2LBGR = 80;
- public const int COLOR_Luv2LRGB = 81;
- public const int COLOR_BGR2YUV = 82;
- public const int COLOR_RGB2YUV = 83;
- public const int COLOR_YUV2BGR = 84;
- public const int COLOR_YUV2RGB = 85;
- public const int COLOR_YUV2RGB_NV12 = 90;
- public const int COLOR_YUV2BGR_NV12 = 91;
- public const int COLOR_YUV2RGB_NV21 = 92;
- public const int COLOR_YUV2BGR_NV21 = 93;
- public const int COLOR_YUV420sp2RGB = COLOR_YUV2RGB_NV21;
- public const int COLOR_YUV420sp2BGR = COLOR_YUV2BGR_NV21;
- public const int COLOR_YUV2RGBA_NV12 = 94;
- public const int COLOR_YUV2BGRA_NV12 = 95;
- public const int COLOR_YUV2RGBA_NV21 = 96;
- public const int COLOR_YUV2BGRA_NV21 = 97;
- public const int COLOR_YUV420sp2RGBA = COLOR_YUV2RGBA_NV21;
- public const int COLOR_YUV420sp2BGRA = COLOR_YUV2BGRA_NV21;
- public const int COLOR_YUV2RGB_YV12 = 98;
- public const int COLOR_YUV2BGR_YV12 = 99;
- public const int COLOR_YUV2RGB_IYUV = 100;
- public const int COLOR_YUV2BGR_IYUV = 101;
- public const int COLOR_YUV2RGB_I420 = COLOR_YUV2RGB_IYUV;
- public const int COLOR_YUV2BGR_I420 = COLOR_YUV2BGR_IYUV;
- public const int COLOR_YUV420p2RGB = COLOR_YUV2RGB_YV12;
- public const int COLOR_YUV420p2BGR = COLOR_YUV2BGR_YV12;
- public const int COLOR_YUV2RGBA_YV12 = 102;
- public const int COLOR_YUV2BGRA_YV12 = 103;
- public const int COLOR_YUV2RGBA_IYUV = 104;
- public const int COLOR_YUV2BGRA_IYUV = 105;
- public const int COLOR_YUV2RGBA_I420 = COLOR_YUV2RGBA_IYUV;
- public const int COLOR_YUV2BGRA_I420 = COLOR_YUV2BGRA_IYUV;
- public const int COLOR_YUV420p2RGBA = COLOR_YUV2RGBA_YV12;
- public const int COLOR_YUV420p2BGRA = COLOR_YUV2BGRA_YV12;
- public const int COLOR_YUV2GRAY_420 = 106;
- public const int COLOR_YUV2GRAY_NV21 = COLOR_YUV2GRAY_420;
- public const int COLOR_YUV2GRAY_NV12 = COLOR_YUV2GRAY_420;
- public const int COLOR_YUV2GRAY_YV12 = COLOR_YUV2GRAY_420;
- public const int COLOR_YUV2GRAY_IYUV = COLOR_YUV2GRAY_420;
- public const int COLOR_YUV2GRAY_I420 = COLOR_YUV2GRAY_420;
- public const int COLOR_YUV420sp2GRAY = COLOR_YUV2GRAY_420;
- public const int COLOR_YUV420p2GRAY = COLOR_YUV2GRAY_420;
- public const int COLOR_YUV2RGB_UYVY = 107;
- public const int COLOR_YUV2BGR_UYVY = 108;
- public const int COLOR_YUV2RGB_Y422 = COLOR_YUV2RGB_UYVY;
- public const int COLOR_YUV2BGR_Y422 = COLOR_YUV2BGR_UYVY;
- public const int COLOR_YUV2RGB_UYNV = COLOR_YUV2RGB_UYVY;
- public const int COLOR_YUV2BGR_UYNV = COLOR_YUV2BGR_UYVY;
- public const int COLOR_YUV2RGBA_UYVY = 111;
- public const int COLOR_YUV2BGRA_UYVY = 112;
- public const int COLOR_YUV2RGBA_Y422 = COLOR_YUV2RGBA_UYVY;
- public const int COLOR_YUV2BGRA_Y422 = COLOR_YUV2BGRA_UYVY;
- public const int COLOR_YUV2RGBA_UYNV = COLOR_YUV2RGBA_UYVY;
- public const int COLOR_YUV2BGRA_UYNV = COLOR_YUV2BGRA_UYVY;
- public const int COLOR_YUV2RGB_YUY2 = 115;
- public const int COLOR_YUV2BGR_YUY2 = 116;
- public const int COLOR_YUV2RGB_YVYU = 117;
- public const int COLOR_YUV2BGR_YVYU = 118;
- public const int COLOR_YUV2RGB_YUYV = COLOR_YUV2RGB_YUY2;
- public const int COLOR_YUV2BGR_YUYV = COLOR_YUV2BGR_YUY2;
- public const int COLOR_YUV2RGB_YUNV = COLOR_YUV2RGB_YUY2;
- public const int COLOR_YUV2BGR_YUNV = COLOR_YUV2BGR_YUY2;
- public const int COLOR_YUV2RGBA_YUY2 = 119;
- public const int COLOR_YUV2BGRA_YUY2 = 120;
- public const int COLOR_YUV2RGBA_YVYU = 121;
- public const int COLOR_YUV2BGRA_YVYU = 122;
- public const int COLOR_YUV2RGBA_YUYV = COLOR_YUV2RGBA_YUY2;
- public const int COLOR_YUV2BGRA_YUYV = COLOR_YUV2BGRA_YUY2;
- public const int COLOR_YUV2RGBA_YUNV = COLOR_YUV2RGBA_YUY2;
- public const int COLOR_YUV2BGRA_YUNV = COLOR_YUV2BGRA_YUY2;
- public const int COLOR_YUV2GRAY_UYVY = 123;
- public const int COLOR_YUV2GRAY_YUY2 = 124;
- public const int COLOR_YUV2GRAY_Y422 = COLOR_YUV2GRAY_UYVY;
- public const int COLOR_YUV2GRAY_UYNV = COLOR_YUV2GRAY_UYVY;
- public const int COLOR_YUV2GRAY_YVYU = COLOR_YUV2GRAY_YUY2;
- public const int COLOR_YUV2GRAY_YUYV = COLOR_YUV2GRAY_YUY2;
- public const int COLOR_YUV2GRAY_YUNV = COLOR_YUV2GRAY_YUY2;
- public const int COLOR_RGBA2mRGBA = 125;
- public const int COLOR_mRGBA2RGBA = 126;
- public const int COLOR_RGB2YUV_I420 = 127;
- public const int COLOR_BGR2YUV_I420 = 128;
- public const int COLOR_RGB2YUV_IYUV = COLOR_RGB2YUV_I420;
- public const int COLOR_BGR2YUV_IYUV = COLOR_BGR2YUV_I420;
- public const int COLOR_RGBA2YUV_I420 = 129;
- public const int COLOR_BGRA2YUV_I420 = 130;
- public const int COLOR_RGBA2YUV_IYUV = COLOR_RGBA2YUV_I420;
- public const int COLOR_BGRA2YUV_IYUV = COLOR_BGRA2YUV_I420;
- public const int COLOR_RGB2YUV_YV12 = 131;
- public const int COLOR_BGR2YUV_YV12 = 132;
- public const int COLOR_RGBA2YUV_YV12 = 133;
- public const int COLOR_BGRA2YUV_YV12 = 134;
- public const int COLOR_BayerBG2BGR = 46;
- public const int COLOR_BayerGB2BGR = 47;
- public const int COLOR_BayerRG2BGR = 48;
- public const int COLOR_BayerGR2BGR = 49;
- public const int COLOR_BayerBG2RGB = COLOR_BayerRG2BGR;
- public const int COLOR_BayerGB2RGB = COLOR_BayerGR2BGR;
- public const int COLOR_BayerRG2RGB = COLOR_BayerBG2BGR;
- public const int COLOR_BayerGR2RGB = COLOR_BayerGB2BGR;
- public const int COLOR_BayerBG2GRAY = 86;
- public const int COLOR_BayerGB2GRAY = 87;
- public const int COLOR_BayerRG2GRAY = 88;
- public const int COLOR_BayerGR2GRAY = 89;
- public const int COLOR_BayerBG2BGR_VNG = 62;
- public const int COLOR_BayerGB2BGR_VNG = 63;
- public const int COLOR_BayerRG2BGR_VNG = 64;
- public const int COLOR_BayerGR2BGR_VNG = 65;
- public const int COLOR_BayerBG2RGB_VNG = COLOR_BayerRG2BGR_VNG;
- public const int COLOR_BayerGB2RGB_VNG = COLOR_BayerGR2BGR_VNG;
- public const int COLOR_BayerRG2RGB_VNG = COLOR_BayerBG2BGR_VNG;
- public const int COLOR_BayerGR2RGB_VNG = COLOR_BayerGB2BGR_VNG;
- public const int COLOR_BayerBG2BGR_EA = 135;
- public const int COLOR_BayerGB2BGR_EA = 136;
- public const int COLOR_BayerRG2BGR_EA = 137;
- public const int COLOR_BayerGR2BGR_EA = 138;
- public const int COLOR_BayerBG2RGB_EA = COLOR_BayerRG2BGR_EA;
- public const int COLOR_BayerGB2RGB_EA = COLOR_BayerGR2BGR_EA;
- public const int COLOR_BayerRG2RGB_EA = COLOR_BayerBG2BGR_EA;
- public const int COLOR_BayerGR2RGB_EA = COLOR_BayerGB2BGR_EA;
- public const int COLOR_BayerBG2BGRA = 139;
- public const int COLOR_BayerGB2BGRA = 140;
- public const int COLOR_BayerRG2BGRA = 141;
- public const int COLOR_BayerGR2BGRA = 142;
- public const int COLOR_BayerBG2RGBA = COLOR_BayerRG2BGRA;
- public const int COLOR_BayerGB2RGBA = COLOR_BayerGR2BGRA;
- public const int COLOR_BayerRG2RGBA = COLOR_BayerBG2BGRA;
- public const int COLOR_BayerGR2RGBA = COLOR_BayerGB2BGRA;
- public const int COLOR_COLORCVT_MAX = 143;
- // C++: enum DistanceTransformMasks
- public const int DIST_MASK_3 = 3;
- public const int DIST_MASK_5 = 5;
- public const int DIST_MASK_PRECISE = 0;
- // C++: enum ColormapTypes
- public const int COLORMAP_AUTUMN = 0;
- public const int COLORMAP_BONE = 1;
- public const int COLORMAP_JET = 2;
- public const int COLORMAP_WINTER = 3;
- public const int COLORMAP_RAINBOW = 4;
- public const int COLORMAP_OCEAN = 5;
- public const int COLORMAP_SUMMER = 6;
- public const int COLORMAP_SPRING = 7;
- public const int COLORMAP_COOL = 8;
- public const int COLORMAP_HSV = 9;
- public const int COLORMAP_PINK = 10;
- public const int COLORMAP_HOT = 11;
- public const int COLORMAP_PARULA = 12;
- // C++: enum LineSegmentDetectorModes
- public const int LSD_REFINE_NONE = 0;
- public const int LSD_REFINE_STD = 1;
- public const int LSD_REFINE_ADV = 2;
- // C++: enum <unnamed>
- public const int CV_GAUSSIAN_5x5 = 7;
- public const int CV_SCHARR = -1;
- public const int CV_MAX_SOBEL_KSIZE = 7;
- public const int CV_RGBA2mRGBA = 125;
- public const int CV_mRGBA2RGBA = 126;
- public const int CV_WARP_FILL_OUTLIERS = 8;
- public const int CV_WARP_INVERSE_MAP = 16;
- public const int CV_CHAIN_CODE = 0;
- public const int CV_LINK_RUNS = 5;
- public const int CV_POLY_APPROX_DP = 0;
- public const int CV_CONTOURS_MATCH_I1 = 1;
- public const int CV_CONTOURS_MATCH_I2 = 2;
- public const int CV_CONTOURS_MATCH_I3 = 3;
- public const int CV_CLOCKWISE = 1;
- public const int CV_COUNTER_CLOCKWISE = 2;
- public const int CV_COMP_CORREL = 0;
- public const int CV_COMP_CHISQR = 1;
- public const int CV_COMP_INTERSECT = 2;
- public const int CV_COMP_BHATTACHARYYA = 3;
- public const int CV_COMP_HELLINGER = CV_COMP_BHATTACHARYYA;
- public const int CV_COMP_CHISQR_ALT = 4;
- public const int CV_COMP_KL_DIV = 5;
- public const int CV_DIST_MASK_3 = 3;
- public const int CV_DIST_MASK_5 = 5;
- public const int CV_DIST_MASK_PRECISE = 0;
- public const int CV_DIST_LABEL_CCOMP = 0;
- public const int CV_DIST_LABEL_PIXEL = 1;
- public const int CV_DIST_USER = -1;
- public const int CV_DIST_L1 = 1;
- public const int CV_DIST_L2 = 2;
- public const int CV_DIST_C = 3;
- public const int CV_DIST_L12 = 4;
- public const int CV_DIST_FAIR = 5;
- public const int CV_DIST_WELSCH = 6;
- public const int CV_DIST_HUBER = 7;
- public const int CV_CANNY_L2_GRADIENT = (1 << 31);
- public const int CV_HOUGH_STANDARD = 0;
- public const int CV_HOUGH_PROBABILISTIC = 1;
- public const int CV_HOUGH_MULTI_SCALE = 2;
- public const int CV_HOUGH_GRADIENT = 3;
- // C++: enum SpecialFilter
- public const int FILTER_SCHARR = -1;
- // C++: enum RetrievalModes
- public const int RETR_EXTERNAL = 0;
- public const int RETR_LIST = 1;
- public const int RETR_CCOMP = 2;
- public const int RETR_TREE = 3;
- public const int RETR_FLOODFILL = 4;
- // C++: enum MorphShapes_c
- public const int CV_SHAPE_RECT = 0;
- public const int CV_SHAPE_CROSS = 1;
- public const int CV_SHAPE_ELLIPSE = 2;
- public const int CV_SHAPE_CUSTOM = 100;
- // C++: enum HistCompMethods
- public const int HISTCMP_CORREL = 0;
- public const int HISTCMP_CHISQR = 1;
- public const int HISTCMP_INTERSECT = 2;
- public const int HISTCMP_BHATTACHARYYA = 3;
- public const int HISTCMP_HELLINGER = HISTCMP_BHATTACHARYYA;
- public const int HISTCMP_CHISQR_ALT = 4;
- public const int HISTCMP_KL_DIV = 5;
- //
- // C++: Mat cv::getAffineTransform(vector_Point2f src, vector_Point2f dst)
- //
- //javadoc: getAffineTransform(src, dst)
- public static Mat getAffineTransform(MatOfPoint2f src, MatOfPoint2f dst) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- Mat src_mat = src;
- Mat dst_mat = dst;
- Mat retVal = new Mat(imgproc_Imgproc_getAffineTransform_10(src_mat.nativeObj, dst_mat.nativeObj));
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: Mat cv::getGaborKernel(Size ksize, double sigma, double theta, double lambd, double gamma, double psi = CV_PI*0.5, int ktype = CV_64F)
- //
- //javadoc: getGaborKernel(ksize, sigma, theta, lambd, gamma, psi, ktype)
- public static Mat getGaborKernel(Size ksize, double sigma, double theta, double lambd, double gamma, double psi, int ktype) {
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- Mat retVal = new Mat(imgproc_Imgproc_getGaborKernel_10(ksize.width, ksize.height, sigma, theta, lambd, gamma, psi, ktype));
- return retVal;
- #else
- return null;
- #endif
- }
- //javadoc: getGaborKernel(ksize, sigma, theta, lambd, gamma, psi)
- public static Mat getGaborKernel(Size ksize, double sigma, double theta, double lambd, double gamma, double psi) {
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- Mat retVal = new Mat(imgproc_Imgproc_getGaborKernel_11(ksize.width, ksize.height, sigma, theta, lambd, gamma, psi));
- return retVal;
- #else
- return null;
- #endif
- }
- //javadoc: getGaborKernel(ksize, sigma, theta, lambd, gamma)
- public static Mat getGaborKernel(Size ksize, double sigma, double theta, double lambd, double gamma) {
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- Mat retVal = new Mat(imgproc_Imgproc_getGaborKernel_12(ksize.width, ksize.height, sigma, theta, lambd, gamma));
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: Mat cv::getGaussianKernel(int ksize, double sigma, int ktype = CV_64F)
- //
- //javadoc: getGaussianKernel(ksize, sigma, ktype)
- public static Mat getGaussianKernel(int ksize, double sigma, int ktype) {
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- Mat retVal = new Mat(imgproc_Imgproc_getGaussianKernel_10(ksize, sigma, ktype));
- return retVal;
- #else
- return null;
- #endif
- }
- //javadoc: getGaussianKernel(ksize, sigma)
- public static Mat getGaussianKernel(int ksize, double sigma) {
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- Mat retVal = new Mat(imgproc_Imgproc_getGaussianKernel_11(ksize, sigma));
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: Mat cv::getPerspectiveTransform(Mat src, Mat dst, int solveMethod = DECOMP_LU)
- //
- //javadoc: getPerspectiveTransform(src, dst, solveMethod)
- public static Mat getPerspectiveTransform(Mat src, Mat dst, int solveMethod) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- Mat retVal = new Mat(imgproc_Imgproc_getPerspectiveTransform_10(src.nativeObj, dst.nativeObj, solveMethod));
- return retVal;
- #else
- return null;
- #endif
- }
- //javadoc: getPerspectiveTransform(src, dst)
- public static Mat getPerspectiveTransform(Mat src, Mat dst) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- Mat retVal = new Mat(imgproc_Imgproc_getPerspectiveTransform_11(src.nativeObj, dst.nativeObj));
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: Mat cv::getRotationMatrix2D(Point2f center, double angle, double scale)
- //
- //javadoc: getRotationMatrix2D(center, angle, scale)
- public static Mat getRotationMatrix2D(Point center, double angle, double scale) {
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- Mat retVal = new Mat(imgproc_Imgproc_getRotationMatrix2D_10(center.x, center.y, angle, scale));
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: Mat cv::getStructuringElement(int shape, Size ksize, Point anchor = Point(-1,-1))
- //
- //javadoc: getStructuringElement(shape, ksize, anchor)
- public static Mat getStructuringElement(int shape, Size ksize, Point anchor) {
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- Mat retVal = new Mat(imgproc_Imgproc_getStructuringElement_10(shape, ksize.width, ksize.height, anchor.x, anchor.y));
- return retVal;
- #else
- return null;
- #endif
- }
- //javadoc: getStructuringElement(shape, ksize)
- public static Mat getStructuringElement(int shape, Size ksize) {
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- Mat retVal = new Mat(imgproc_Imgproc_getStructuringElement_11(shape, ksize.width, ksize.height));
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: Moments cv::moments(Mat array, bool binaryImage = false)
- //
- //javadoc: moments(array, binaryImage)
- public static Moments moments(Mat array, bool binaryImage) {
- if (array != null) array.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- double[] tmpArray = new double[10];
- imgproc_Imgproc_moments_10(array.nativeObj, binaryImage, tmpArray);
- Moments retVal = new Moments(tmpArray);
- return retVal;
- #else
- return null;
- #endif
- }
- //javadoc: moments(array)
- public static Moments moments(Mat array) {
- if (array != null) array.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- double[] tmpArray = new double[10];
- imgproc_Imgproc_moments_11(array.nativeObj, tmpArray);
- Moments retVal = new Moments(tmpArray);
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: Point2d cv::phaseCorrelate(Mat src1, Mat src2, Mat window = Mat(), double* response = 0)
- //
- //javadoc: phaseCorrelate(src1, src2, window, response)
- public static Point phaseCorrelate(Mat src1, Mat src2, Mat window, double[] response) {
- if (src1 != null) src1.ThrowIfDisposed();
- if (src2 != null) src2.ThrowIfDisposed();
- if (window != null) window.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- double[] response_out = new double[1];
- double[] tmpArray = new double[2];
- imgproc_Imgproc_phaseCorrelate_10(src1.nativeObj, src2.nativeObj, window.nativeObj, response_out, tmpArray);
- Point retVal = new Point(tmpArray);
- if (response != null) response[0] = (double)response_out[0];
- return retVal;
- #else
- return null;
- #endif
- }
- //javadoc: phaseCorrelate(src1, src2, window)
- public static Point phaseCorrelate(Mat src1, Mat src2, Mat window) {
- if (src1 != null) src1.ThrowIfDisposed();
- if (src2 != null) src2.ThrowIfDisposed();
- if (window != null) window.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- double[] tmpArray = new double[2];
- imgproc_Imgproc_phaseCorrelate_11(src1.nativeObj, src2.nativeObj, window.nativeObj, tmpArray);
- Point retVal = new Point(tmpArray);
- return retVal;
- #else
- return null;
- #endif
- }
- //javadoc: phaseCorrelate(src1, src2)
- public static Point phaseCorrelate(Mat src1, Mat src2) {
- if (src1 != null) src1.ThrowIfDisposed();
- if (src2 != null) src2.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- double[] tmpArray = new double[2];
- imgproc_Imgproc_phaseCorrelate_12(src1.nativeObj, src2.nativeObj, tmpArray);
- Point retVal = new Point(tmpArray);
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: Ptr_CLAHE cv::createCLAHE(double clipLimit = 40.0, Size tileGridSize = Size(8, 8))
- //
- //javadoc: createCLAHE(clipLimit, tileGridSize)
- public static CLAHE createCLAHE(double clipLimit, Size tileGridSize) {
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- CLAHE retVal = CLAHE.__fromPtr__(imgproc_Imgproc_createCLAHE_10(clipLimit, tileGridSize.width, tileGridSize.height));
- return retVal;
- #else
- return null;
- #endif
- }
- //javadoc: createCLAHE(clipLimit)
- public static CLAHE createCLAHE(double clipLimit) {
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- CLAHE retVal = CLAHE.__fromPtr__(imgproc_Imgproc_createCLAHE_11(clipLimit));
- return retVal;
- #else
- return null;
- #endif
- }
- //javadoc: createCLAHE()
- public static CLAHE createCLAHE() {
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- CLAHE retVal = CLAHE.__fromPtr__(imgproc_Imgproc_createCLAHE_12());
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: Ptr_LineSegmentDetector cv::createLineSegmentDetector(int _refine = LSD_REFINE_STD, double _scale = 0.8, double _sigma_scale = 0.6, double _quant = 2.0, double _ang_th = 22.5, double _log_eps = 0, double _density_th = 0.7, int _n_bins = 1024)
- //
- //javadoc: createLineSegmentDetector(_refine, _scale, _sigma_scale, _quant, _ang_th, _log_eps, _density_th, _n_bins)
- public static LineSegmentDetector createLineSegmentDetector(int _refine, double _scale, double _sigma_scale, double _quant, double _ang_th, double _log_eps, double _density_th, int _n_bins) {
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- LineSegmentDetector retVal = LineSegmentDetector.__fromPtr__(imgproc_Imgproc_createLineSegmentDetector_10(_refine, _scale, _sigma_scale, _quant, _ang_th, _log_eps, _density_th, _n_bins));
- return retVal;
- #else
- return null;
- #endif
- }
- //javadoc: createLineSegmentDetector(_refine, _scale, _sigma_scale, _quant, _ang_th, _log_eps, _density_th)
- public static LineSegmentDetector createLineSegmentDetector(int _refine, double _scale, double _sigma_scale, double _quant, double _ang_th, double _log_eps, double _density_th) {
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- LineSegmentDetector retVal = LineSegmentDetector.__fromPtr__(imgproc_Imgproc_createLineSegmentDetector_11(_refine, _scale, _sigma_scale, _quant, _ang_th, _log_eps, _density_th));
- return retVal;
- #else
- return null;
- #endif
- }
- //javadoc: createLineSegmentDetector(_refine, _scale, _sigma_scale, _quant, _ang_th, _log_eps)
- public static LineSegmentDetector createLineSegmentDetector(int _refine, double _scale, double _sigma_scale, double _quant, double _ang_th, double _log_eps) {
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- LineSegmentDetector retVal = LineSegmentDetector.__fromPtr__(imgproc_Imgproc_createLineSegmentDetector_12(_refine, _scale, _sigma_scale, _quant, _ang_th, _log_eps));
- return retVal;
- #else
- return null;
- #endif
- }
- //javadoc: createLineSegmentDetector(_refine, _scale, _sigma_scale, _quant, _ang_th)
- public static LineSegmentDetector createLineSegmentDetector(int _refine, double _scale, double _sigma_scale, double _quant, double _ang_th) {
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- LineSegmentDetector retVal = LineSegmentDetector.__fromPtr__(imgproc_Imgproc_createLineSegmentDetector_13(_refine, _scale, _sigma_scale, _quant, _ang_th));
- return retVal;
- #else
- return null;
- #endif
- }
- //javadoc: createLineSegmentDetector(_refine, _scale, _sigma_scale, _quant)
- public static LineSegmentDetector createLineSegmentDetector(int _refine, double _scale, double _sigma_scale, double _quant) {
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- LineSegmentDetector retVal = LineSegmentDetector.__fromPtr__(imgproc_Imgproc_createLineSegmentDetector_14(_refine, _scale, _sigma_scale, _quant));
- return retVal;
- #else
- return null;
- #endif
- }
- //javadoc: createLineSegmentDetector(_refine, _scale, _sigma_scale)
- public static LineSegmentDetector createLineSegmentDetector(int _refine, double _scale, double _sigma_scale) {
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- LineSegmentDetector retVal = LineSegmentDetector.__fromPtr__(imgproc_Imgproc_createLineSegmentDetector_15(_refine, _scale, _sigma_scale));
- return retVal;
- #else
- return null;
- #endif
- }
- //javadoc: createLineSegmentDetector(_refine, _scale)
- public static LineSegmentDetector createLineSegmentDetector(int _refine, double _scale) {
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- LineSegmentDetector retVal = LineSegmentDetector.__fromPtr__(imgproc_Imgproc_createLineSegmentDetector_16(_refine, _scale));
- return retVal;
- #else
- return null;
- #endif
- }
- //javadoc: createLineSegmentDetector(_refine)
- public static LineSegmentDetector createLineSegmentDetector(int _refine) {
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- LineSegmentDetector retVal = LineSegmentDetector.__fromPtr__(imgproc_Imgproc_createLineSegmentDetector_17(_refine));
- return retVal;
- #else
- return null;
- #endif
- }
- //javadoc: createLineSegmentDetector()
- public static LineSegmentDetector createLineSegmentDetector() {
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- LineSegmentDetector retVal = LineSegmentDetector.__fromPtr__(imgproc_Imgproc_createLineSegmentDetector_18());
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: Rect cv::boundingRect(Mat array)
- //
- //javadoc: boundingRect(array)
- public static Rect boundingRect(Mat array) {
- if (array != null) array.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- double[] tmpArray = new double[4];
- imgproc_Imgproc_boundingRect_10(array.nativeObj, tmpArray);
- Rect retVal = new Rect(tmpArray);
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: RotatedRect cv::fitEllipse(vector_Point2f points)
- //
- //javadoc: fitEllipse(points)
- public static RotatedRect fitEllipse(MatOfPoint2f points) {
- if (points != null) points.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- Mat points_mat = points;
- double[] tmpArray = new double[5];
- imgproc_Imgproc_fitEllipse_10(points_mat.nativeObj, tmpArray);
- RotatedRect retVal = new RotatedRect(tmpArray);
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: RotatedRect cv::fitEllipseAMS(Mat points)
- //
- //javadoc: fitEllipseAMS(points)
- public static RotatedRect fitEllipseAMS(Mat points) {
- if (points != null) points.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- double[] tmpArray = new double[5];
- imgproc_Imgproc_fitEllipseAMS_10(points.nativeObj, tmpArray);
- RotatedRect retVal = new RotatedRect(tmpArray);
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: RotatedRect cv::fitEllipseDirect(Mat points)
- //
- //javadoc: fitEllipseDirect(points)
- public static RotatedRect fitEllipseDirect(Mat points) {
- if (points != null) points.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- double[] tmpArray = new double[5];
- imgproc_Imgproc_fitEllipseDirect_10(points.nativeObj, tmpArray);
- RotatedRect retVal = new RotatedRect(tmpArray);
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: RotatedRect cv::minAreaRect(vector_Point2f points)
- //
- //javadoc: minAreaRect(points)
- public static RotatedRect minAreaRect(MatOfPoint2f points) {
- if (points != null) points.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- Mat points_mat = points;
- double[] tmpArray = new double[5];
- imgproc_Imgproc_minAreaRect_10(points_mat.nativeObj, tmpArray);
- RotatedRect retVal = new RotatedRect(tmpArray);
- return retVal;
- #else
- return null;
- #endif
- }
- //
- // C++: bool cv::clipLine(Rect imgRect, Point& pt1, Point& pt2)
- //
- //javadoc: clipLine(imgRect, pt1, pt2)
- public static bool clipLine(Rect imgRect, Point pt1, Point pt2) {
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- double[] pt1_out = new double[2];
- double[] pt2_out = new double[2];
- bool retVal = imgproc_Imgproc_clipLine_10(imgRect.x, imgRect.y, imgRect.width, imgRect.height, pt1.x, pt1.y, pt1_out, pt2.x, pt2.y, pt2_out);
- if (pt1 != null) { pt1.x = pt1_out[0]; pt1.y = pt1_out[1]; }
- if (pt2 != null) { pt2.x = pt2_out[0]; pt2.y = pt2_out[1]; }
- return retVal;
- #else
- return false;
- #endif
- }
- //
- // C++: bool cv::isContourConvex(vector_Point contour)
- //
- //javadoc: isContourConvex(contour)
- public static bool isContourConvex(MatOfPoint contour) {
- if (contour != null) contour.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- Mat contour_mat = contour;
- bool retVal = imgproc_Imgproc_isContourConvex_10(contour_mat.nativeObj);
- return retVal;
- #else
- return false;
- #endif
- }
- //
- // C++: double cv::arcLength(vector_Point2f curve, bool closed)
- //
- //javadoc: arcLength(curve, closed)
- public static double arcLength(MatOfPoint2f curve, bool closed) {
- if (curve != null) curve.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- Mat curve_mat = curve;
- double retVal = imgproc_Imgproc_arcLength_10(curve_mat.nativeObj, closed);
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: double cv::compareHist(Mat H1, Mat H2, int method)
- //
- //javadoc: compareHist(H1, H2, method)
- public static double compareHist(Mat H1, Mat H2, int method) {
- if (H1 != null) H1.ThrowIfDisposed();
- if (H2 != null) H2.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- double retVal = imgproc_Imgproc_compareHist_10(H1.nativeObj, H2.nativeObj, method);
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: double cv::contourArea(Mat contour, bool oriented = false)
- //
- //javadoc: contourArea(contour, oriented)
- public static double contourArea(Mat contour, bool oriented) {
- if (contour != null) contour.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- double retVal = imgproc_Imgproc_contourArea_10(contour.nativeObj, oriented);
- return retVal;
- #else
- return -1;
- #endif
- }
- //javadoc: contourArea(contour)
- public static double contourArea(Mat contour) {
- if (contour != null) contour.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- double retVal = imgproc_Imgproc_contourArea_11(contour.nativeObj);
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: double cv::getFontScaleFromHeight(int fontFace, int pixelHeight, int thickness = 1)
- //
- //javadoc: getFontScaleFromHeight(fontFace, pixelHeight, thickness)
- public static double getFontScaleFromHeight(int fontFace, int pixelHeight, int thickness) {
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- double retVal = imgproc_Imgproc_getFontScaleFromHeight_10(fontFace, pixelHeight, thickness);
- return retVal;
- #else
- return -1;
- #endif
- }
- //javadoc: getFontScaleFromHeight(fontFace, pixelHeight)
- public static double getFontScaleFromHeight(int fontFace, int pixelHeight) {
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- double retVal = imgproc_Imgproc_getFontScaleFromHeight_11(fontFace, pixelHeight);
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: double cv::matchShapes(Mat contour1, Mat contour2, int method, double parameter)
- //
- //javadoc: matchShapes(contour1, contour2, method, parameter)
- public static double matchShapes(Mat contour1, Mat contour2, int method, double parameter) {
- if (contour1 != null) contour1.ThrowIfDisposed();
- if (contour2 != null) contour2.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- double retVal = imgproc_Imgproc_matchShapes_10(contour1.nativeObj, contour2.nativeObj, method, parameter);
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: double cv::minEnclosingTriangle(Mat points, Mat& triangle)
- //
- //javadoc: minEnclosingTriangle(points, triangle)
- public static double minEnclosingTriangle(Mat points, Mat triangle) {
- if (points != null) points.ThrowIfDisposed();
- if (triangle != null) triangle.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- double retVal = imgproc_Imgproc_minEnclosingTriangle_10(points.nativeObj, triangle.nativeObj);
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: double cv::pointPolygonTest(vector_Point2f contour, Point2f pt, bool measureDist)
- //
- //javadoc: pointPolygonTest(contour, pt, measureDist)
- public static double pointPolygonTest(MatOfPoint2f contour, Point pt, bool measureDist) {
- if (contour != null) contour.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- Mat contour_mat = contour;
- double retVal = imgproc_Imgproc_pointPolygonTest_10(contour_mat.nativeObj, pt.x, pt.y, measureDist);
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: double cv::threshold(Mat src, Mat& dst, double thresh, double maxval, int type)
- //
- //javadoc: threshold(src, dst, thresh, maxval, type)
- public static double threshold(Mat src, Mat dst, double thresh, double maxval, int type) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- double retVal = imgproc_Imgproc_threshold_10(src.nativeObj, dst.nativeObj, thresh, maxval, type);
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: float cv::intersectConvexConvex(Mat _p1, Mat _p2, Mat& _p12, bool handleNested = true)
- //
- //javadoc: intersectConvexConvex(_p1, _p2, _p12, handleNested)
- public static float intersectConvexConvex(Mat _p1, Mat _p2, Mat _p12, bool handleNested) {
- if (_p1 != null) _p1.ThrowIfDisposed();
- if (_p2 != null) _p2.ThrowIfDisposed();
- if (_p12 != null) _p12.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- float retVal = imgproc_Imgproc_intersectConvexConvex_10(_p1.nativeObj, _p2.nativeObj, _p12.nativeObj, handleNested);
- return retVal;
- #else
- return -1;
- #endif
- }
- //javadoc: intersectConvexConvex(_p1, _p2, _p12)
- public static float intersectConvexConvex(Mat _p1, Mat _p2, Mat _p12) {
- if (_p1 != null) _p1.ThrowIfDisposed();
- if (_p2 != null) _p2.ThrowIfDisposed();
- if (_p12 != null) _p12.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- float retVal = imgproc_Imgproc_intersectConvexConvex_11(_p1.nativeObj, _p2.nativeObj, _p12.nativeObj);
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: float cv::wrapperEMD(Mat signature1, Mat signature2, int distType, Mat cost = Mat(), Ptr_float& lowerBound = Ptr<float>(), Mat& flow = Mat())
- //
- //javadoc: EMD(signature1, signature2, distType, cost, flow)
- public static float EMD(Mat signature1, Mat signature2, int distType, Mat cost, Mat flow) {
- if (signature1 != null) signature1.ThrowIfDisposed();
- if (signature2 != null) signature2.ThrowIfDisposed();
- if (cost != null) cost.ThrowIfDisposed();
- if (flow != null) flow.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- float retVal = imgproc_Imgproc_EMD_10(signature1.nativeObj, signature2.nativeObj, distType, cost.nativeObj, flow.nativeObj);
- return retVal;
- #else
- return -1;
- #endif
- }
- //javadoc: EMD(signature1, signature2, distType, cost)
- public static float EMD(Mat signature1, Mat signature2, int distType, Mat cost) {
- if (signature1 != null) signature1.ThrowIfDisposed();
- if (signature2 != null) signature2.ThrowIfDisposed();
- if (cost != null) cost.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- float retVal = imgproc_Imgproc_EMD_11(signature1.nativeObj, signature2.nativeObj, distType, cost.nativeObj);
- return retVal;
- #else
- return -1;
- #endif
- }
- //javadoc: EMD(signature1, signature2, distType)
- public static float EMD(Mat signature1, Mat signature2, int distType) {
- if (signature1 != null) signature1.ThrowIfDisposed();
- if (signature2 != null) signature2.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- float retVal = imgproc_Imgproc_EMD_13(signature1.nativeObj, signature2.nativeObj, distType);
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: int cv::connectedComponents(Mat image, Mat& labels, int connectivity, int ltype, int ccltype)
- //
- //javadoc: connectedComponentsWithAlgorithm(image, labels, connectivity, ltype, ccltype)
- public static int connectedComponentsWithAlgorithm(Mat image, Mat labels, int connectivity, int ltype, int ccltype) {
- if (image != null) image.ThrowIfDisposed();
- if (labels != null) labels.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- int retVal = imgproc_Imgproc_connectedComponentsWithAlgorithm_10(image.nativeObj, labels.nativeObj, connectivity, ltype, ccltype);
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: int cv::connectedComponents(Mat image, Mat& labels, int connectivity = 8, int ltype = CV_32S)
- //
- //javadoc: connectedComponents(image, labels, connectivity, ltype)
- public static int connectedComponents(Mat image, Mat labels, int connectivity, int ltype) {
- if (image != null) image.ThrowIfDisposed();
- if (labels != null) labels.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- int retVal = imgproc_Imgproc_connectedComponents_10(image.nativeObj, labels.nativeObj, connectivity, ltype);
- return retVal;
- #else
- return -1;
- #endif
- }
- //javadoc: connectedComponents(image, labels, connectivity)
- public static int connectedComponents(Mat image, Mat labels, int connectivity) {
- if (image != null) image.ThrowIfDisposed();
- if (labels != null) labels.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- int retVal = imgproc_Imgproc_connectedComponents_11(image.nativeObj, labels.nativeObj, connectivity);
- return retVal;
- #else
- return -1;
- #endif
- }
- //javadoc: connectedComponents(image, labels)
- public static int connectedComponents(Mat image, Mat labels) {
- if (image != null) image.ThrowIfDisposed();
- if (labels != null) labels.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- int retVal = imgproc_Imgproc_connectedComponents_12(image.nativeObj, labels.nativeObj);
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: int cv::connectedComponentsWithStats(Mat image, Mat& labels, Mat& stats, Mat& centroids, int connectivity, int ltype, int ccltype)
- //
- //javadoc: connectedComponentsWithStatsWithAlgorithm(image, labels, stats, centroids, connectivity, ltype, ccltype)
- public static int connectedComponentsWithStatsWithAlgorithm(Mat image, Mat labels, Mat stats, Mat centroids, int connectivity, int ltype, int ccltype) {
- if (image != null) image.ThrowIfDisposed();
- if (labels != null) labels.ThrowIfDisposed();
- if (stats != null) stats.ThrowIfDisposed();
- if (centroids != null) centroids.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- int retVal = imgproc_Imgproc_connectedComponentsWithStatsWithAlgorithm_10(image.nativeObj, labels.nativeObj, stats.nativeObj, centroids.nativeObj, connectivity, ltype, ccltype);
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: int cv::connectedComponentsWithStats(Mat image, Mat& labels, Mat& stats, Mat& centroids, int connectivity = 8, int ltype = CV_32S)
- //
- //javadoc: connectedComponentsWithStats(image, labels, stats, centroids, connectivity, ltype)
- public static int connectedComponentsWithStats(Mat image, Mat labels, Mat stats, Mat centroids, int connectivity, int ltype) {
- if (image != null) image.ThrowIfDisposed();
- if (labels != null) labels.ThrowIfDisposed();
- if (stats != null) stats.ThrowIfDisposed();
- if (centroids != null) centroids.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- int retVal = imgproc_Imgproc_connectedComponentsWithStats_10(image.nativeObj, labels.nativeObj, stats.nativeObj, centroids.nativeObj, connectivity, ltype);
- return retVal;
- #else
- return -1;
- #endif
- }
- //javadoc: connectedComponentsWithStats(image, labels, stats, centroids, connectivity)
- public static int connectedComponentsWithStats(Mat image, Mat labels, Mat stats, Mat centroids, int connectivity) {
- if (image != null) image.ThrowIfDisposed();
- if (labels != null) labels.ThrowIfDisposed();
- if (stats != null) stats.ThrowIfDisposed();
- if (centroids != null) centroids.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- int retVal = imgproc_Imgproc_connectedComponentsWithStats_11(image.nativeObj, labels.nativeObj, stats.nativeObj, centroids.nativeObj, connectivity);
- return retVal;
- #else
- return -1;
- #endif
- }
- //javadoc: connectedComponentsWithStats(image, labels, stats, centroids)
- public static int connectedComponentsWithStats(Mat image, Mat labels, Mat stats, Mat centroids) {
- if (image != null) image.ThrowIfDisposed();
- if (labels != null) labels.ThrowIfDisposed();
- if (stats != null) stats.ThrowIfDisposed();
- if (centroids != null) centroids.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- int retVal = imgproc_Imgproc_connectedComponentsWithStats_12(image.nativeObj, labels.nativeObj, stats.nativeObj, centroids.nativeObj);
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: int cv::floodFill(Mat& image, Mat& mask, Point seedPoint, Scalar newVal, Rect* rect = 0, Scalar loDiff = Scalar(), Scalar upDiff = Scalar(), int flags = 4)
- //
- //javadoc: floodFill(image, mask, seedPoint, newVal, rect, loDiff, upDiff, flags)
- public static int floodFill(Mat image, Mat mask, Point seedPoint, Scalar newVal, Rect rect, Scalar loDiff, Scalar upDiff, int flags) {
- if (image != null) image.ThrowIfDisposed();
- if (mask != null) mask.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- double[] rect_out = new double[4];
- int retVal = imgproc_Imgproc_floodFill_10(image.nativeObj, mask.nativeObj, seedPoint.x, seedPoint.y, newVal.val[0], newVal.val[1], newVal.val[2], newVal.val[3], rect_out, loDiff.val[0], loDiff.val[1], loDiff.val[2], loDiff.val[3], upDiff.val[0], upDiff.val[1], upDiff.val[2], upDiff.val[3], flags);
- if (rect != null) { rect.x = (int)rect_out[0]; rect.y = (int)rect_out[1]; rect.width = (int)rect_out[2]; rect.height = (int)rect_out[3]; }
- return retVal;
- #else
- return -1;
- #endif
- }
- //javadoc: floodFill(image, mask, seedPoint, newVal, rect, loDiff, upDiff)
- public static int floodFill(Mat image, Mat mask, Point seedPoint, Scalar newVal, Rect rect, Scalar loDiff, Scalar upDiff) {
- if (image != null) image.ThrowIfDisposed();
- if (mask != null) mask.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- double[] rect_out = new double[4];
- int retVal = imgproc_Imgproc_floodFill_11(image.nativeObj, mask.nativeObj, seedPoint.x, seedPoint.y, newVal.val[0], newVal.val[1], newVal.val[2], newVal.val[3], rect_out, loDiff.val[0], loDiff.val[1], loDiff.val[2], loDiff.val[3], upDiff.val[0], upDiff.val[1], upDiff.val[2], upDiff.val[3]);
- if (rect != null) { rect.x = (int)rect_out[0]; rect.y = (int)rect_out[1]; rect.width = (int)rect_out[2]; rect.height = (int)rect_out[3]; }
- return retVal;
- #else
- return -1;
- #endif
- }
- //javadoc: floodFill(image, mask, seedPoint, newVal, rect, loDiff)
- public static int floodFill(Mat image, Mat mask, Point seedPoint, Scalar newVal, Rect rect, Scalar loDiff) {
- if (image != null) image.ThrowIfDisposed();
- if (mask != null) mask.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- double[] rect_out = new double[4];
- int retVal = imgproc_Imgproc_floodFill_12(image.nativeObj, mask.nativeObj, seedPoint.x, seedPoint.y, newVal.val[0], newVal.val[1], newVal.val[2], newVal.val[3], rect_out, loDiff.val[0], loDiff.val[1], loDiff.val[2], loDiff.val[3]);
- if (rect != null) { rect.x = (int)rect_out[0]; rect.y = (int)rect_out[1]; rect.width = (int)rect_out[2]; rect.height = (int)rect_out[3]; }
- return retVal;
- #else
- return -1;
- #endif
- }
- //javadoc: floodFill(image, mask, seedPoint, newVal, rect)
- public static int floodFill(Mat image, Mat mask, Point seedPoint, Scalar newVal, Rect rect) {
- if (image != null) image.ThrowIfDisposed();
- if (mask != null) mask.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- double[] rect_out = new double[4];
- int retVal = imgproc_Imgproc_floodFill_13(image.nativeObj, mask.nativeObj, seedPoint.x, seedPoint.y, newVal.val[0], newVal.val[1], newVal.val[2], newVal.val[3], rect_out);
- if (rect != null) { rect.x = (int)rect_out[0]; rect.y = (int)rect_out[1]; rect.width = (int)rect_out[2]; rect.height = (int)rect_out[3]; }
- return retVal;
- #else
- return -1;
- #endif
- }
- //javadoc: floodFill(image, mask, seedPoint, newVal)
- public static int floodFill(Mat image, Mat mask, Point seedPoint, Scalar newVal) {
- if (image != null) image.ThrowIfDisposed();
- if (mask != null) mask.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- int retVal = imgproc_Imgproc_floodFill_14(image.nativeObj, mask.nativeObj, seedPoint.x, seedPoint.y, newVal.val[0], newVal.val[1], newVal.val[2], newVal.val[3]);
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: int cv::rotatedRectangleIntersection(RotatedRect rect1, RotatedRect rect2, Mat& intersectingRegion)
- //
- //javadoc: rotatedRectangleIntersection(rect1, rect2, intersectingRegion)
- public static int rotatedRectangleIntersection(RotatedRect rect1, RotatedRect rect2, Mat intersectingRegion) {
- if (intersectingRegion != null) intersectingRegion.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- int retVal = imgproc_Imgproc_rotatedRectangleIntersection_10(rect1.center.x, rect1.center.y, rect1.size.width, rect1.size.height, rect1.angle, rect2.center.x, rect2.center.y, rect2.size.width, rect2.size.height, rect2.angle, intersectingRegion.nativeObj);
- return retVal;
- #else
- return -1;
- #endif
- }
- //
- // C++: void cv::Canny(Mat dx, Mat dy, Mat& edges, double threshold1, double threshold2, bool L2gradient = false)
- //
- //javadoc: Canny(dx, dy, edges, threshold1, threshold2, L2gradient)
- public static void Canny(Mat dx, Mat dy, Mat edges, double threshold1, double threshold2, bool L2gradient) {
- if (dx != null) dx.ThrowIfDisposed();
- if (dy != null) dy.ThrowIfDisposed();
- if (edges != null) edges.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_Canny_10(dx.nativeObj, dy.nativeObj, edges.nativeObj, threshold1, threshold2, L2gradient);
- return;
- #else
- return;
- #endif
- }
- //javadoc: Canny(dx, dy, edges, threshold1, threshold2)
- public static void Canny(Mat dx, Mat dy, Mat edges, double threshold1, double threshold2) {
- if (dx != null) dx.ThrowIfDisposed();
- if (dy != null) dy.ThrowIfDisposed();
- if (edges != null) edges.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_Canny_11(dx.nativeObj, dy.nativeObj, edges.nativeObj, threshold1, threshold2);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::Canny(Mat image, Mat& edges, double threshold1, double threshold2, int apertureSize = 3, bool L2gradient = false)
- //
- //javadoc: Canny(image, edges, threshold1, threshold2, apertureSize, L2gradient)
- public static void Canny(Mat image, Mat edges, double threshold1, double threshold2, int apertureSize, bool L2gradient) {
- if (image != null) image.ThrowIfDisposed();
- if (edges != null) edges.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_Canny_12(image.nativeObj, edges.nativeObj, threshold1, threshold2, apertureSize, L2gradient);
- return;
- #else
- return;
- #endif
- }
- //javadoc: Canny(image, edges, threshold1, threshold2, apertureSize)
- public static void Canny(Mat image, Mat edges, double threshold1, double threshold2, int apertureSize) {
- if (image != null) image.ThrowIfDisposed();
- if (edges != null) edges.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_Canny_13(image.nativeObj, edges.nativeObj, threshold1, threshold2, apertureSize);
- return;
- #else
- return;
- #endif
- }
- //javadoc: Canny(image, edges, threshold1, threshold2)
- public static void Canny(Mat image, Mat edges, double threshold1, double threshold2) {
- if (image != null) image.ThrowIfDisposed();
- if (edges != null) edges.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_Canny_14(image.nativeObj, edges.nativeObj, threshold1, threshold2);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::GaussianBlur(Mat src, Mat& dst, Size ksize, double sigmaX, double sigmaY = 0, int borderType = BORDER_DEFAULT)
- //
- //javadoc: GaussianBlur(src, dst, ksize, sigmaX, sigmaY, borderType)
- public static void GaussianBlur(Mat src, Mat dst, Size ksize, double sigmaX, double sigmaY, int borderType) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_GaussianBlur_10(src.nativeObj, dst.nativeObj, ksize.width, ksize.height, sigmaX, sigmaY, borderType);
- return;
- #else
- return;
- #endif
- }
- //javadoc: GaussianBlur(src, dst, ksize, sigmaX, sigmaY)
- public static void GaussianBlur(Mat src, Mat dst, Size ksize, double sigmaX, double sigmaY) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_GaussianBlur_11(src.nativeObj, dst.nativeObj, ksize.width, ksize.height, sigmaX, sigmaY);
- return;
- #else
- return;
- #endif
- }
- //javadoc: GaussianBlur(src, dst, ksize, sigmaX)
- public static void GaussianBlur(Mat src, Mat dst, Size ksize, double sigmaX) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_GaussianBlur_12(src.nativeObj, dst.nativeObj, ksize.width, ksize.height, sigmaX);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::HoughCircles(Mat image, Mat& circles, int method, double dp, double minDist, double param1 = 100, double param2 = 100, int minRadius = 0, int maxRadius = 0)
- //
- //javadoc: HoughCircles(image, circles, method, dp, minDist, param1, param2, minRadius, maxRadius)
- public static void HoughCircles(Mat image, Mat circles, int method, double dp, double minDist, double param1, double param2, int minRadius, int maxRadius) {
- if (image != null) image.ThrowIfDisposed();
- if (circles != null) circles.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_HoughCircles_10(image.nativeObj, circles.nativeObj, method, dp, minDist, param1, param2, minRadius, maxRadius);
- return;
- #else
- return;
- #endif
- }
- //javadoc: HoughCircles(image, circles, method, dp, minDist, param1, param2, minRadius)
- public static void HoughCircles(Mat image, Mat circles, int method, double dp, double minDist, double param1, double param2, int minRadius) {
- if (image != null) image.ThrowIfDisposed();
- if (circles != null) circles.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_HoughCircles_11(image.nativeObj, circles.nativeObj, method, dp, minDist, param1, param2, minRadius);
- return;
- #else
- return;
- #endif
- }
- //javadoc: HoughCircles(image, circles, method, dp, minDist, param1, param2)
- public static void HoughCircles(Mat image, Mat circles, int method, double dp, double minDist, double param1, double param2) {
- if (image != null) image.ThrowIfDisposed();
- if (circles != null) circles.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_HoughCircles_12(image.nativeObj, circles.nativeObj, method, dp, minDist, param1, param2);
- return;
- #else
- return;
- #endif
- }
- //javadoc: HoughCircles(image, circles, method, dp, minDist, param1)
- public static void HoughCircles(Mat image, Mat circles, int method, double dp, double minDist, double param1) {
- if (image != null) image.ThrowIfDisposed();
- if (circles != null) circles.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_HoughCircles_13(image.nativeObj, circles.nativeObj, method, dp, minDist, param1);
- return;
- #else
- return;
- #endif
- }
- //javadoc: HoughCircles(image, circles, method, dp, minDist)
- public static void HoughCircles(Mat image, Mat circles, int method, double dp, double minDist) {
- if (image != null) image.ThrowIfDisposed();
- if (circles != null) circles.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_HoughCircles_14(image.nativeObj, circles.nativeObj, method, dp, minDist);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::HoughLines(Mat image, Mat& lines, double rho, double theta, int threshold, double srn = 0, double stn = 0, double min_theta = 0, double max_theta = CV_PI)
- //
- //javadoc: HoughLines(image, lines, rho, theta, threshold, srn, stn, min_theta, max_theta)
- public static void HoughLines(Mat image, Mat lines, double rho, double theta, int threshold, double srn, double stn, double min_theta, double max_theta) {
- if (image != null) image.ThrowIfDisposed();
- if (lines != null) lines.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_HoughLines_10(image.nativeObj, lines.nativeObj, rho, theta, threshold, srn, stn, min_theta, max_theta);
- return;
- #else
- return;
- #endif
- }
- //javadoc: HoughLines(image, lines, rho, theta, threshold, srn, stn, min_theta)
- public static void HoughLines(Mat image, Mat lines, double rho, double theta, int threshold, double srn, double stn, double min_theta) {
- if (image != null) image.ThrowIfDisposed();
- if (lines != null) lines.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_HoughLines_11(image.nativeObj, lines.nativeObj, rho, theta, threshold, srn, stn, min_theta);
- return;
- #else
- return;
- #endif
- }
- //javadoc: HoughLines(image, lines, rho, theta, threshold, srn, stn)
- public static void HoughLines(Mat image, Mat lines, double rho, double theta, int threshold, double srn, double stn) {
- if (image != null) image.ThrowIfDisposed();
- if (lines != null) lines.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_HoughLines_12(image.nativeObj, lines.nativeObj, rho, theta, threshold, srn, stn);
- return;
- #else
- return;
- #endif
- }
- //javadoc: HoughLines(image, lines, rho, theta, threshold, srn)
- public static void HoughLines(Mat image, Mat lines, double rho, double theta, int threshold, double srn) {
- if (image != null) image.ThrowIfDisposed();
- if (lines != null) lines.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_HoughLines_13(image.nativeObj, lines.nativeObj, rho, theta, threshold, srn);
- return;
- #else
- return;
- #endif
- }
- //javadoc: HoughLines(image, lines, rho, theta, threshold)
- public static void HoughLines(Mat image, Mat lines, double rho, double theta, int threshold) {
- if (image != null) image.ThrowIfDisposed();
- if (lines != null) lines.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_HoughLines_14(image.nativeObj, lines.nativeObj, rho, theta, threshold);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::HoughLinesP(Mat image, Mat& lines, double rho, double theta, int threshold, double minLineLength = 0, double maxLineGap = 0)
- //
- //javadoc: HoughLinesP(image, lines, rho, theta, threshold, minLineLength, maxLineGap)
- public static void HoughLinesP(Mat image, Mat lines, double rho, double theta, int threshold, double minLineLength, double maxLineGap) {
- if (image != null) image.ThrowIfDisposed();
- if (lines != null) lines.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_HoughLinesP_10(image.nativeObj, lines.nativeObj, rho, theta, threshold, minLineLength, maxLineGap);
- return;
- #else
- return;
- #endif
- }
- //javadoc: HoughLinesP(image, lines, rho, theta, threshold, minLineLength)
- public static void HoughLinesP(Mat image, Mat lines, double rho, double theta, int threshold, double minLineLength) {
- if (image != null) image.ThrowIfDisposed();
- if (lines != null) lines.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_HoughLinesP_11(image.nativeObj, lines.nativeObj, rho, theta, threshold, minLineLength);
- return;
- #else
- return;
- #endif
- }
- //javadoc: HoughLinesP(image, lines, rho, theta, threshold)
- public static void HoughLinesP(Mat image, Mat lines, double rho, double theta, int threshold) {
- if (image != null) image.ThrowIfDisposed();
- if (lines != null) lines.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_HoughLinesP_12(image.nativeObj, lines.nativeObj, rho, theta, threshold);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::HoughLinesPointSet(Mat _point, Mat& _lines, int lines_max, int threshold, double min_rho, double max_rho, double rho_step, double min_theta, double max_theta, double theta_step)
- //
- //javadoc: HoughLinesPointSet(_point, _lines, lines_max, threshold, min_rho, max_rho, rho_step, min_theta, max_theta, theta_step)
- public static void HoughLinesPointSet(Mat _point, Mat _lines, int lines_max, int threshold, double min_rho, double max_rho, double rho_step, double min_theta, double max_theta, double theta_step) {
- if (_point != null) _point.ThrowIfDisposed();
- if (_lines != null) _lines.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_HoughLinesPointSet_10(_point.nativeObj, _lines.nativeObj, lines_max, threshold, min_rho, max_rho, rho_step, min_theta, max_theta, theta_step);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::HuMoments(Moments m, Mat& hu)
- //
- //javadoc: HuMoments(m, hu)
- public static void HuMoments(Moments m, Mat hu) {
- if (hu != null) hu.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_HuMoments_10(m.m00, m.m10, m.m01, m.m20, m.m11, m.m02, m.m30, m.m21, m.m12, m.m03, hu.nativeObj);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::Laplacian(Mat src, Mat& dst, int ddepth, int ksize = 1, double scale = 1, double delta = 0, int borderType = BORDER_DEFAULT)
- //
- //javadoc: Laplacian(src, dst, ddepth, ksize, scale, delta, borderType)
- public static void Laplacian(Mat src, Mat dst, int ddepth, int ksize, double scale, double delta, int borderType) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_Laplacian_10(src.nativeObj, dst.nativeObj, ddepth, ksize, scale, delta, borderType);
- return;
- #else
- return;
- #endif
- }
- //javadoc: Laplacian(src, dst, ddepth, ksize, scale, delta)
- public static void Laplacian(Mat src, Mat dst, int ddepth, int ksize, double scale, double delta) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_Laplacian_11(src.nativeObj, dst.nativeObj, ddepth, ksize, scale, delta);
- return;
- #else
- return;
- #endif
- }
- //javadoc: Laplacian(src, dst, ddepth, ksize, scale)
- public static void Laplacian(Mat src, Mat dst, int ddepth, int ksize, double scale) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_Laplacian_12(src.nativeObj, dst.nativeObj, ddepth, ksize, scale);
- return;
- #else
- return;
- #endif
- }
- //javadoc: Laplacian(src, dst, ddepth, ksize)
- public static void Laplacian(Mat src, Mat dst, int ddepth, int ksize) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_Laplacian_13(src.nativeObj, dst.nativeObj, ddepth, ksize);
- return;
- #else
- return;
- #endif
- }
- //javadoc: Laplacian(src, dst, ddepth)
- public static void Laplacian(Mat src, Mat dst, int ddepth) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_Laplacian_14(src.nativeObj, dst.nativeObj, ddepth);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::Scharr(Mat src, Mat& dst, int ddepth, int dx, int dy, double scale = 1, double delta = 0, int borderType = BORDER_DEFAULT)
- //
- //javadoc: Scharr(src, dst, ddepth, dx, dy, scale, delta, borderType)
- public static void Scharr(Mat src, Mat dst, int ddepth, int dx, int dy, double scale, double delta, int borderType) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_Scharr_10(src.nativeObj, dst.nativeObj, ddepth, dx, dy, scale, delta, borderType);
- return;
- #else
- return;
- #endif
- }
- //javadoc: Scharr(src, dst, ddepth, dx, dy, scale, delta)
- public static void Scharr(Mat src, Mat dst, int ddepth, int dx, int dy, double scale, double delta) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_Scharr_11(src.nativeObj, dst.nativeObj, ddepth, dx, dy, scale, delta);
- return;
- #else
- return;
- #endif
- }
- //javadoc: Scharr(src, dst, ddepth, dx, dy, scale)
- public static void Scharr(Mat src, Mat dst, int ddepth, int dx, int dy, double scale) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_Scharr_12(src.nativeObj, dst.nativeObj, ddepth, dx, dy, scale);
- return;
- #else
- return;
- #endif
- }
- //javadoc: Scharr(src, dst, ddepth, dx, dy)
- public static void Scharr(Mat src, Mat dst, int ddepth, int dx, int dy) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_Scharr_13(src.nativeObj, dst.nativeObj, ddepth, dx, dy);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::Sobel(Mat src, Mat& dst, int ddepth, int dx, int dy, int ksize = 3, double scale = 1, double delta = 0, int borderType = BORDER_DEFAULT)
- //
- //javadoc: Sobel(src, dst, ddepth, dx, dy, ksize, scale, delta, borderType)
- public static void Sobel(Mat src, Mat dst, int ddepth, int dx, int dy, int ksize, double scale, double delta, int borderType) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_Sobel_10(src.nativeObj, dst.nativeObj, ddepth, dx, dy, ksize, scale, delta, borderType);
- return;
- #else
- return;
- #endif
- }
- //javadoc: Sobel(src, dst, ddepth, dx, dy, ksize, scale, delta)
- public static void Sobel(Mat src, Mat dst, int ddepth, int dx, int dy, int ksize, double scale, double delta) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_Sobel_11(src.nativeObj, dst.nativeObj, ddepth, dx, dy, ksize, scale, delta);
- return;
- #else
- return;
- #endif
- }
- //javadoc: Sobel(src, dst, ddepth, dx, dy, ksize, scale)
- public static void Sobel(Mat src, Mat dst, int ddepth, int dx, int dy, int ksize, double scale) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_Sobel_12(src.nativeObj, dst.nativeObj, ddepth, dx, dy, ksize, scale);
- return;
- #else
- return;
- #endif
- }
- //javadoc: Sobel(src, dst, ddepth, dx, dy, ksize)
- public static void Sobel(Mat src, Mat dst, int ddepth, int dx, int dy, int ksize) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_Sobel_13(src.nativeObj, dst.nativeObj, ddepth, dx, dy, ksize);
- return;
- #else
- return;
- #endif
- }
- //javadoc: Sobel(src, dst, ddepth, dx, dy)
- public static void Sobel(Mat src, Mat dst, int ddepth, int dx, int dy) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_Sobel_14(src.nativeObj, dst.nativeObj, ddepth, dx, dy);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::accumulate(Mat src, Mat& dst, Mat mask = Mat())
- //
- //javadoc: accumulate(src, dst, mask)
- public static void accumulate(Mat src, Mat dst, Mat mask) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (mask != null) mask.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_accumulate_10(src.nativeObj, dst.nativeObj, mask.nativeObj);
- return;
- #else
- return;
- #endif
- }
- //javadoc: accumulate(src, dst)
- public static void accumulate(Mat src, Mat dst) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_accumulate_11(src.nativeObj, dst.nativeObj);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::accumulateProduct(Mat src1, Mat src2, Mat& dst, Mat mask = Mat())
- //
- //javadoc: accumulateProduct(src1, src2, dst, mask)
- public static void accumulateProduct(Mat src1, Mat src2, Mat dst, Mat mask) {
- if (src1 != null) src1.ThrowIfDisposed();
- if (src2 != null) src2.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (mask != null) mask.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_accumulateProduct_10(src1.nativeObj, src2.nativeObj, dst.nativeObj, mask.nativeObj);
- return;
- #else
- return;
- #endif
- }
- //javadoc: accumulateProduct(src1, src2, dst)
- public static void accumulateProduct(Mat src1, Mat src2, Mat dst) {
- if (src1 != null) src1.ThrowIfDisposed();
- if (src2 != null) src2.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_accumulateProduct_11(src1.nativeObj, src2.nativeObj, dst.nativeObj);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::accumulateSquare(Mat src, Mat& dst, Mat mask = Mat())
- //
- //javadoc: accumulateSquare(src, dst, mask)
- public static void accumulateSquare(Mat src, Mat dst, Mat mask) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (mask != null) mask.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_accumulateSquare_10(src.nativeObj, dst.nativeObj, mask.nativeObj);
- return;
- #else
- return;
- #endif
- }
- //javadoc: accumulateSquare(src, dst)
- public static void accumulateSquare(Mat src, Mat dst) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_accumulateSquare_11(src.nativeObj, dst.nativeObj);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::accumulateWeighted(Mat src, Mat& dst, double alpha, Mat mask = Mat())
- //
- //javadoc: accumulateWeighted(src, dst, alpha, mask)
- public static void accumulateWeighted(Mat src, Mat dst, double alpha, Mat mask) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (mask != null) mask.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_accumulateWeighted_10(src.nativeObj, dst.nativeObj, alpha, mask.nativeObj);
- return;
- #else
- return;
- #endif
- }
- //javadoc: accumulateWeighted(src, dst, alpha)
- public static void accumulateWeighted(Mat src, Mat dst, double alpha) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_accumulateWeighted_11(src.nativeObj, dst.nativeObj, alpha);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::adaptiveThreshold(Mat src, Mat& dst, double maxValue, int adaptiveMethod, int thresholdType, int blockSize, double C)
- //
- //javadoc: adaptiveThreshold(src, dst, maxValue, adaptiveMethod, thresholdType, blockSize, C)
- public static void adaptiveThreshold(Mat src, Mat dst, double maxValue, int adaptiveMethod, int thresholdType, int blockSize, double C) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_adaptiveThreshold_10(src.nativeObj, dst.nativeObj, maxValue, adaptiveMethod, thresholdType, blockSize, C);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::applyColorMap(Mat src, Mat& dst, Mat userColor)
- //
- //javadoc: applyColorMap(src, dst, userColor)
- public static void applyColorMap(Mat src, Mat dst, Mat userColor) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (userColor != null) userColor.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_applyColorMap_10(src.nativeObj, dst.nativeObj, userColor.nativeObj);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::applyColorMap(Mat src, Mat& dst, int colormap)
- //
- //javadoc: applyColorMap(src, dst, colormap)
- public static void applyColorMap(Mat src, Mat dst, int colormap) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_applyColorMap_11(src.nativeObj, dst.nativeObj, colormap);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::approxPolyDP(vector_Point2f curve, vector_Point2f& approxCurve, double epsilon, bool closed)
- //
- //javadoc: approxPolyDP(curve, approxCurve, epsilon, closed)
- public static void approxPolyDP(MatOfPoint2f curve, MatOfPoint2f approxCurve, double epsilon, bool closed) {
- if (curve != null) curve.ThrowIfDisposed();
- if (approxCurve != null) approxCurve.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- Mat curve_mat = curve;
- Mat approxCurve_mat = approxCurve;
- imgproc_Imgproc_approxPolyDP_10(curve_mat.nativeObj, approxCurve_mat.nativeObj, epsilon, closed);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::arrowedLine(Mat& img, Point pt1, Point pt2, Scalar color, int thickness = 1, int line_type = 8, int shift = 0, double tipLength = 0.1)
- //
- //javadoc: arrowedLine(img, pt1, pt2, color, thickness, line_type, shift, tipLength)
- public static void arrowedLine(Mat img, Point pt1, Point pt2, Scalar color, int thickness, int line_type, int shift, double tipLength) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_arrowedLine_10(img.nativeObj, pt1.x, pt1.y, pt2.x, pt2.y, color.val[0], color.val[1], color.val[2], color.val[3], thickness, line_type, shift, tipLength);
- return;
- #else
- return;
- #endif
- }
- //javadoc: arrowedLine(img, pt1, pt2, color, thickness, line_type, shift)
- public static void arrowedLine(Mat img, Point pt1, Point pt2, Scalar color, int thickness, int line_type, int shift) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_arrowedLine_11(img.nativeObj, pt1.x, pt1.y, pt2.x, pt2.y, color.val[0], color.val[1], color.val[2], color.val[3], thickness, line_type, shift);
- return;
- #else
- return;
- #endif
- }
- //javadoc: arrowedLine(img, pt1, pt2, color, thickness, line_type)
- public static void arrowedLine(Mat img, Point pt1, Point pt2, Scalar color, int thickness, int line_type) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_arrowedLine_12(img.nativeObj, pt1.x, pt1.y, pt2.x, pt2.y, color.val[0], color.val[1], color.val[2], color.val[3], thickness, line_type);
- return;
- #else
- return;
- #endif
- }
- //javadoc: arrowedLine(img, pt1, pt2, color, thickness)
- public static void arrowedLine(Mat img, Point pt1, Point pt2, Scalar color, int thickness) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_arrowedLine_13(img.nativeObj, pt1.x, pt1.y, pt2.x, pt2.y, color.val[0], color.val[1], color.val[2], color.val[3], thickness);
- return;
- #else
- return;
- #endif
- }
- //javadoc: arrowedLine(img, pt1, pt2, color)
- public static void arrowedLine(Mat img, Point pt1, Point pt2, Scalar color) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_arrowedLine_14(img.nativeObj, pt1.x, pt1.y, pt2.x, pt2.y, color.val[0], color.val[1], color.val[2], color.val[3]);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::bilateralFilter(Mat src, Mat& dst, int d, double sigmaColor, double sigmaSpace, int borderType = BORDER_DEFAULT)
- //
- //javadoc: bilateralFilter(src, dst, d, sigmaColor, sigmaSpace, borderType)
- public static void bilateralFilter(Mat src, Mat dst, int d, double sigmaColor, double sigmaSpace, int borderType) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_bilateralFilter_10(src.nativeObj, dst.nativeObj, d, sigmaColor, sigmaSpace, borderType);
- return;
- #else
- return;
- #endif
- }
- //javadoc: bilateralFilter(src, dst, d, sigmaColor, sigmaSpace)
- public static void bilateralFilter(Mat src, Mat dst, int d, double sigmaColor, double sigmaSpace) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_bilateralFilter_11(src.nativeObj, dst.nativeObj, d, sigmaColor, sigmaSpace);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::blur(Mat src, Mat& dst, Size ksize, Point anchor = Point(-1,-1), int borderType = BORDER_DEFAULT)
- //
- //javadoc: blur(src, dst, ksize, anchor, borderType)
- public static void blur(Mat src, Mat dst, Size ksize, Point anchor, int borderType) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_blur_10(src.nativeObj, dst.nativeObj, ksize.width, ksize.height, anchor.x, anchor.y, borderType);
- return;
- #else
- return;
- #endif
- }
- //javadoc: blur(src, dst, ksize, anchor)
- public static void blur(Mat src, Mat dst, Size ksize, Point anchor) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_blur_11(src.nativeObj, dst.nativeObj, ksize.width, ksize.height, anchor.x, anchor.y);
- return;
- #else
- return;
- #endif
- }
- //javadoc: blur(src, dst, ksize)
- public static void blur(Mat src, Mat dst, Size ksize) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_blur_12(src.nativeObj, dst.nativeObj, ksize.width, ksize.height);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::boxFilter(Mat src, Mat& dst, int ddepth, Size ksize, Point anchor = Point(-1,-1), bool normalize = true, int borderType = BORDER_DEFAULT)
- //
- //javadoc: boxFilter(src, dst, ddepth, ksize, anchor, normalize, borderType)
- public static void boxFilter(Mat src, Mat dst, int ddepth, Size ksize, Point anchor, bool normalize, int borderType) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_boxFilter_10(src.nativeObj, dst.nativeObj, ddepth, ksize.width, ksize.height, anchor.x, anchor.y, normalize, borderType);
- return;
- #else
- return;
- #endif
- }
- //javadoc: boxFilter(src, dst, ddepth, ksize, anchor, normalize)
- public static void boxFilter(Mat src, Mat dst, int ddepth, Size ksize, Point anchor, bool normalize) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_boxFilter_11(src.nativeObj, dst.nativeObj, ddepth, ksize.width, ksize.height, anchor.x, anchor.y, normalize);
- return;
- #else
- return;
- #endif
- }
- //javadoc: boxFilter(src, dst, ddepth, ksize, anchor)
- public static void boxFilter(Mat src, Mat dst, int ddepth, Size ksize, Point anchor) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_boxFilter_12(src.nativeObj, dst.nativeObj, ddepth, ksize.width, ksize.height, anchor.x, anchor.y);
- return;
- #else
- return;
- #endif
- }
- //javadoc: boxFilter(src, dst, ddepth, ksize)
- public static void boxFilter(Mat src, Mat dst, int ddepth, Size ksize) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_boxFilter_13(src.nativeObj, dst.nativeObj, ddepth, ksize.width, ksize.height);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::boxPoints(RotatedRect box, Mat& points)
- //
- //javadoc: boxPoints(box, points)
- public static void boxPoints(RotatedRect box, Mat points) {
- if (points != null) points.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_boxPoints_10(box.center.x, box.center.y, box.size.width, box.size.height, box.angle, points.nativeObj);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::calcBackProject(vector_Mat images, vector_int channels, Mat hist, Mat& dst, vector_float ranges, double scale)
- //
- //javadoc: calcBackProject(images, channels, hist, dst, ranges, scale)
- public static void calcBackProject(List<Mat> images, MatOfInt channels, Mat hist, Mat dst, MatOfFloat ranges, double scale) {
- if (channels != null) channels.ThrowIfDisposed();
- if (hist != null) hist.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (ranges != null) ranges.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- Mat images_mat = Converters.vector_Mat_to_Mat(images);
- Mat channels_mat = channels;
- Mat ranges_mat = ranges;
- imgproc_Imgproc_calcBackProject_10(images_mat.nativeObj, channels_mat.nativeObj, hist.nativeObj, dst.nativeObj, ranges_mat.nativeObj, scale);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::calcHist(vector_Mat images, vector_int channels, Mat mask, Mat& hist, vector_int histSize, vector_float ranges, bool accumulate = false)
- //
- //javadoc: calcHist(images, channels, mask, hist, histSize, ranges, accumulate)
- public static void calcHist(List<Mat> images, MatOfInt channels, Mat mask, Mat hist, MatOfInt histSize, MatOfFloat ranges, bool accumulate) {
- if (channels != null) channels.ThrowIfDisposed();
- if (mask != null) mask.ThrowIfDisposed();
- if (hist != null) hist.ThrowIfDisposed();
- if (histSize != null) histSize.ThrowIfDisposed();
- if (ranges != null) ranges.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- Mat images_mat = Converters.vector_Mat_to_Mat(images);
- Mat channels_mat = channels;
- Mat histSize_mat = histSize;
- Mat ranges_mat = ranges;
- imgproc_Imgproc_calcHist_10(images_mat.nativeObj, channels_mat.nativeObj, mask.nativeObj, hist.nativeObj, histSize_mat.nativeObj, ranges_mat.nativeObj, accumulate);
- return;
- #else
- return;
- #endif
- }
- //javadoc: calcHist(images, channels, mask, hist, histSize, ranges)
- public static void calcHist(List<Mat> images, MatOfInt channels, Mat mask, Mat hist, MatOfInt histSize, MatOfFloat ranges) {
- if (channels != null) channels.ThrowIfDisposed();
- if (mask != null) mask.ThrowIfDisposed();
- if (hist != null) hist.ThrowIfDisposed();
- if (histSize != null) histSize.ThrowIfDisposed();
- if (ranges != null) ranges.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- Mat images_mat = Converters.vector_Mat_to_Mat(images);
- Mat channels_mat = channels;
- Mat histSize_mat = histSize;
- Mat ranges_mat = ranges;
- imgproc_Imgproc_calcHist_11(images_mat.nativeObj, channels_mat.nativeObj, mask.nativeObj, hist.nativeObj, histSize_mat.nativeObj, ranges_mat.nativeObj);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::circle(Mat& img, Point center, int radius, Scalar color, int thickness = 1, int lineType = LINE_8, int shift = 0)
- //
- //javadoc: circle(img, center, radius, color, thickness, lineType, shift)
- public static void circle(Mat img, Point center, int radius, Scalar color, int thickness, int lineType, int shift) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_circle_10(img.nativeObj, center.x, center.y, radius, color.val[0], color.val[1], color.val[2], color.val[3], thickness, lineType, shift);
- return;
- #else
- return;
- #endif
- }
- //javadoc: circle(img, center, radius, color, thickness, lineType)
- public static void circle(Mat img, Point center, int radius, Scalar color, int thickness, int lineType) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_circle_11(img.nativeObj, center.x, center.y, radius, color.val[0], color.val[1], color.val[2], color.val[3], thickness, lineType);
- return;
- #else
- return;
- #endif
- }
- //javadoc: circle(img, center, radius, color, thickness)
- public static void circle(Mat img, Point center, int radius, Scalar color, int thickness) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_circle_12(img.nativeObj, center.x, center.y, radius, color.val[0], color.val[1], color.val[2], color.val[3], thickness);
- return;
- #else
- return;
- #endif
- }
- //javadoc: circle(img, center, radius, color)
- public static void circle(Mat img, Point center, int radius, Scalar color) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_circle_13(img.nativeObj, center.x, center.y, radius, color.val[0], color.val[1], color.val[2], color.val[3]);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::convertMaps(Mat map1, Mat map2, Mat& dstmap1, Mat& dstmap2, int dstmap1type, bool nninterpolation = false)
- //
- //javadoc: convertMaps(map1, map2, dstmap1, dstmap2, dstmap1type, nninterpolation)
- public static void convertMaps(Mat map1, Mat map2, Mat dstmap1, Mat dstmap2, int dstmap1type, bool nninterpolation) {
- if (map1 != null) map1.ThrowIfDisposed();
- if (map2 != null) map2.ThrowIfDisposed();
- if (dstmap1 != null) dstmap1.ThrowIfDisposed();
- if (dstmap2 != null) dstmap2.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_convertMaps_10(map1.nativeObj, map2.nativeObj, dstmap1.nativeObj, dstmap2.nativeObj, dstmap1type, nninterpolation);
- return;
- #else
- return;
- #endif
- }
- //javadoc: convertMaps(map1, map2, dstmap1, dstmap2, dstmap1type)
- public static void convertMaps(Mat map1, Mat map2, Mat dstmap1, Mat dstmap2, int dstmap1type) {
- if (map1 != null) map1.ThrowIfDisposed();
- if (map2 != null) map2.ThrowIfDisposed();
- if (dstmap1 != null) dstmap1.ThrowIfDisposed();
- if (dstmap2 != null) dstmap2.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_convertMaps_11(map1.nativeObj, map2.nativeObj, dstmap1.nativeObj, dstmap2.nativeObj, dstmap1type);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::convexHull(vector_Point points, vector_int& hull, bool clockwise = false, _hidden_ returnPoints = true)
- //
- //javadoc: convexHull(points, hull, clockwise)
- public static void convexHull(MatOfPoint points, MatOfInt hull, bool clockwise) {
- if (points != null) points.ThrowIfDisposed();
- if (hull != null) hull.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- Mat points_mat = points;
- Mat hull_mat = hull;
- imgproc_Imgproc_convexHull_10(points_mat.nativeObj, hull_mat.nativeObj, clockwise);
- return;
- #else
- return;
- #endif
- }
- //javadoc: convexHull(points, hull)
- public static void convexHull(MatOfPoint points, MatOfInt hull) {
- if (points != null) points.ThrowIfDisposed();
- if (hull != null) hull.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- Mat points_mat = points;
- Mat hull_mat = hull;
- imgproc_Imgproc_convexHull_12(points_mat.nativeObj, hull_mat.nativeObj);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::convexityDefects(vector_Point contour, vector_int convexhull, vector_Vec4i& convexityDefects)
- //
- //javadoc: convexityDefects(contour, convexhull, convexityDefects)
- public static void convexityDefects(MatOfPoint contour, MatOfInt convexhull, MatOfInt4 convexityDefects) {
- if (contour != null) contour.ThrowIfDisposed();
- if (convexhull != null) convexhull.ThrowIfDisposed();
- if (convexityDefects != null) convexityDefects.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- Mat contour_mat = contour;
- Mat convexhull_mat = convexhull;
- Mat convexityDefects_mat = convexityDefects;
- imgproc_Imgproc_convexityDefects_10(contour_mat.nativeObj, convexhull_mat.nativeObj, convexityDefects_mat.nativeObj);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::cornerEigenValsAndVecs(Mat src, Mat& dst, int blockSize, int ksize, int borderType = BORDER_DEFAULT)
- //
- //javadoc: cornerEigenValsAndVecs(src, dst, blockSize, ksize, borderType)
- public static void cornerEigenValsAndVecs(Mat src, Mat dst, int blockSize, int ksize, int borderType) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_cornerEigenValsAndVecs_10(src.nativeObj, dst.nativeObj, blockSize, ksize, borderType);
- return;
- #else
- return;
- #endif
- }
- //javadoc: cornerEigenValsAndVecs(src, dst, blockSize, ksize)
- public static void cornerEigenValsAndVecs(Mat src, Mat dst, int blockSize, int ksize) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_cornerEigenValsAndVecs_11(src.nativeObj, dst.nativeObj, blockSize, ksize);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::cornerHarris(Mat src, Mat& dst, int blockSize, int ksize, double k, int borderType = BORDER_DEFAULT)
- //
- //javadoc: cornerHarris(src, dst, blockSize, ksize, k, borderType)
- public static void cornerHarris(Mat src, Mat dst, int blockSize, int ksize, double k, int borderType) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_cornerHarris_10(src.nativeObj, dst.nativeObj, blockSize, ksize, k, borderType);
- return;
- #else
- return;
- #endif
- }
- //javadoc: cornerHarris(src, dst, blockSize, ksize, k)
- public static void cornerHarris(Mat src, Mat dst, int blockSize, int ksize, double k) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_cornerHarris_11(src.nativeObj, dst.nativeObj, blockSize, ksize, k);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::cornerMinEigenVal(Mat src, Mat& dst, int blockSize, int ksize = 3, int borderType = BORDER_DEFAULT)
- //
- //javadoc: cornerMinEigenVal(src, dst, blockSize, ksize, borderType)
- public static void cornerMinEigenVal(Mat src, Mat dst, int blockSize, int ksize, int borderType) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_cornerMinEigenVal_10(src.nativeObj, dst.nativeObj, blockSize, ksize, borderType);
- return;
- #else
- return;
- #endif
- }
- //javadoc: cornerMinEigenVal(src, dst, blockSize, ksize)
- public static void cornerMinEigenVal(Mat src, Mat dst, int blockSize, int ksize) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_cornerMinEigenVal_11(src.nativeObj, dst.nativeObj, blockSize, ksize);
- return;
- #else
- return;
- #endif
- }
- //javadoc: cornerMinEigenVal(src, dst, blockSize)
- public static void cornerMinEigenVal(Mat src, Mat dst, int blockSize) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_cornerMinEigenVal_12(src.nativeObj, dst.nativeObj, blockSize);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::cornerSubPix(Mat image, Mat& corners, Size winSize, Size zeroZone, TermCriteria criteria)
- //
- //javadoc: cornerSubPix(image, corners, winSize, zeroZone, criteria)
- public static void cornerSubPix(Mat image, Mat corners, Size winSize, Size zeroZone, TermCriteria criteria) {
- if (image != null) image.ThrowIfDisposed();
- if (corners != null) corners.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_cornerSubPix_10(image.nativeObj, corners.nativeObj, winSize.width, winSize.height, zeroZone.width, zeroZone.height, criteria.type, criteria.maxCount, criteria.epsilon);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::createHanningWindow(Mat& dst, Size winSize, int type)
- //
- //javadoc: createHanningWindow(dst, winSize, type)
- public static void createHanningWindow(Mat dst, Size winSize, int type) {
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_createHanningWindow_10(dst.nativeObj, winSize.width, winSize.height, type);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::cvtColor(Mat src, Mat& dst, int code, int dstCn = 0)
- //
- //javadoc: cvtColor(src, dst, code, dstCn)
- public static void cvtColor(Mat src, Mat dst, int code, int dstCn) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_cvtColor_10(src.nativeObj, dst.nativeObj, code, dstCn);
- return;
- #else
- return;
- #endif
- }
- //javadoc: cvtColor(src, dst, code)
- public static void cvtColor(Mat src, Mat dst, int code) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_cvtColor_11(src.nativeObj, dst.nativeObj, code);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::cvtColorTwoPlane(Mat src1, Mat src2, Mat& dst, int code)
- //
- //javadoc: cvtColorTwoPlane(src1, src2, dst, code)
- public static void cvtColorTwoPlane(Mat src1, Mat src2, Mat dst, int code) {
- if (src1 != null) src1.ThrowIfDisposed();
- if (src2 != null) src2.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_cvtColorTwoPlane_10(src1.nativeObj, src2.nativeObj, dst.nativeObj, code);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::demosaicing(Mat src, Mat& dst, int code, int dstCn = 0)
- //
- //javadoc: demosaicing(src, dst, code, dstCn)
- public static void demosaicing(Mat src, Mat dst, int code, int dstCn) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_demosaicing_10(src.nativeObj, dst.nativeObj, code, dstCn);
- return;
- #else
- return;
- #endif
- }
- //javadoc: demosaicing(src, dst, code)
- public static void demosaicing(Mat src, Mat dst, int code) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_demosaicing_11(src.nativeObj, dst.nativeObj, code);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::dilate(Mat src, Mat& dst, Mat kernel, Point anchor = Point(-1,-1), int iterations = 1, int borderType = BORDER_CONSTANT, Scalar borderValue = morphologyDefaultBorderValue())
- //
- //javadoc: dilate(src, dst, kernel, anchor, iterations, borderType, borderValue)
- public static void dilate(Mat src, Mat dst, Mat kernel, Point anchor, int iterations, int borderType, Scalar borderValue) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (kernel != null) kernel.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_dilate_10(src.nativeObj, dst.nativeObj, kernel.nativeObj, anchor.x, anchor.y, iterations, borderType, borderValue.val[0], borderValue.val[1], borderValue.val[2], borderValue.val[3]);
- return;
- #else
- return;
- #endif
- }
- //javadoc: dilate(src, dst, kernel, anchor, iterations, borderType)
- public static void dilate(Mat src, Mat dst, Mat kernel, Point anchor, int iterations, int borderType) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (kernel != null) kernel.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_dilate_11(src.nativeObj, dst.nativeObj, kernel.nativeObj, anchor.x, anchor.y, iterations, borderType);
- return;
- #else
- return;
- #endif
- }
- //javadoc: dilate(src, dst, kernel, anchor, iterations)
- public static void dilate(Mat src, Mat dst, Mat kernel, Point anchor, int iterations) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (kernel != null) kernel.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_dilate_12(src.nativeObj, dst.nativeObj, kernel.nativeObj, anchor.x, anchor.y, iterations);
- return;
- #else
- return;
- #endif
- }
- //javadoc: dilate(src, dst, kernel, anchor)
- public static void dilate(Mat src, Mat dst, Mat kernel, Point anchor) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (kernel != null) kernel.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_dilate_13(src.nativeObj, dst.nativeObj, kernel.nativeObj, anchor.x, anchor.y);
- return;
- #else
- return;
- #endif
- }
- //javadoc: dilate(src, dst, kernel)
- public static void dilate(Mat src, Mat dst, Mat kernel) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (kernel != null) kernel.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_dilate_14(src.nativeObj, dst.nativeObj, kernel.nativeObj);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::distanceTransform(Mat src, Mat& dst, Mat& labels, int distanceType, int maskSize, int labelType = DIST_LABEL_CCOMP)
- //
- //javadoc: distanceTransformWithLabels(src, dst, labels, distanceType, maskSize, labelType)
- public static void distanceTransformWithLabels(Mat src, Mat dst, Mat labels, int distanceType, int maskSize, int labelType) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (labels != null) labels.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_distanceTransformWithLabels_10(src.nativeObj, dst.nativeObj, labels.nativeObj, distanceType, maskSize, labelType);
- return;
- #else
- return;
- #endif
- }
- //javadoc: distanceTransformWithLabels(src, dst, labels, distanceType, maskSize)
- public static void distanceTransformWithLabels(Mat src, Mat dst, Mat labels, int distanceType, int maskSize) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (labels != null) labels.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_distanceTransformWithLabels_11(src.nativeObj, dst.nativeObj, labels.nativeObj, distanceType, maskSize);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::distanceTransform(Mat src, Mat& dst, int distanceType, int maskSize, int dstType = CV_32F)
- //
- //javadoc: distanceTransform(src, dst, distanceType, maskSize, dstType)
- public static void distanceTransform(Mat src, Mat dst, int distanceType, int maskSize, int dstType) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_distanceTransform_10(src.nativeObj, dst.nativeObj, distanceType, maskSize, dstType);
- return;
- #else
- return;
- #endif
- }
- //javadoc: distanceTransform(src, dst, distanceType, maskSize)
- public static void distanceTransform(Mat src, Mat dst, int distanceType, int maskSize) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_distanceTransform_11(src.nativeObj, dst.nativeObj, distanceType, maskSize);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::drawContours(Mat& image, vector_vector_Point contours, int contourIdx, Scalar color, int thickness = 1, int lineType = LINE_8, Mat hierarchy = Mat(), int maxLevel = INT_MAX, Point offset = Point())
- //
- //javadoc: drawContours(image, contours, contourIdx, color, thickness, lineType, hierarchy, maxLevel, offset)
- public static void drawContours(Mat image, List<MatOfPoint> contours, int contourIdx, Scalar color, int thickness, int lineType, Mat hierarchy, int maxLevel, Point offset) {
- if (image != null) image.ThrowIfDisposed();
- if (hierarchy != null) hierarchy.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- List<Mat> contours_tmplm = new List<Mat>((contours != null) ? contours.Count : 0);
- Mat contours_mat = Converters.vector_vector_Point_to_Mat(contours, contours_tmplm);
- imgproc_Imgproc_drawContours_10(image.nativeObj, contours_mat.nativeObj, contourIdx, color.val[0], color.val[1], color.val[2], color.val[3], thickness, lineType, hierarchy.nativeObj, maxLevel, offset.x, offset.y);
- return;
- #else
- return;
- #endif
- }
- //javadoc: drawContours(image, contours, contourIdx, color, thickness, lineType, hierarchy, maxLevel)
- public static void drawContours(Mat image, List<MatOfPoint> contours, int contourIdx, Scalar color, int thickness, int lineType, Mat hierarchy, int maxLevel) {
- if (image != null) image.ThrowIfDisposed();
- if (hierarchy != null) hierarchy.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- List<Mat> contours_tmplm = new List<Mat>((contours != null) ? contours.Count : 0);
- Mat contours_mat = Converters.vector_vector_Point_to_Mat(contours, contours_tmplm);
- imgproc_Imgproc_drawContours_11(image.nativeObj, contours_mat.nativeObj, contourIdx, color.val[0], color.val[1], color.val[2], color.val[3], thickness, lineType, hierarchy.nativeObj, maxLevel);
- return;
- #else
- return;
- #endif
- }
- //javadoc: drawContours(image, contours, contourIdx, color, thickness, lineType, hierarchy)
- public static void drawContours(Mat image, List<MatOfPoint> contours, int contourIdx, Scalar color, int thickness, int lineType, Mat hierarchy) {
- if (image != null) image.ThrowIfDisposed();
- if (hierarchy != null) hierarchy.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- List<Mat> contours_tmplm = new List<Mat>((contours != null) ? contours.Count : 0);
- Mat contours_mat = Converters.vector_vector_Point_to_Mat(contours, contours_tmplm);
- imgproc_Imgproc_drawContours_12(image.nativeObj, contours_mat.nativeObj, contourIdx, color.val[0], color.val[1], color.val[2], color.val[3], thickness, lineType, hierarchy.nativeObj);
- return;
- #else
- return;
- #endif
- }
- //javadoc: drawContours(image, contours, contourIdx, color, thickness, lineType)
- public static void drawContours(Mat image, List<MatOfPoint> contours, int contourIdx, Scalar color, int thickness, int lineType) {
- if (image != null) image.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- List<Mat> contours_tmplm = new List<Mat>((contours != null) ? contours.Count : 0);
- Mat contours_mat = Converters.vector_vector_Point_to_Mat(contours, contours_tmplm);
- imgproc_Imgproc_drawContours_13(image.nativeObj, contours_mat.nativeObj, contourIdx, color.val[0], color.val[1], color.val[2], color.val[3], thickness, lineType);
- return;
- #else
- return;
- #endif
- }
- //javadoc: drawContours(image, contours, contourIdx, color, thickness)
- public static void drawContours(Mat image, List<MatOfPoint> contours, int contourIdx, Scalar color, int thickness) {
- if (image != null) image.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- List<Mat> contours_tmplm = new List<Mat>((contours != null) ? contours.Count : 0);
- Mat contours_mat = Converters.vector_vector_Point_to_Mat(contours, contours_tmplm);
- imgproc_Imgproc_drawContours_14(image.nativeObj, contours_mat.nativeObj, contourIdx, color.val[0], color.val[1], color.val[2], color.val[3], thickness);
- return;
- #else
- return;
- #endif
- }
- //javadoc: drawContours(image, contours, contourIdx, color)
- public static void drawContours(Mat image, List<MatOfPoint> contours, int contourIdx, Scalar color) {
- if (image != null) image.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- List<Mat> contours_tmplm = new List<Mat>((contours != null) ? contours.Count : 0);
- Mat contours_mat = Converters.vector_vector_Point_to_Mat(contours, contours_tmplm);
- imgproc_Imgproc_drawContours_15(image.nativeObj, contours_mat.nativeObj, contourIdx, color.val[0], color.val[1], color.val[2], color.val[3]);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::drawMarker(Mat& img, Point position, Scalar color, int markerType = MARKER_CROSS, int markerSize = 20, int thickness = 1, int line_type = 8)
- //
- //javadoc: drawMarker(img, position, color, markerType, markerSize, thickness, line_type)
- public static void drawMarker(Mat img, Point position, Scalar color, int markerType, int markerSize, int thickness, int line_type) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_drawMarker_10(img.nativeObj, position.x, position.y, color.val[0], color.val[1], color.val[2], color.val[3], markerType, markerSize, thickness, line_type);
- return;
- #else
- return;
- #endif
- }
- //javadoc: drawMarker(img, position, color, markerType, markerSize, thickness)
- public static void drawMarker(Mat img, Point position, Scalar color, int markerType, int markerSize, int thickness) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_drawMarker_11(img.nativeObj, position.x, position.y, color.val[0], color.val[1], color.val[2], color.val[3], markerType, markerSize, thickness);
- return;
- #else
- return;
- #endif
- }
- //javadoc: drawMarker(img, position, color, markerType, markerSize)
- public static void drawMarker(Mat img, Point position, Scalar color, int markerType, int markerSize) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_drawMarker_12(img.nativeObj, position.x, position.y, color.val[0], color.val[1], color.val[2], color.val[3], markerType, markerSize);
- return;
- #else
- return;
- #endif
- }
- //javadoc: drawMarker(img, position, color, markerType)
- public static void drawMarker(Mat img, Point position, Scalar color, int markerType) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_drawMarker_13(img.nativeObj, position.x, position.y, color.val[0], color.val[1], color.val[2], color.val[3], markerType);
- return;
- #else
- return;
- #endif
- }
- //javadoc: drawMarker(img, position, color)
- public static void drawMarker(Mat img, Point position, Scalar color) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_drawMarker_14(img.nativeObj, position.x, position.y, color.val[0], color.val[1], color.val[2], color.val[3]);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::ellipse(Mat& img, Point center, Size axes, double angle, double startAngle, double endAngle, Scalar color, int thickness = 1, int lineType = LINE_8, int shift = 0)
- //
- //javadoc: ellipse(img, center, axes, angle, startAngle, endAngle, color, thickness, lineType, shift)
- public static void ellipse(Mat img, Point center, Size axes, double angle, double startAngle, double endAngle, Scalar color, int thickness, int lineType, int shift) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_ellipse_10(img.nativeObj, center.x, center.y, axes.width, axes.height, angle, startAngle, endAngle, color.val[0], color.val[1], color.val[2], color.val[3], thickness, lineType, shift);
- return;
- #else
- return;
- #endif
- }
- //javadoc: ellipse(img, center, axes, angle, startAngle, endAngle, color, thickness, lineType)
- public static void ellipse(Mat img, Point center, Size axes, double angle, double startAngle, double endAngle, Scalar color, int thickness, int lineType) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_ellipse_11(img.nativeObj, center.x, center.y, axes.width, axes.height, angle, startAngle, endAngle, color.val[0], color.val[1], color.val[2], color.val[3], thickness, lineType);
- return;
- #else
- return;
- #endif
- }
- //javadoc: ellipse(img, center, axes, angle, startAngle, endAngle, color, thickness)
- public static void ellipse(Mat img, Point center, Size axes, double angle, double startAngle, double endAngle, Scalar color, int thickness) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_ellipse_12(img.nativeObj, center.x, center.y, axes.width, axes.height, angle, startAngle, endAngle, color.val[0], color.val[1], color.val[2], color.val[3], thickness);
- return;
- #else
- return;
- #endif
- }
- //javadoc: ellipse(img, center, axes, angle, startAngle, endAngle, color)
- public static void ellipse(Mat img, Point center, Size axes, double angle, double startAngle, double endAngle, Scalar color) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_ellipse_13(img.nativeObj, center.x, center.y, axes.width, axes.height, angle, startAngle, endAngle, color.val[0], color.val[1], color.val[2], color.val[3]);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::ellipse(Mat& img, RotatedRect box, Scalar color, int thickness = 1, int lineType = LINE_8)
- //
- //javadoc: ellipse(img, box, color, thickness, lineType)
- public static void ellipse(Mat img, RotatedRect box, Scalar color, int thickness, int lineType) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_ellipse_14(img.nativeObj, box.center.x, box.center.y, box.size.width, box.size.height, box.angle, color.val[0], color.val[1], color.val[2], color.val[3], thickness, lineType);
- return;
- #else
- return;
- #endif
- }
- //javadoc: ellipse(img, box, color, thickness)
- public static void ellipse(Mat img, RotatedRect box, Scalar color, int thickness) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_ellipse_15(img.nativeObj, box.center.x, box.center.y, box.size.width, box.size.height, box.angle, color.val[0], color.val[1], color.val[2], color.val[3], thickness);
- return;
- #else
- return;
- #endif
- }
- //javadoc: ellipse(img, box, color)
- public static void ellipse(Mat img, RotatedRect box, Scalar color) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_ellipse_16(img.nativeObj, box.center.x, box.center.y, box.size.width, box.size.height, box.angle, color.val[0], color.val[1], color.val[2], color.val[3]);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::ellipse2Poly(Point center, Size axes, int angle, int arcStart, int arcEnd, int delta, vector_Point& pts)
- //
- //javadoc: ellipse2Poly(center, axes, angle, arcStart, arcEnd, delta, pts)
- public static void ellipse2Poly(Point center, Size axes, int angle, int arcStart, int arcEnd, int delta, MatOfPoint pts) {
- if (pts != null) pts.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- Mat pts_mat = pts;
- imgproc_Imgproc_ellipse2Poly_10(center.x, center.y, axes.width, axes.height, angle, arcStart, arcEnd, delta, pts_mat.nativeObj);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::equalizeHist(Mat src, Mat& dst)
- //
- //javadoc: equalizeHist(src, dst)
- public static void equalizeHist(Mat src, Mat dst) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_equalizeHist_10(src.nativeObj, dst.nativeObj);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::erode(Mat src, Mat& dst, Mat kernel, Point anchor = Point(-1,-1), int iterations = 1, int borderType = BORDER_CONSTANT, Scalar borderValue = morphologyDefaultBorderValue())
- //
- //javadoc: erode(src, dst, kernel, anchor, iterations, borderType, borderValue)
- public static void erode(Mat src, Mat dst, Mat kernel, Point anchor, int iterations, int borderType, Scalar borderValue) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (kernel != null) kernel.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_erode_10(src.nativeObj, dst.nativeObj, kernel.nativeObj, anchor.x, anchor.y, iterations, borderType, borderValue.val[0], borderValue.val[1], borderValue.val[2], borderValue.val[3]);
- return;
- #else
- return;
- #endif
- }
- //javadoc: erode(src, dst, kernel, anchor, iterations, borderType)
- public static void erode(Mat src, Mat dst, Mat kernel, Point anchor, int iterations, int borderType) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (kernel != null) kernel.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_erode_11(src.nativeObj, dst.nativeObj, kernel.nativeObj, anchor.x, anchor.y, iterations, borderType);
- return;
- #else
- return;
- #endif
- }
- //javadoc: erode(src, dst, kernel, anchor, iterations)
- public static void erode(Mat src, Mat dst, Mat kernel, Point anchor, int iterations) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (kernel != null) kernel.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_erode_12(src.nativeObj, dst.nativeObj, kernel.nativeObj, anchor.x, anchor.y, iterations);
- return;
- #else
- return;
- #endif
- }
- //javadoc: erode(src, dst, kernel, anchor)
- public static void erode(Mat src, Mat dst, Mat kernel, Point anchor) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (kernel != null) kernel.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_erode_13(src.nativeObj, dst.nativeObj, kernel.nativeObj, anchor.x, anchor.y);
- return;
- #else
- return;
- #endif
- }
- //javadoc: erode(src, dst, kernel)
- public static void erode(Mat src, Mat dst, Mat kernel) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (kernel != null) kernel.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_erode_14(src.nativeObj, dst.nativeObj, kernel.nativeObj);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::fillConvexPoly(Mat& img, vector_Point points, Scalar color, int lineType = LINE_8, int shift = 0)
- //
- //javadoc: fillConvexPoly(img, points, color, lineType, shift)
- public static void fillConvexPoly(Mat img, MatOfPoint points, Scalar color, int lineType, int shift) {
- if (img != null) img.ThrowIfDisposed();
- if (points != null) points.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- Mat points_mat = points;
- imgproc_Imgproc_fillConvexPoly_10(img.nativeObj, points_mat.nativeObj, color.val[0], color.val[1], color.val[2], color.val[3], lineType, shift);
- return;
- #else
- return;
- #endif
- }
- //javadoc: fillConvexPoly(img, points, color, lineType)
- public static void fillConvexPoly(Mat img, MatOfPoint points, Scalar color, int lineType) {
- if (img != null) img.ThrowIfDisposed();
- if (points != null) points.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- Mat points_mat = points;
- imgproc_Imgproc_fillConvexPoly_11(img.nativeObj, points_mat.nativeObj, color.val[0], color.val[1], color.val[2], color.val[3], lineType);
- return;
- #else
- return;
- #endif
- }
- //javadoc: fillConvexPoly(img, points, color)
- public static void fillConvexPoly(Mat img, MatOfPoint points, Scalar color) {
- if (img != null) img.ThrowIfDisposed();
- if (points != null) points.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- Mat points_mat = points;
- imgproc_Imgproc_fillConvexPoly_12(img.nativeObj, points_mat.nativeObj, color.val[0], color.val[1], color.val[2], color.val[3]);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::fillPoly(Mat& img, vector_vector_Point pts, Scalar color, int lineType = LINE_8, int shift = 0, Point offset = Point())
- //
- //javadoc: fillPoly(img, pts, color, lineType, shift, offset)
- public static void fillPoly(Mat img, List<MatOfPoint> pts, Scalar color, int lineType, int shift, Point offset) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- List<Mat> pts_tmplm = new List<Mat>((pts != null) ? pts.Count : 0);
- Mat pts_mat = Converters.vector_vector_Point_to_Mat(pts, pts_tmplm);
- imgproc_Imgproc_fillPoly_10(img.nativeObj, pts_mat.nativeObj, color.val[0], color.val[1], color.val[2], color.val[3], lineType, shift, offset.x, offset.y);
- return;
- #else
- return;
- #endif
- }
- //javadoc: fillPoly(img, pts, color, lineType, shift)
- public static void fillPoly(Mat img, List<MatOfPoint> pts, Scalar color, int lineType, int shift) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- List<Mat> pts_tmplm = new List<Mat>((pts != null) ? pts.Count : 0);
- Mat pts_mat = Converters.vector_vector_Point_to_Mat(pts, pts_tmplm);
- imgproc_Imgproc_fillPoly_11(img.nativeObj, pts_mat.nativeObj, color.val[0], color.val[1], color.val[2], color.val[3], lineType, shift);
- return;
- #else
- return;
- #endif
- }
- //javadoc: fillPoly(img, pts, color, lineType)
- public static void fillPoly(Mat img, List<MatOfPoint> pts, Scalar color, int lineType) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- List<Mat> pts_tmplm = new List<Mat>((pts != null) ? pts.Count : 0);
- Mat pts_mat = Converters.vector_vector_Point_to_Mat(pts, pts_tmplm);
- imgproc_Imgproc_fillPoly_12(img.nativeObj, pts_mat.nativeObj, color.val[0], color.val[1], color.val[2], color.val[3], lineType);
- return;
- #else
- return;
- #endif
- }
- //javadoc: fillPoly(img, pts, color)
- public static void fillPoly(Mat img, List<MatOfPoint> pts, Scalar color) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- List<Mat> pts_tmplm = new List<Mat>((pts != null) ? pts.Count : 0);
- Mat pts_mat = Converters.vector_vector_Point_to_Mat(pts, pts_tmplm);
- imgproc_Imgproc_fillPoly_13(img.nativeObj, pts_mat.nativeObj, color.val[0], color.val[1], color.val[2], color.val[3]);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::filter2D(Mat src, Mat& dst, int ddepth, Mat kernel, Point anchor = Point(-1,-1), double delta = 0, int borderType = BORDER_DEFAULT)
- //
- //javadoc: filter2D(src, dst, ddepth, kernel, anchor, delta, borderType)
- public static void filter2D(Mat src, Mat dst, int ddepth, Mat kernel, Point anchor, double delta, int borderType) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (kernel != null) kernel.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_filter2D_10(src.nativeObj, dst.nativeObj, ddepth, kernel.nativeObj, anchor.x, anchor.y, delta, borderType);
- return;
- #else
- return;
- #endif
- }
- //javadoc: filter2D(src, dst, ddepth, kernel, anchor, delta)
- public static void filter2D(Mat src, Mat dst, int ddepth, Mat kernel, Point anchor, double delta) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (kernel != null) kernel.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_filter2D_11(src.nativeObj, dst.nativeObj, ddepth, kernel.nativeObj, anchor.x, anchor.y, delta);
- return;
- #else
- return;
- #endif
- }
- //javadoc: filter2D(src, dst, ddepth, kernel, anchor)
- public static void filter2D(Mat src, Mat dst, int ddepth, Mat kernel, Point anchor) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (kernel != null) kernel.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_filter2D_12(src.nativeObj, dst.nativeObj, ddepth, kernel.nativeObj, anchor.x, anchor.y);
- return;
- #else
- return;
- #endif
- }
- //javadoc: filter2D(src, dst, ddepth, kernel)
- public static void filter2D(Mat src, Mat dst, int ddepth, Mat kernel) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (kernel != null) kernel.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_filter2D_13(src.nativeObj, dst.nativeObj, ddepth, kernel.nativeObj);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::findContours(Mat image, vector_vector_Point& contours, Mat& hierarchy, int mode, int method, Point offset = Point())
- //
- //javadoc: findContours(image, contours, hierarchy, mode, method, offset)
- public static void findContours(Mat image, List<MatOfPoint> contours, Mat hierarchy, int mode, int method, Point offset) {
- if (image != null) image.ThrowIfDisposed();
- if (hierarchy != null) hierarchy.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- Mat contours_mat = new Mat();
- imgproc_Imgproc_findContours_10(image.nativeObj, contours_mat.nativeObj, hierarchy.nativeObj, mode, method, offset.x, offset.y);
- Converters.Mat_to_vector_vector_Point(contours_mat, contours);
- contours_mat.release();
- return;
- #else
- return;
- #endif
- }
- //javadoc: findContours(image, contours, hierarchy, mode, method)
- public static void findContours(Mat image, List<MatOfPoint> contours, Mat hierarchy, int mode, int method) {
- if (image != null) image.ThrowIfDisposed();
- if (hierarchy != null) hierarchy.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- Mat contours_mat = new Mat();
- imgproc_Imgproc_findContours_11(image.nativeObj, contours_mat.nativeObj, hierarchy.nativeObj, mode, method);
- Converters.Mat_to_vector_vector_Point(contours_mat, contours);
- contours_mat.release();
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::fitLine(Mat points, Mat& line, int distType, double param, double reps, double aeps)
- //
- //javadoc: fitLine(points, line, distType, param, reps, aeps)
- public static void fitLine(Mat points, Mat line, int distType, double param, double reps, double aeps) {
- if (points != null) points.ThrowIfDisposed();
- if (line != null) line.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_fitLine_10(points.nativeObj, line.nativeObj, distType, param, reps, aeps);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::getDerivKernels(Mat& kx, Mat& ky, int dx, int dy, int ksize, bool normalize = false, int ktype = CV_32F)
- //
- //javadoc: getDerivKernels(kx, ky, dx, dy, ksize, normalize, ktype)
- public static void getDerivKernels(Mat kx, Mat ky, int dx, int dy, int ksize, bool normalize, int ktype) {
- if (kx != null) kx.ThrowIfDisposed();
- if (ky != null) ky.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_getDerivKernels_10(kx.nativeObj, ky.nativeObj, dx, dy, ksize, normalize, ktype);
- return;
- #else
- return;
- #endif
- }
- //javadoc: getDerivKernels(kx, ky, dx, dy, ksize, normalize)
- public static void getDerivKernels(Mat kx, Mat ky, int dx, int dy, int ksize, bool normalize) {
- if (kx != null) kx.ThrowIfDisposed();
- if (ky != null) ky.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_getDerivKernels_11(kx.nativeObj, ky.nativeObj, dx, dy, ksize, normalize);
- return;
- #else
- return;
- #endif
- }
- //javadoc: getDerivKernels(kx, ky, dx, dy, ksize)
- public static void getDerivKernels(Mat kx, Mat ky, int dx, int dy, int ksize) {
- if (kx != null) kx.ThrowIfDisposed();
- if (ky != null) ky.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_getDerivKernels_12(kx.nativeObj, ky.nativeObj, dx, dy, ksize);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::getRectSubPix(Mat image, Size patchSize, Point2f center, Mat& patch, int patchType = -1)
- //
- //javadoc: getRectSubPix(image, patchSize, center, patch, patchType)
- public static void getRectSubPix(Mat image, Size patchSize, Point center, Mat patch, int patchType) {
- if (image != null) image.ThrowIfDisposed();
- if (patch != null) patch.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_getRectSubPix_10(image.nativeObj, patchSize.width, patchSize.height, center.x, center.y, patch.nativeObj, patchType);
- return;
- #else
- return;
- #endif
- }
- //javadoc: getRectSubPix(image, patchSize, center, patch)
- public static void getRectSubPix(Mat image, Size patchSize, Point center, Mat patch) {
- if (image != null) image.ThrowIfDisposed();
- if (patch != null) patch.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_getRectSubPix_11(image.nativeObj, patchSize.width, patchSize.height, center.x, center.y, patch.nativeObj);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::goodFeaturesToTrack(Mat image, vector_Point& corners, int maxCorners, double qualityLevel, double minDistance, Mat mask, int blockSize, int gradientSize, bool useHarrisDetector = false, double k = 0.04)
- //
- //javadoc: goodFeaturesToTrack(image, corners, maxCorners, qualityLevel, minDistance, mask, blockSize, gradientSize, useHarrisDetector, k)
- public static void goodFeaturesToTrack(Mat image, MatOfPoint corners, int maxCorners, double qualityLevel, double minDistance, Mat mask, int blockSize, int gradientSize, bool useHarrisDetector, double k) {
- if (image != null) image.ThrowIfDisposed();
- if (corners != null) corners.ThrowIfDisposed();
- if (mask != null) mask.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- Mat corners_mat = corners;
- imgproc_Imgproc_goodFeaturesToTrack_10(image.nativeObj, corners_mat.nativeObj, maxCorners, qualityLevel, minDistance, mask.nativeObj, blockSize, gradientSize, useHarrisDetector, k);
- return;
- #else
- return;
- #endif
- }
- //javadoc: goodFeaturesToTrack(image, corners, maxCorners, qualityLevel, minDistance, mask, blockSize, gradientSize, useHarrisDetector)
- public static void goodFeaturesToTrack(Mat image, MatOfPoint corners, int maxCorners, double qualityLevel, double minDistance, Mat mask, int blockSize, int gradientSize, bool useHarrisDetector) {
- if (image != null) image.ThrowIfDisposed();
- if (corners != null) corners.ThrowIfDisposed();
- if (mask != null) mask.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- Mat corners_mat = corners;
- imgproc_Imgproc_goodFeaturesToTrack_11(image.nativeObj, corners_mat.nativeObj, maxCorners, qualityLevel, minDistance, mask.nativeObj, blockSize, gradientSize, useHarrisDetector);
- return;
- #else
- return;
- #endif
- }
- //javadoc: goodFeaturesToTrack(image, corners, maxCorners, qualityLevel, minDistance, mask, blockSize, gradientSize)
- public static void goodFeaturesToTrack(Mat image, MatOfPoint corners, int maxCorners, double qualityLevel, double minDistance, Mat mask, int blockSize, int gradientSize) {
- if (image != null) image.ThrowIfDisposed();
- if (corners != null) corners.ThrowIfDisposed();
- if (mask != null) mask.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- Mat corners_mat = corners;
- imgproc_Imgproc_goodFeaturesToTrack_12(image.nativeObj, corners_mat.nativeObj, maxCorners, qualityLevel, minDistance, mask.nativeObj, blockSize, gradientSize);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::goodFeaturesToTrack(Mat image, vector_Point& corners, int maxCorners, double qualityLevel, double minDistance, Mat mask = Mat(), int blockSize = 3, bool useHarrisDetector = false, double k = 0.04)
- //
- //javadoc: goodFeaturesToTrack(image, corners, maxCorners, qualityLevel, minDistance, mask, blockSize, useHarrisDetector, k)
- public static void goodFeaturesToTrack(Mat image, MatOfPoint corners, int maxCorners, double qualityLevel, double minDistance, Mat mask, int blockSize, bool useHarrisDetector, double k) {
- if (image != null) image.ThrowIfDisposed();
- if (corners != null) corners.ThrowIfDisposed();
- if (mask != null) mask.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- Mat corners_mat = corners;
- imgproc_Imgproc_goodFeaturesToTrack_13(image.nativeObj, corners_mat.nativeObj, maxCorners, qualityLevel, minDistance, mask.nativeObj, blockSize, useHarrisDetector, k);
- return;
- #else
- return;
- #endif
- }
- //javadoc: goodFeaturesToTrack(image, corners, maxCorners, qualityLevel, minDistance, mask, blockSize, useHarrisDetector)
- public static void goodFeaturesToTrack(Mat image, MatOfPoint corners, int maxCorners, double qualityLevel, double minDistance, Mat mask, int blockSize, bool useHarrisDetector) {
- if (image != null) image.ThrowIfDisposed();
- if (corners != null) corners.ThrowIfDisposed();
- if (mask != null) mask.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- Mat corners_mat = corners;
- imgproc_Imgproc_goodFeaturesToTrack_14(image.nativeObj, corners_mat.nativeObj, maxCorners, qualityLevel, minDistance, mask.nativeObj, blockSize, useHarrisDetector);
- return;
- #else
- return;
- #endif
- }
- //javadoc: goodFeaturesToTrack(image, corners, maxCorners, qualityLevel, minDistance, mask, blockSize)
- public static void goodFeaturesToTrack(Mat image, MatOfPoint corners, int maxCorners, double qualityLevel, double minDistance, Mat mask, int blockSize) {
- if (image != null) image.ThrowIfDisposed();
- if (corners != null) corners.ThrowIfDisposed();
- if (mask != null) mask.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- Mat corners_mat = corners;
- imgproc_Imgproc_goodFeaturesToTrack_15(image.nativeObj, corners_mat.nativeObj, maxCorners, qualityLevel, minDistance, mask.nativeObj, blockSize);
- return;
- #else
- return;
- #endif
- }
- //javadoc: goodFeaturesToTrack(image, corners, maxCorners, qualityLevel, minDistance, mask)
- public static void goodFeaturesToTrack(Mat image, MatOfPoint corners, int maxCorners, double qualityLevel, double minDistance, Mat mask) {
- if (image != null) image.ThrowIfDisposed();
- if (corners != null) corners.ThrowIfDisposed();
- if (mask != null) mask.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- Mat corners_mat = corners;
- imgproc_Imgproc_goodFeaturesToTrack_16(image.nativeObj, corners_mat.nativeObj, maxCorners, qualityLevel, minDistance, mask.nativeObj);
- return;
- #else
- return;
- #endif
- }
- //javadoc: goodFeaturesToTrack(image, corners, maxCorners, qualityLevel, minDistance)
- public static void goodFeaturesToTrack(Mat image, MatOfPoint corners, int maxCorners, double qualityLevel, double minDistance) {
- if (image != null) image.ThrowIfDisposed();
- if (corners != null) corners.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- Mat corners_mat = corners;
- imgproc_Imgproc_goodFeaturesToTrack_17(image.nativeObj, corners_mat.nativeObj, maxCorners, qualityLevel, minDistance);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::grabCut(Mat img, Mat& mask, Rect rect, Mat& bgdModel, Mat& fgdModel, int iterCount, int mode = GC_EVAL)
- //
- //javadoc: grabCut(img, mask, rect, bgdModel, fgdModel, iterCount, mode)
- public static void grabCut(Mat img, Mat mask, Rect rect, Mat bgdModel, Mat fgdModel, int iterCount, int mode) {
- if (img != null) img.ThrowIfDisposed();
- if (mask != null) mask.ThrowIfDisposed();
- if (bgdModel != null) bgdModel.ThrowIfDisposed();
- if (fgdModel != null) fgdModel.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_grabCut_10(img.nativeObj, mask.nativeObj, rect.x, rect.y, rect.width, rect.height, bgdModel.nativeObj, fgdModel.nativeObj, iterCount, mode);
- return;
- #else
- return;
- #endif
- }
- //javadoc: grabCut(img, mask, rect, bgdModel, fgdModel, iterCount)
- public static void grabCut(Mat img, Mat mask, Rect rect, Mat bgdModel, Mat fgdModel, int iterCount) {
- if (img != null) img.ThrowIfDisposed();
- if (mask != null) mask.ThrowIfDisposed();
- if (bgdModel != null) bgdModel.ThrowIfDisposed();
- if (fgdModel != null) fgdModel.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_grabCut_11(img.nativeObj, mask.nativeObj, rect.x, rect.y, rect.width, rect.height, bgdModel.nativeObj, fgdModel.nativeObj, iterCount);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::integral(Mat src, Mat& sum, Mat& sqsum, Mat& tilted, int sdepth = -1, int sqdepth = -1)
- //
- //javadoc: integral3(src, sum, sqsum, tilted, sdepth, sqdepth)
- public static void integral3(Mat src, Mat sum, Mat sqsum, Mat tilted, int sdepth, int sqdepth) {
- if (src != null) src.ThrowIfDisposed();
- if (sum != null) sum.ThrowIfDisposed();
- if (sqsum != null) sqsum.ThrowIfDisposed();
- if (tilted != null) tilted.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_integral3_10(src.nativeObj, sum.nativeObj, sqsum.nativeObj, tilted.nativeObj, sdepth, sqdepth);
- return;
- #else
- return;
- #endif
- }
- //javadoc: integral3(src, sum, sqsum, tilted, sdepth)
- public static void integral3(Mat src, Mat sum, Mat sqsum, Mat tilted, int sdepth) {
- if (src != null) src.ThrowIfDisposed();
- if (sum != null) sum.ThrowIfDisposed();
- if (sqsum != null) sqsum.ThrowIfDisposed();
- if (tilted != null) tilted.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_integral3_11(src.nativeObj, sum.nativeObj, sqsum.nativeObj, tilted.nativeObj, sdepth);
- return;
- #else
- return;
- #endif
- }
- //javadoc: integral3(src, sum, sqsum, tilted)
- public static void integral3(Mat src, Mat sum, Mat sqsum, Mat tilted) {
- if (src != null) src.ThrowIfDisposed();
- if (sum != null) sum.ThrowIfDisposed();
- if (sqsum != null) sqsum.ThrowIfDisposed();
- if (tilted != null) tilted.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_integral3_12(src.nativeObj, sum.nativeObj, sqsum.nativeObj, tilted.nativeObj);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::integral(Mat src, Mat& sum, Mat& sqsum, int sdepth = -1, int sqdepth = -1)
- //
- //javadoc: integral2(src, sum, sqsum, sdepth, sqdepth)
- public static void integral2(Mat src, Mat sum, Mat sqsum, int sdepth, int sqdepth) {
- if (src != null) src.ThrowIfDisposed();
- if (sum != null) sum.ThrowIfDisposed();
- if (sqsum != null) sqsum.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_integral2_10(src.nativeObj, sum.nativeObj, sqsum.nativeObj, sdepth, sqdepth);
- return;
- #else
- return;
- #endif
- }
- //javadoc: integral2(src, sum, sqsum, sdepth)
- public static void integral2(Mat src, Mat sum, Mat sqsum, int sdepth) {
- if (src != null) src.ThrowIfDisposed();
- if (sum != null) sum.ThrowIfDisposed();
- if (sqsum != null) sqsum.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_integral2_11(src.nativeObj, sum.nativeObj, sqsum.nativeObj, sdepth);
- return;
- #else
- return;
- #endif
- }
- //javadoc: integral2(src, sum, sqsum)
- public static void integral2(Mat src, Mat sum, Mat sqsum) {
- if (src != null) src.ThrowIfDisposed();
- if (sum != null) sum.ThrowIfDisposed();
- if (sqsum != null) sqsum.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_integral2_12(src.nativeObj, sum.nativeObj, sqsum.nativeObj);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::integral(Mat src, Mat& sum, int sdepth = -1)
- //
- //javadoc: integral(src, sum, sdepth)
- public static void integral(Mat src, Mat sum, int sdepth) {
- if (src != null) src.ThrowIfDisposed();
- if (sum != null) sum.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_integral_10(src.nativeObj, sum.nativeObj, sdepth);
- return;
- #else
- return;
- #endif
- }
- //javadoc: integral(src, sum)
- public static void integral(Mat src, Mat sum) {
- if (src != null) src.ThrowIfDisposed();
- if (sum != null) sum.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_integral_11(src.nativeObj, sum.nativeObj);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::invertAffineTransform(Mat M, Mat& iM)
- //
- //javadoc: invertAffineTransform(M, iM)
- public static void invertAffineTransform(Mat M, Mat iM) {
- if (M != null) M.ThrowIfDisposed();
- if (iM != null) iM.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_invertAffineTransform_10(M.nativeObj, iM.nativeObj);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::line(Mat& img, Point pt1, Point pt2, Scalar color, int thickness = 1, int lineType = LINE_8, int shift = 0)
- //
- //javadoc: line(img, pt1, pt2, color, thickness, lineType, shift)
- public static void line(Mat img, Point pt1, Point pt2, Scalar color, int thickness, int lineType, int shift) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_line_10(img.nativeObj, pt1.x, pt1.y, pt2.x, pt2.y, color.val[0], color.val[1], color.val[2], color.val[3], thickness, lineType, shift);
- return;
- #else
- return;
- #endif
- }
- //javadoc: line(img, pt1, pt2, color, thickness, lineType)
- public static void line(Mat img, Point pt1, Point pt2, Scalar color, int thickness, int lineType) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_line_11(img.nativeObj, pt1.x, pt1.y, pt2.x, pt2.y, color.val[0], color.val[1], color.val[2], color.val[3], thickness, lineType);
- return;
- #else
- return;
- #endif
- }
- //javadoc: line(img, pt1, pt2, color, thickness)
- public static void line(Mat img, Point pt1, Point pt2, Scalar color, int thickness) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_line_12(img.nativeObj, pt1.x, pt1.y, pt2.x, pt2.y, color.val[0], color.val[1], color.val[2], color.val[3], thickness);
- return;
- #else
- return;
- #endif
- }
- //javadoc: line(img, pt1, pt2, color)
- public static void line(Mat img, Point pt1, Point pt2, Scalar color) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_line_13(img.nativeObj, pt1.x, pt1.y, pt2.x, pt2.y, color.val[0], color.val[1], color.val[2], color.val[3]);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::linearPolar(Mat src, Mat& dst, Point2f center, double maxRadius, int flags)
- //
- //javadoc: linearPolar(src, dst, center, maxRadius, flags)
- [Obsolete("This method is deprecated.")]
- public static void linearPolar(Mat src, Mat dst, Point center, double maxRadius, int flags) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_linearPolar_10(src.nativeObj, dst.nativeObj, center.x, center.y, maxRadius, flags);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::logPolar(Mat src, Mat& dst, Point2f center, double M, int flags)
- //
- //javadoc: logPolar(src, dst, center, M, flags)
- [Obsolete("This method is deprecated.")]
- public static void logPolar(Mat src, Mat dst, Point center, double M, int flags) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_logPolar_10(src.nativeObj, dst.nativeObj, center.x, center.y, M, flags);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::matchTemplate(Mat image, Mat templ, Mat& result, int method, Mat mask = Mat())
- //
- //javadoc: matchTemplate(image, templ, result, method, mask)
- public static void matchTemplate(Mat image, Mat templ, Mat result, int method, Mat mask) {
- if (image != null) image.ThrowIfDisposed();
- if (templ != null) templ.ThrowIfDisposed();
- if (result != null) result.ThrowIfDisposed();
- if (mask != null) mask.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_matchTemplate_10(image.nativeObj, templ.nativeObj, result.nativeObj, method, mask.nativeObj);
- return;
- #else
- return;
- #endif
- }
- //javadoc: matchTemplate(image, templ, result, method)
- public static void matchTemplate(Mat image, Mat templ, Mat result, int method) {
- if (image != null) image.ThrowIfDisposed();
- if (templ != null) templ.ThrowIfDisposed();
- if (result != null) result.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_matchTemplate_11(image.nativeObj, templ.nativeObj, result.nativeObj, method);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::medianBlur(Mat src, Mat& dst, int ksize)
- //
- //javadoc: medianBlur(src, dst, ksize)
- public static void medianBlur(Mat src, Mat dst, int ksize) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_medianBlur_10(src.nativeObj, dst.nativeObj, ksize);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::minEnclosingCircle(vector_Point2f points, Point2f& center, float& radius)
- //
- //javadoc: minEnclosingCircle(points, center, radius)
- public static void minEnclosingCircle(MatOfPoint2f points, Point center, float[] radius) {
- if (points != null) points.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- Mat points_mat = points;
- double[] center_out = new double[2];
- double[] radius_out = new double[1];
- imgproc_Imgproc_minEnclosingCircle_10(points_mat.nativeObj, center_out, radius_out);
- if (center != null) { center.x = center_out[0]; center.y = center_out[1]; }
- if (radius != null) radius[0] = (float)radius_out[0];
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::morphologyEx(Mat src, Mat& dst, int op, Mat kernel, Point anchor = Point(-1,-1), int iterations = 1, int borderType = BORDER_CONSTANT, Scalar borderValue = morphologyDefaultBorderValue())
- //
- //javadoc: morphologyEx(src, dst, op, kernel, anchor, iterations, borderType, borderValue)
- public static void morphologyEx(Mat src, Mat dst, int op, Mat kernel, Point anchor, int iterations, int borderType, Scalar borderValue) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (kernel != null) kernel.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_morphologyEx_10(src.nativeObj, dst.nativeObj, op, kernel.nativeObj, anchor.x, anchor.y, iterations, borderType, borderValue.val[0], borderValue.val[1], borderValue.val[2], borderValue.val[3]);
- return;
- #else
- return;
- #endif
- }
- //javadoc: morphologyEx(src, dst, op, kernel, anchor, iterations, borderType)
- public static void morphologyEx(Mat src, Mat dst, int op, Mat kernel, Point anchor, int iterations, int borderType) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (kernel != null) kernel.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_morphologyEx_11(src.nativeObj, dst.nativeObj, op, kernel.nativeObj, anchor.x, anchor.y, iterations, borderType);
- return;
- #else
- return;
- #endif
- }
- //javadoc: morphologyEx(src, dst, op, kernel, anchor, iterations)
- public static void morphologyEx(Mat src, Mat dst, int op, Mat kernel, Point anchor, int iterations) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (kernel != null) kernel.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_morphologyEx_12(src.nativeObj, dst.nativeObj, op, kernel.nativeObj, anchor.x, anchor.y, iterations);
- return;
- #else
- return;
- #endif
- }
- //javadoc: morphologyEx(src, dst, op, kernel, anchor)
- public static void morphologyEx(Mat src, Mat dst, int op, Mat kernel, Point anchor) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (kernel != null) kernel.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_morphologyEx_13(src.nativeObj, dst.nativeObj, op, kernel.nativeObj, anchor.x, anchor.y);
- return;
- #else
- return;
- #endif
- }
- //javadoc: morphologyEx(src, dst, op, kernel)
- public static void morphologyEx(Mat src, Mat dst, int op, Mat kernel) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (kernel != null) kernel.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_morphologyEx_14(src.nativeObj, dst.nativeObj, op, kernel.nativeObj);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::polylines(Mat& img, vector_vector_Point pts, bool isClosed, Scalar color, int thickness = 1, int lineType = LINE_8, int shift = 0)
- //
- //javadoc: polylines(img, pts, isClosed, color, thickness, lineType, shift)
- public static void polylines(Mat img, List<MatOfPoint> pts, bool isClosed, Scalar color, int thickness, int lineType, int shift) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- List<Mat> pts_tmplm = new List<Mat>((pts != null) ? pts.Count : 0);
- Mat pts_mat = Converters.vector_vector_Point_to_Mat(pts, pts_tmplm);
- imgproc_Imgproc_polylines_10(img.nativeObj, pts_mat.nativeObj, isClosed, color.val[0], color.val[1], color.val[2], color.val[3], thickness, lineType, shift);
- return;
- #else
- return;
- #endif
- }
- //javadoc: polylines(img, pts, isClosed, color, thickness, lineType)
- public static void polylines(Mat img, List<MatOfPoint> pts, bool isClosed, Scalar color, int thickness, int lineType) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- List<Mat> pts_tmplm = new List<Mat>((pts != null) ? pts.Count : 0);
- Mat pts_mat = Converters.vector_vector_Point_to_Mat(pts, pts_tmplm);
- imgproc_Imgproc_polylines_11(img.nativeObj, pts_mat.nativeObj, isClosed, color.val[0], color.val[1], color.val[2], color.val[3], thickness, lineType);
- return;
- #else
- return;
- #endif
- }
- //javadoc: polylines(img, pts, isClosed, color, thickness)
- public static void polylines(Mat img, List<MatOfPoint> pts, bool isClosed, Scalar color, int thickness) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- List<Mat> pts_tmplm = new List<Mat>((pts != null) ? pts.Count : 0);
- Mat pts_mat = Converters.vector_vector_Point_to_Mat(pts, pts_tmplm);
- imgproc_Imgproc_polylines_12(img.nativeObj, pts_mat.nativeObj, isClosed, color.val[0], color.val[1], color.val[2], color.val[3], thickness);
- return;
- #else
- return;
- #endif
- }
- //javadoc: polylines(img, pts, isClosed, color)
- public static void polylines(Mat img, List<MatOfPoint> pts, bool isClosed, Scalar color) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- List<Mat> pts_tmplm = new List<Mat>((pts != null) ? pts.Count : 0);
- Mat pts_mat = Converters.vector_vector_Point_to_Mat(pts, pts_tmplm);
- imgproc_Imgproc_polylines_13(img.nativeObj, pts_mat.nativeObj, isClosed, color.val[0], color.val[1], color.val[2], color.val[3]);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::preCornerDetect(Mat src, Mat& dst, int ksize, int borderType = BORDER_DEFAULT)
- //
- //javadoc: preCornerDetect(src, dst, ksize, borderType)
- public static void preCornerDetect(Mat src, Mat dst, int ksize, int borderType) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_preCornerDetect_10(src.nativeObj, dst.nativeObj, ksize, borderType);
- return;
- #else
- return;
- #endif
- }
- //javadoc: preCornerDetect(src, dst, ksize)
- public static void preCornerDetect(Mat src, Mat dst, int ksize) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_preCornerDetect_11(src.nativeObj, dst.nativeObj, ksize);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::putText(Mat& img, String text, Point org, int fontFace, double fontScale, Scalar color, int thickness = 1, int lineType = LINE_8, bool bottomLeftOrigin = false)
- //
- //javadoc: putText(img, text, org, fontFace, fontScale, color, thickness, lineType, bottomLeftOrigin)
- public static void putText(Mat img, string text, Point org, int fontFace, double fontScale, Scalar color, int thickness, int lineType, bool bottomLeftOrigin) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_putText_10(img.nativeObj, text, org.x, org.y, fontFace, fontScale, color.val[0], color.val[1], color.val[2], color.val[3], thickness, lineType, bottomLeftOrigin);
- return;
- #else
- return;
- #endif
- }
- //javadoc: putText(img, text, org, fontFace, fontScale, color, thickness, lineType)
- public static void putText(Mat img, string text, Point org, int fontFace, double fontScale, Scalar color, int thickness, int lineType) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_putText_11(img.nativeObj, text, org.x, org.y, fontFace, fontScale, color.val[0], color.val[1], color.val[2], color.val[3], thickness, lineType);
- return;
- #else
- return;
- #endif
- }
- //javadoc: putText(img, text, org, fontFace, fontScale, color, thickness)
- public static void putText(Mat img, string text, Point org, int fontFace, double fontScale, Scalar color, int thickness) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_putText_12(img.nativeObj, text, org.x, org.y, fontFace, fontScale, color.val[0], color.val[1], color.val[2], color.val[3], thickness);
- return;
- #else
- return;
- #endif
- }
- //javadoc: putText(img, text, org, fontFace, fontScale, color)
- public static void putText(Mat img, string text, Point org, int fontFace, double fontScale, Scalar color) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_putText_13(img.nativeObj, text, org.x, org.y, fontFace, fontScale, color.val[0], color.val[1], color.val[2], color.val[3]);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::pyrDown(Mat src, Mat& dst, Size dstsize = Size(), int borderType = BORDER_DEFAULT)
- //
- //javadoc: pyrDown(src, dst, dstsize, borderType)
- public static void pyrDown(Mat src, Mat dst, Size dstsize, int borderType) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_pyrDown_10(src.nativeObj, dst.nativeObj, dstsize.width, dstsize.height, borderType);
- return;
- #else
- return;
- #endif
- }
- //javadoc: pyrDown(src, dst, dstsize)
- public static void pyrDown(Mat src, Mat dst, Size dstsize) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_pyrDown_11(src.nativeObj, dst.nativeObj, dstsize.width, dstsize.height);
- return;
- #else
- return;
- #endif
- }
- //javadoc: pyrDown(src, dst)
- public static void pyrDown(Mat src, Mat dst) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_pyrDown_12(src.nativeObj, dst.nativeObj);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::pyrMeanShiftFiltering(Mat src, Mat& dst, double sp, double sr, int maxLevel = 1, TermCriteria termcrit = TermCriteria(TermCriteria::MAX_ITER+TermCriteria::EPS,5,1))
- //
- //javadoc: pyrMeanShiftFiltering(src, dst, sp, sr, maxLevel, termcrit)
- public static void pyrMeanShiftFiltering(Mat src, Mat dst, double sp, double sr, int maxLevel, TermCriteria termcrit) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_pyrMeanShiftFiltering_10(src.nativeObj, dst.nativeObj, sp, sr, maxLevel, termcrit.type, termcrit.maxCount, termcrit.epsilon);
- return;
- #else
- return;
- #endif
- }
- //javadoc: pyrMeanShiftFiltering(src, dst, sp, sr, maxLevel)
- public static void pyrMeanShiftFiltering(Mat src, Mat dst, double sp, double sr, int maxLevel) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_pyrMeanShiftFiltering_11(src.nativeObj, dst.nativeObj, sp, sr, maxLevel);
- return;
- #else
- return;
- #endif
- }
- //javadoc: pyrMeanShiftFiltering(src, dst, sp, sr)
- public static void pyrMeanShiftFiltering(Mat src, Mat dst, double sp, double sr) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_pyrMeanShiftFiltering_12(src.nativeObj, dst.nativeObj, sp, sr);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::pyrUp(Mat src, Mat& dst, Size dstsize = Size(), int borderType = BORDER_DEFAULT)
- //
- //javadoc: pyrUp(src, dst, dstsize, borderType)
- public static void pyrUp(Mat src, Mat dst, Size dstsize, int borderType) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_pyrUp_10(src.nativeObj, dst.nativeObj, dstsize.width, dstsize.height, borderType);
- return;
- #else
- return;
- #endif
- }
- //javadoc: pyrUp(src, dst, dstsize)
- public static void pyrUp(Mat src, Mat dst, Size dstsize) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_pyrUp_11(src.nativeObj, dst.nativeObj, dstsize.width, dstsize.height);
- return;
- #else
- return;
- #endif
- }
- //javadoc: pyrUp(src, dst)
- public static void pyrUp(Mat src, Mat dst) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_pyrUp_12(src.nativeObj, dst.nativeObj);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::rectangle(Mat& img, Point pt1, Point pt2, Scalar color, int thickness = 1, int lineType = LINE_8, int shift = 0)
- //
- //javadoc: rectangle(img, pt1, pt2, color, thickness, lineType, shift)
- public static void rectangle(Mat img, Point pt1, Point pt2, Scalar color, int thickness, int lineType, int shift) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_rectangle_10(img.nativeObj, pt1.x, pt1.y, pt2.x, pt2.y, color.val[0], color.val[1], color.val[2], color.val[3], thickness, lineType, shift);
- return;
- #else
- return;
- #endif
- }
- //javadoc: rectangle(img, pt1, pt2, color, thickness, lineType)
- public static void rectangle(Mat img, Point pt1, Point pt2, Scalar color, int thickness, int lineType) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_rectangle_11(img.nativeObj, pt1.x, pt1.y, pt2.x, pt2.y, color.val[0], color.val[1], color.val[2], color.val[3], thickness, lineType);
- return;
- #else
- return;
- #endif
- }
- //javadoc: rectangle(img, pt1, pt2, color, thickness)
- public static void rectangle(Mat img, Point pt1, Point pt2, Scalar color, int thickness) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_rectangle_12(img.nativeObj, pt1.x, pt1.y, pt2.x, pt2.y, color.val[0], color.val[1], color.val[2], color.val[3], thickness);
- return;
- #else
- return;
- #endif
- }
- //javadoc: rectangle(img, pt1, pt2, color)
- public static void rectangle(Mat img, Point pt1, Point pt2, Scalar color) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_rectangle_13(img.nativeObj, pt1.x, pt1.y, pt2.x, pt2.y, color.val[0], color.val[1], color.val[2], color.val[3]);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::rectangle(Mat& img, Rect rec, Scalar color, int thickness = 1, int lineType = LINE_8, int shift = 0)
- //
- //javadoc: rectangle(img, rec, color, thickness, lineType, shift)
- public static void rectangle(Mat img, Rect rec, Scalar color, int thickness, int lineType, int shift) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_rectangle_14(img.nativeObj, rec.x, rec.y, rec.width, rec.height, color.val[0], color.val[1], color.val[2], color.val[3], thickness, lineType, shift);
- return;
- #else
- return;
- #endif
- }
- //javadoc: rectangle(img, rec, color, thickness, lineType)
- public static void rectangle(Mat img, Rect rec, Scalar color, int thickness, int lineType) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_rectangle_15(img.nativeObj, rec.x, rec.y, rec.width, rec.height, color.val[0], color.val[1], color.val[2], color.val[3], thickness, lineType);
- return;
- #else
- return;
- #endif
- }
- //javadoc: rectangle(img, rec, color, thickness)
- public static void rectangle(Mat img, Rect rec, Scalar color, int thickness) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_rectangle_16(img.nativeObj, rec.x, rec.y, rec.width, rec.height, color.val[0], color.val[1], color.val[2], color.val[3], thickness);
- return;
- #else
- return;
- #endif
- }
- //javadoc: rectangle(img, rec, color)
- public static void rectangle(Mat img, Rect rec, Scalar color) {
- if (img != null) img.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_rectangle_17(img.nativeObj, rec.x, rec.y, rec.width, rec.height, color.val[0], color.val[1], color.val[2], color.val[3]);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::remap(Mat src, Mat& dst, Mat map1, Mat map2, int interpolation, int borderMode = BORDER_CONSTANT, Scalar borderValue = Scalar())
- //
- //javadoc: remap(src, dst, map1, map2, interpolation, borderMode, borderValue)
- public static void remap(Mat src, Mat dst, Mat map1, Mat map2, int interpolation, int borderMode, Scalar borderValue) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (map1 != null) map1.ThrowIfDisposed();
- if (map2 != null) map2.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_remap_10(src.nativeObj, dst.nativeObj, map1.nativeObj, map2.nativeObj, interpolation, borderMode, borderValue.val[0], borderValue.val[1], borderValue.val[2], borderValue.val[3]);
- return;
- #else
- return;
- #endif
- }
- //javadoc: remap(src, dst, map1, map2, interpolation, borderMode)
- public static void remap(Mat src, Mat dst, Mat map1, Mat map2, int interpolation, int borderMode) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (map1 != null) map1.ThrowIfDisposed();
- if (map2 != null) map2.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_remap_11(src.nativeObj, dst.nativeObj, map1.nativeObj, map2.nativeObj, interpolation, borderMode);
- return;
- #else
- return;
- #endif
- }
- //javadoc: remap(src, dst, map1, map2, interpolation)
- public static void remap(Mat src, Mat dst, Mat map1, Mat map2, int interpolation) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (map1 != null) map1.ThrowIfDisposed();
- if (map2 != null) map2.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_remap_12(src.nativeObj, dst.nativeObj, map1.nativeObj, map2.nativeObj, interpolation);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::resize(Mat src, Mat& dst, Size dsize, double fx = 0, double fy = 0, int interpolation = INTER_LINEAR)
- //
- //javadoc: resize(src, dst, dsize, fx, fy, interpolation)
- public static void resize(Mat src, Mat dst, Size dsize, double fx, double fy, int interpolation) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_resize_10(src.nativeObj, dst.nativeObj, dsize.width, dsize.height, fx, fy, interpolation);
- return;
- #else
- return;
- #endif
- }
- //javadoc: resize(src, dst, dsize, fx, fy)
- public static void resize(Mat src, Mat dst, Size dsize, double fx, double fy) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_resize_11(src.nativeObj, dst.nativeObj, dsize.width, dsize.height, fx, fy);
- return;
- #else
- return;
- #endif
- }
- //javadoc: resize(src, dst, dsize, fx)
- public static void resize(Mat src, Mat dst, Size dsize, double fx) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_resize_12(src.nativeObj, dst.nativeObj, dsize.width, dsize.height, fx);
- return;
- #else
- return;
- #endif
- }
- //javadoc: resize(src, dst, dsize)
- public static void resize(Mat src, Mat dst, Size dsize) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_resize_13(src.nativeObj, dst.nativeObj, dsize.width, dsize.height);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::sepFilter2D(Mat src, Mat& dst, int ddepth, Mat kernelX, Mat kernelY, Point anchor = Point(-1,-1), double delta = 0, int borderType = BORDER_DEFAULT)
- //
- //javadoc: sepFilter2D(src, dst, ddepth, kernelX, kernelY, anchor, delta, borderType)
- public static void sepFilter2D(Mat src, Mat dst, int ddepth, Mat kernelX, Mat kernelY, Point anchor, double delta, int borderType) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (kernelX != null) kernelX.ThrowIfDisposed();
- if (kernelY != null) kernelY.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_sepFilter2D_10(src.nativeObj, dst.nativeObj, ddepth, kernelX.nativeObj, kernelY.nativeObj, anchor.x, anchor.y, delta, borderType);
- return;
- #else
- return;
- #endif
- }
- //javadoc: sepFilter2D(src, dst, ddepth, kernelX, kernelY, anchor, delta)
- public static void sepFilter2D(Mat src, Mat dst, int ddepth, Mat kernelX, Mat kernelY, Point anchor, double delta) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (kernelX != null) kernelX.ThrowIfDisposed();
- if (kernelY != null) kernelY.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_sepFilter2D_11(src.nativeObj, dst.nativeObj, ddepth, kernelX.nativeObj, kernelY.nativeObj, anchor.x, anchor.y, delta);
- return;
- #else
- return;
- #endif
- }
- //javadoc: sepFilter2D(src, dst, ddepth, kernelX, kernelY, anchor)
- public static void sepFilter2D(Mat src, Mat dst, int ddepth, Mat kernelX, Mat kernelY, Point anchor) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (kernelX != null) kernelX.ThrowIfDisposed();
- if (kernelY != null) kernelY.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_sepFilter2D_12(src.nativeObj, dst.nativeObj, ddepth, kernelX.nativeObj, kernelY.nativeObj, anchor.x, anchor.y);
- return;
- #else
- return;
- #endif
- }
- //javadoc: sepFilter2D(src, dst, ddepth, kernelX, kernelY)
- public static void sepFilter2D(Mat src, Mat dst, int ddepth, Mat kernelX, Mat kernelY) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (kernelX != null) kernelX.ThrowIfDisposed();
- if (kernelY != null) kernelY.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_sepFilter2D_13(src.nativeObj, dst.nativeObj, ddepth, kernelX.nativeObj, kernelY.nativeObj);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::spatialGradient(Mat src, Mat& dx, Mat& dy, int ksize = 3, int borderType = BORDER_DEFAULT)
- //
- //javadoc: spatialGradient(src, dx, dy, ksize, borderType)
- public static void spatialGradient(Mat src, Mat dx, Mat dy, int ksize, int borderType) {
- if (src != null) src.ThrowIfDisposed();
- if (dx != null) dx.ThrowIfDisposed();
- if (dy != null) dy.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_spatialGradient_10(src.nativeObj, dx.nativeObj, dy.nativeObj, ksize, borderType);
- return;
- #else
- return;
- #endif
- }
- //javadoc: spatialGradient(src, dx, dy, ksize)
- public static void spatialGradient(Mat src, Mat dx, Mat dy, int ksize) {
- if (src != null) src.ThrowIfDisposed();
- if (dx != null) dx.ThrowIfDisposed();
- if (dy != null) dy.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_spatialGradient_11(src.nativeObj, dx.nativeObj, dy.nativeObj, ksize);
- return;
- #else
- return;
- #endif
- }
- //javadoc: spatialGradient(src, dx, dy)
- public static void spatialGradient(Mat src, Mat dx, Mat dy) {
- if (src != null) src.ThrowIfDisposed();
- if (dx != null) dx.ThrowIfDisposed();
- if (dy != null) dy.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_spatialGradient_12(src.nativeObj, dx.nativeObj, dy.nativeObj);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::sqrBoxFilter(Mat src, Mat& dst, int ddepth, Size ksize, Point anchor = Point(-1, -1), bool normalize = true, int borderType = BORDER_DEFAULT)
- //
- //javadoc: sqrBoxFilter(src, dst, ddepth, ksize, anchor, normalize, borderType)
- public static void sqrBoxFilter(Mat src, Mat dst, int ddepth, Size ksize, Point anchor, bool normalize, int borderType) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_sqrBoxFilter_10(src.nativeObj, dst.nativeObj, ddepth, ksize.width, ksize.height, anchor.x, anchor.y, normalize, borderType);
- return;
- #else
- return;
- #endif
- }
- //javadoc: sqrBoxFilter(src, dst, ddepth, ksize, anchor, normalize)
- public static void sqrBoxFilter(Mat src, Mat dst, int ddepth, Size ksize, Point anchor, bool normalize) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_sqrBoxFilter_11(src.nativeObj, dst.nativeObj, ddepth, ksize.width, ksize.height, anchor.x, anchor.y, normalize);
- return;
- #else
- return;
- #endif
- }
- //javadoc: sqrBoxFilter(src, dst, ddepth, ksize, anchor)
- public static void sqrBoxFilter(Mat src, Mat dst, int ddepth, Size ksize, Point anchor) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_sqrBoxFilter_12(src.nativeObj, dst.nativeObj, ddepth, ksize.width, ksize.height, anchor.x, anchor.y);
- return;
- #else
- return;
- #endif
- }
- //javadoc: sqrBoxFilter(src, dst, ddepth, ksize)
- public static void sqrBoxFilter(Mat src, Mat dst, int ddepth, Size ksize) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_sqrBoxFilter_13(src.nativeObj, dst.nativeObj, ddepth, ksize.width, ksize.height);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::warpAffine(Mat src, Mat& dst, Mat M, Size dsize, int flags = INTER_LINEAR, int borderMode = BORDER_CONSTANT, Scalar borderValue = Scalar())
- //
- //javadoc: warpAffine(src, dst, M, dsize, flags, borderMode, borderValue)
- public static void warpAffine(Mat src, Mat dst, Mat M, Size dsize, int flags, int borderMode, Scalar borderValue) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (M != null) M.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_warpAffine_10(src.nativeObj, dst.nativeObj, M.nativeObj, dsize.width, dsize.height, flags, borderMode, borderValue.val[0], borderValue.val[1], borderValue.val[2], borderValue.val[3]);
- return;
- #else
- return;
- #endif
- }
- //javadoc: warpAffine(src, dst, M, dsize, flags, borderMode)
- public static void warpAffine(Mat src, Mat dst, Mat M, Size dsize, int flags, int borderMode) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (M != null) M.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_warpAffine_11(src.nativeObj, dst.nativeObj, M.nativeObj, dsize.width, dsize.height, flags, borderMode);
- return;
- #else
- return;
- #endif
- }
- //javadoc: warpAffine(src, dst, M, dsize, flags)
- public static void warpAffine(Mat src, Mat dst, Mat M, Size dsize, int flags) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (M != null) M.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_warpAffine_12(src.nativeObj, dst.nativeObj, M.nativeObj, dsize.width, dsize.height, flags);
- return;
- #else
- return;
- #endif
- }
- //javadoc: warpAffine(src, dst, M, dsize)
- public static void warpAffine(Mat src, Mat dst, Mat M, Size dsize) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (M != null) M.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_warpAffine_13(src.nativeObj, dst.nativeObj, M.nativeObj, dsize.width, dsize.height);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::warpPerspective(Mat src, Mat& dst, Mat M, Size dsize, int flags = INTER_LINEAR, int borderMode = BORDER_CONSTANT, Scalar borderValue = Scalar())
- //
- //javadoc: warpPerspective(src, dst, M, dsize, flags, borderMode, borderValue)
- public static void warpPerspective(Mat src, Mat dst, Mat M, Size dsize, int flags, int borderMode, Scalar borderValue) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (M != null) M.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_warpPerspective_10(src.nativeObj, dst.nativeObj, M.nativeObj, dsize.width, dsize.height, flags, borderMode, borderValue.val[0], borderValue.val[1], borderValue.val[2], borderValue.val[3]);
- return;
- #else
- return;
- #endif
- }
- //javadoc: warpPerspective(src, dst, M, dsize, flags, borderMode)
- public static void warpPerspective(Mat src, Mat dst, Mat M, Size dsize, int flags, int borderMode) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (M != null) M.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_warpPerspective_11(src.nativeObj, dst.nativeObj, M.nativeObj, dsize.width, dsize.height, flags, borderMode);
- return;
- #else
- return;
- #endif
- }
- //javadoc: warpPerspective(src, dst, M, dsize, flags)
- public static void warpPerspective(Mat src, Mat dst, Mat M, Size dsize, int flags) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (M != null) M.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_warpPerspective_12(src.nativeObj, dst.nativeObj, M.nativeObj, dsize.width, dsize.height, flags);
- return;
- #else
- return;
- #endif
- }
- //javadoc: warpPerspective(src, dst, M, dsize)
- public static void warpPerspective(Mat src, Mat dst, Mat M, Size dsize) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- if (M != null) M.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_warpPerspective_13(src.nativeObj, dst.nativeObj, M.nativeObj, dsize.width, dsize.height);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::warpPolar(Mat src, Mat& dst, Size dsize, Point2f center, double maxRadius, int flags)
- //
- //javadoc: warpPolar(src, dst, dsize, center, maxRadius, flags)
- public static void warpPolar(Mat src, Mat dst, Size dsize, Point center, double maxRadius, int flags) {
- if (src != null) src.ThrowIfDisposed();
- if (dst != null) dst.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_warpPolar_10(src.nativeObj, dst.nativeObj, dsize.width, dsize.height, center.x, center.y, maxRadius, flags);
- return;
- #else
- return;
- #endif
- }
- //
- // C++: void cv::watershed(Mat image, Mat& markers)
- //
- //javadoc: watershed(image, markers)
- public static void watershed(Mat image, Mat markers) {
- if (image != null) image.ThrowIfDisposed();
- if (markers != null) markers.ThrowIfDisposed();
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- imgproc_Imgproc_watershed_10(image.nativeObj, markers.nativeObj);
- return;
- #else
- return;
- #endif
- }
- // C++: Size getTextSize(const String& text, int fontFace, double fontScale, int thickness, int* baseLine);
- //javadoc:getTextSize(text, fontFace, fontScale, thickness, baseLine)
- public static Size getTextSize(string text, int fontFace, double fontScale, int thickness, int[] baseLine) {
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- if (baseLine != null && baseLine.Length != 1)
- throw new CvException("'baseLine' must be 'int[1]' or 'null'.");
- double[] tmpArray = new double[2];
- imgproc_Imgproc_n_1getTextSize(text, fontFace, fontScale, thickness, baseLine, tmpArray);
- Size retVal = new Size(tmpArray);
- return retVal;
- #else
- return null;
- #endif
- }
- #if (UNITY_ANDROID && !UNITY_EDITOR)
- const string LIBNAME = "opencvforunity";
- // C++: Mat cv::getAffineTransform(vector_Point2f src, vector_Point2f dst)
- [DllImport(LIBNAME)]
- private static extern IntPtr imgproc_Imgproc_getAffineTransform_10(IntPtr src_mat_nativeObj, IntPtr dst_mat_nativeObj);
- // C++: Mat cv::getGaborKernel(Size ksize, double sigma, double theta, double lambd, double gamma, double psi = CV_PI*0.5, int ktype = CV_64F)
- [DllImport(LIBNAME)]
- private static extern IntPtr imgproc_Imgproc_getGaborKernel_10(double ksize_width, double ksize_height, double sigma, double theta, double lambd, double gamma, double psi, int ktype);
- [DllImport(LIBNAME)]
- private static extern IntPtr imgproc_Imgproc_getGaborKernel_11(double ksize_width, double ksize_height, double sigma, double theta, double lambd, double gamma, double psi);
- [DllImport(LIBNAME)]
- private static extern IntPtr imgproc_Imgproc_getGaborKernel_12(double ksize_width, double ksize_height, double sigma, double theta, double lambd, double gamma);
- // C++: Mat cv::getGaussianKernel(int ksize, double sigma, int ktype = CV_64F)
- [DllImport(LIBNAME)]
- private static extern IntPtr imgproc_Imgproc_getGaussianKernel_10(int ksize, double sigma, int ktype);
- [DllImport(LIBNAME)]
- private static extern IntPtr imgproc_Imgproc_getGaussianKernel_11(int ksize, double sigma);
- // C++: Mat cv::getPerspectiveTransform(Mat src, Mat dst, int solveMethod = DECOMP_LU)
- [DllImport(LIBNAME)]
- private static extern IntPtr imgproc_Imgproc_getPerspectiveTransform_10(IntPtr src_nativeObj, IntPtr dst_nativeObj, int solveMethod);
- [DllImport(LIBNAME)]
- private static extern IntPtr imgproc_Imgproc_getPerspectiveTransform_11(IntPtr src_nativeObj, IntPtr dst_nativeObj);
- // C++: Mat cv::getRotationMatrix2D(Point2f center, double angle, double scale)
- [DllImport(LIBNAME)]
- private static extern IntPtr imgproc_Imgproc_getRotationMatrix2D_10(double center_x, double center_y, double angle, double scale);
- // C++: Mat cv::getStructuringElement(int shape, Size ksize, Point anchor = Point(-1,-1))
- [DllImport(LIBNAME)]
- private static extern IntPtr imgproc_Imgproc_getStructuringElement_10(int shape, double ksize_width, double ksize_height, double anchor_x, double anchor_y);
- [DllImport(LIBNAME)]
- private static extern IntPtr imgproc_Imgproc_getStructuringElement_11(int shape, double ksize_width, double ksize_height);
- // C++: Moments cv::moments(Mat array, bool binaryImage = false)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_moments_10(IntPtr array_nativeObj, bool binaryImage, double[] retVal);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_moments_11(IntPtr array_nativeObj, double[] retVal);
- // C++: Point2d cv::phaseCorrelate(Mat src1, Mat src2, Mat window = Mat(), double* response = 0)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_phaseCorrelate_10(IntPtr src1_nativeObj, IntPtr src2_nativeObj, IntPtr window_nativeObj, double[] response_out, double[] retVal);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_phaseCorrelate_11(IntPtr src1_nativeObj, IntPtr src2_nativeObj, IntPtr window_nativeObj, double[] retVal);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_phaseCorrelate_12(IntPtr src1_nativeObj, IntPtr src2_nativeObj, double[] retVal);
- // C++: Ptr_CLAHE cv::createCLAHE(double clipLimit = 40.0, Size tileGridSize = Size(8, 8))
- [DllImport(LIBNAME)]
- private static extern IntPtr imgproc_Imgproc_createCLAHE_10(double clipLimit, double tileGridSize_width, double tileGridSize_height);
- [DllImport(LIBNAME)]
- private static extern IntPtr imgproc_Imgproc_createCLAHE_11(double clipLimit);
- [DllImport(LIBNAME)]
- private static extern IntPtr imgproc_Imgproc_createCLAHE_12();
- // C++: Ptr_LineSegmentDetector cv::createLineSegmentDetector(int _refine = LSD_REFINE_STD, double _scale = 0.8, double _sigma_scale = 0.6, double _quant = 2.0, double _ang_th = 22.5, double _log_eps = 0, double _density_th = 0.7, int _n_bins = 1024)
- [DllImport(LIBNAME)]
- private static extern IntPtr imgproc_Imgproc_createLineSegmentDetector_10(int _refine, double _scale, double _sigma_scale, double _quant, double _ang_th, double _log_eps, double _density_th, int _n_bins);
- [DllImport(LIBNAME)]
- private static extern IntPtr imgproc_Imgproc_createLineSegmentDetector_11(int _refine, double _scale, double _sigma_scale, double _quant, double _ang_th, double _log_eps, double _density_th);
- [DllImport(LIBNAME)]
- private static extern IntPtr imgproc_Imgproc_createLineSegmentDetector_12(int _refine, double _scale, double _sigma_scale, double _quant, double _ang_th, double _log_eps);
- [DllImport(LIBNAME)]
- private static extern IntPtr imgproc_Imgproc_createLineSegmentDetector_13(int _refine, double _scale, double _sigma_scale, double _quant, double _ang_th);
- [DllImport(LIBNAME)]
- private static extern IntPtr imgproc_Imgproc_createLineSegmentDetector_14(int _refine, double _scale, double _sigma_scale, double _quant);
- [DllImport(LIBNAME)]
- private static extern IntPtr imgproc_Imgproc_createLineSegmentDetector_15(int _refine, double _scale, double _sigma_scale);
- [DllImport(LIBNAME)]
- private static extern IntPtr imgproc_Imgproc_createLineSegmentDetector_16(int _refine, double _scale);
- [DllImport(LIBNAME)]
- private static extern IntPtr imgproc_Imgproc_createLineSegmentDetector_17(int _refine);
- [DllImport(LIBNAME)]
- private static extern IntPtr imgproc_Imgproc_createLineSegmentDetector_18();
- // C++: Rect cv::boundingRect(Mat array)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_boundingRect_10(IntPtr array_nativeObj, double[] retVal);
- // C++: RotatedRect cv::fitEllipse(vector_Point2f points)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_fitEllipse_10(IntPtr points_mat_nativeObj, double[] retVal);
- // C++: RotatedRect cv::fitEllipseAMS(Mat points)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_fitEllipseAMS_10(IntPtr points_nativeObj, double[] retVal);
- // C++: RotatedRect cv::fitEllipseDirect(Mat points)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_fitEllipseDirect_10(IntPtr points_nativeObj, double[] retVal);
- // C++: RotatedRect cv::minAreaRect(vector_Point2f points)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_minAreaRect_10(IntPtr points_mat_nativeObj, double[] retVal);
- // C++: bool cv::clipLine(Rect imgRect, Point& pt1, Point& pt2)
- [DllImport(LIBNAME)]
- private static extern bool imgproc_Imgproc_clipLine_10(int imgRect_x, int imgRect_y, int imgRect_width, int imgRect_height, double pt1_x, double pt1_y, double[] pt1_out, double pt2_x, double pt2_y, double[] pt2_out);
- // C++: bool cv::isContourConvex(vector_Point contour)
- [DllImport(LIBNAME)]
- private static extern bool imgproc_Imgproc_isContourConvex_10(IntPtr contour_mat_nativeObj);
- // C++: double cv::arcLength(vector_Point2f curve, bool closed)
- [DllImport(LIBNAME)]
- private static extern double imgproc_Imgproc_arcLength_10(IntPtr curve_mat_nativeObj, bool closed);
- // C++: double cv::compareHist(Mat H1, Mat H2, int method)
- [DllImport(LIBNAME)]
- private static extern double imgproc_Imgproc_compareHist_10(IntPtr H1_nativeObj, IntPtr H2_nativeObj, int method);
- // C++: double cv::contourArea(Mat contour, bool oriented = false)
- [DllImport(LIBNAME)]
- private static extern double imgproc_Imgproc_contourArea_10(IntPtr contour_nativeObj, bool oriented);
- [DllImport(LIBNAME)]
- private static extern double imgproc_Imgproc_contourArea_11(IntPtr contour_nativeObj);
- // C++: double cv::getFontScaleFromHeight(int fontFace, int pixelHeight, int thickness = 1)
- [DllImport(LIBNAME)]
- private static extern double imgproc_Imgproc_getFontScaleFromHeight_10(int fontFace, int pixelHeight, int thickness);
- [DllImport(LIBNAME)]
- private static extern double imgproc_Imgproc_getFontScaleFromHeight_11(int fontFace, int pixelHeight);
- // C++: double cv::matchShapes(Mat contour1, Mat contour2, int method, double parameter)
- [DllImport(LIBNAME)]
- private static extern double imgproc_Imgproc_matchShapes_10(IntPtr contour1_nativeObj, IntPtr contour2_nativeObj, int method, double parameter);
- // C++: double cv::minEnclosingTriangle(Mat points, Mat& triangle)
- [DllImport(LIBNAME)]
- private static extern double imgproc_Imgproc_minEnclosingTriangle_10(IntPtr points_nativeObj, IntPtr triangle_nativeObj);
- // C++: double cv::pointPolygonTest(vector_Point2f contour, Point2f pt, bool measureDist)
- [DllImport(LIBNAME)]
- private static extern double imgproc_Imgproc_pointPolygonTest_10(IntPtr contour_mat_nativeObj, double pt_x, double pt_y, bool measureDist);
- // C++: double cv::threshold(Mat src, Mat& dst, double thresh, double maxval, int type)
- [DllImport(LIBNAME)]
- private static extern double imgproc_Imgproc_threshold_10(IntPtr src_nativeObj, IntPtr dst_nativeObj, double thresh, double maxval, int type);
- // C++: float cv::intersectConvexConvex(Mat _p1, Mat _p2, Mat& _p12, bool handleNested = true)
- [DllImport(LIBNAME)]
- private static extern float imgproc_Imgproc_intersectConvexConvex_10(IntPtr _p1_nativeObj, IntPtr _p2_nativeObj, IntPtr _p12_nativeObj, bool handleNested);
- [DllImport(LIBNAME)]
- private static extern float imgproc_Imgproc_intersectConvexConvex_11(IntPtr _p1_nativeObj, IntPtr _p2_nativeObj, IntPtr _p12_nativeObj);
- // C++: float cv::wrapperEMD(Mat signature1, Mat signature2, int distType, Mat cost = Mat(), Ptr_float& lowerBound = Ptr<float>(), Mat& flow = Mat())
- [DllImport(LIBNAME)]
- private static extern float imgproc_Imgproc_EMD_10(IntPtr signature1_nativeObj, IntPtr signature2_nativeObj, int distType, IntPtr cost_nativeObj, IntPtr flow_nativeObj);
- [DllImport(LIBNAME)]
- private static extern float imgproc_Imgproc_EMD_11(IntPtr signature1_nativeObj, IntPtr signature2_nativeObj, int distType, IntPtr cost_nativeObj);
- [DllImport(LIBNAME)]
- private static extern float imgproc_Imgproc_EMD_13(IntPtr signature1_nativeObj, IntPtr signature2_nativeObj, int distType);
- // C++: int cv::connectedComponents(Mat image, Mat& labels, int connectivity, int ltype, int ccltype)
- [DllImport(LIBNAME)]
- private static extern int imgproc_Imgproc_connectedComponentsWithAlgorithm_10(IntPtr image_nativeObj, IntPtr labels_nativeObj, int connectivity, int ltype, int ccltype);
- // C++: int cv::connectedComponents(Mat image, Mat& labels, int connectivity = 8, int ltype = CV_32S)
- [DllImport(LIBNAME)]
- private static extern int imgproc_Imgproc_connectedComponents_10(IntPtr image_nativeObj, IntPtr labels_nativeObj, int connectivity, int ltype);
- [DllImport(LIBNAME)]
- private static extern int imgproc_Imgproc_connectedComponents_11(IntPtr image_nativeObj, IntPtr labels_nativeObj, int connectivity);
- [DllImport(LIBNAME)]
- private static extern int imgproc_Imgproc_connectedComponents_12(IntPtr image_nativeObj, IntPtr labels_nativeObj);
- // C++: int cv::connectedComponentsWithStats(Mat image, Mat& labels, Mat& stats, Mat& centroids, int connectivity, int ltype, int ccltype)
- [DllImport(LIBNAME)]
- private static extern int imgproc_Imgproc_connectedComponentsWithStatsWithAlgorithm_10(IntPtr image_nativeObj, IntPtr labels_nativeObj, IntPtr stats_nativeObj, IntPtr centroids_nativeObj, int connectivity, int ltype, int ccltype);
- // C++: int cv::connectedComponentsWithStats(Mat image, Mat& labels, Mat& stats, Mat& centroids, int connectivity = 8, int ltype = CV_32S)
- [DllImport(LIBNAME)]
- private static extern int imgproc_Imgproc_connectedComponentsWithStats_10(IntPtr image_nativeObj, IntPtr labels_nativeObj, IntPtr stats_nativeObj, IntPtr centroids_nativeObj, int connectivity, int ltype);
- [DllImport(LIBNAME)]
- private static extern int imgproc_Imgproc_connectedComponentsWithStats_11(IntPtr image_nativeObj, IntPtr labels_nativeObj, IntPtr stats_nativeObj, IntPtr centroids_nativeObj, int connectivity);
- [DllImport(LIBNAME)]
- private static extern int imgproc_Imgproc_connectedComponentsWithStats_12(IntPtr image_nativeObj, IntPtr labels_nativeObj, IntPtr stats_nativeObj, IntPtr centroids_nativeObj);
- // C++: int cv::floodFill(Mat& image, Mat& mask, Point seedPoint, Scalar newVal, Rect* rect = 0, Scalar loDiff = Scalar(), Scalar upDiff = Scalar(), int flags = 4)
- [DllImport(LIBNAME)]
- private static extern int imgproc_Imgproc_floodFill_10(IntPtr image_nativeObj, IntPtr mask_nativeObj, double seedPoint_x, double seedPoint_y, double newVal_val0, double newVal_val1, double newVal_val2, double newVal_val3, double[] rect_out, double loDiff_val0, double loDiff_val1, double loDiff_val2, double loDiff_val3, double upDiff_val0, double upDiff_val1, double upDiff_val2, double upDiff_val3, int flags);
- [DllImport(LIBNAME)]
- private static extern int imgproc_Imgproc_floodFill_11(IntPtr image_nativeObj, IntPtr mask_nativeObj, double seedPoint_x, double seedPoint_y, double newVal_val0, double newVal_val1, double newVal_val2, double newVal_val3, double[] rect_out, double loDiff_val0, double loDiff_val1, double loDiff_val2, double loDiff_val3, double upDiff_val0, double upDiff_val1, double upDiff_val2, double upDiff_val3);
- [DllImport(LIBNAME)]
- private static extern int imgproc_Imgproc_floodFill_12(IntPtr image_nativeObj, IntPtr mask_nativeObj, double seedPoint_x, double seedPoint_y, double newVal_val0, double newVal_val1, double newVal_val2, double newVal_val3, double[] rect_out, double loDiff_val0, double loDiff_val1, double loDiff_val2, double loDiff_val3);
- [DllImport(LIBNAME)]
- private static extern int imgproc_Imgproc_floodFill_13(IntPtr image_nativeObj, IntPtr mask_nativeObj, double seedPoint_x, double seedPoint_y, double newVal_val0, double newVal_val1, double newVal_val2, double newVal_val3, double[] rect_out);
- [DllImport(LIBNAME)]
- private static extern int imgproc_Imgproc_floodFill_14(IntPtr image_nativeObj, IntPtr mask_nativeObj, double seedPoint_x, double seedPoint_y, double newVal_val0, double newVal_val1, double newVal_val2, double newVal_val3);
- // C++: int cv::rotatedRectangleIntersection(RotatedRect rect1, RotatedRect rect2, Mat& intersectingRegion)
- [DllImport(LIBNAME)]
- private static extern int imgproc_Imgproc_rotatedRectangleIntersection_10(double rect1_center_x, double rect1_center_y, double rect1_size_width, double rect1_size_height, double rect1_angle, double rect2_center_x, double rect2_center_y, double rect2_size_width, double rect2_size_height, double rect2_angle, IntPtr intersectingRegion_nativeObj);
- // C++: void cv::Canny(Mat dx, Mat dy, Mat& edges, double threshold1, double threshold2, bool L2gradient = false)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_Canny_10(IntPtr dx_nativeObj, IntPtr dy_nativeObj, IntPtr edges_nativeObj, double threshold1, double threshold2, bool L2gradient);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_Canny_11(IntPtr dx_nativeObj, IntPtr dy_nativeObj, IntPtr edges_nativeObj, double threshold1, double threshold2);
- // C++: void cv::Canny(Mat image, Mat& edges, double threshold1, double threshold2, int apertureSize = 3, bool L2gradient = false)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_Canny_12(IntPtr image_nativeObj, IntPtr edges_nativeObj, double threshold1, double threshold2, int apertureSize, bool L2gradient);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_Canny_13(IntPtr image_nativeObj, IntPtr edges_nativeObj, double threshold1, double threshold2, int apertureSize);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_Canny_14(IntPtr image_nativeObj, IntPtr edges_nativeObj, double threshold1, double threshold2);
- // C++: void cv::GaussianBlur(Mat src, Mat& dst, Size ksize, double sigmaX, double sigmaY = 0, int borderType = BORDER_DEFAULT)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_GaussianBlur_10(IntPtr src_nativeObj, IntPtr dst_nativeObj, double ksize_width, double ksize_height, double sigmaX, double sigmaY, int borderType);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_GaussianBlur_11(IntPtr src_nativeObj, IntPtr dst_nativeObj, double ksize_width, double ksize_height, double sigmaX, double sigmaY);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_GaussianBlur_12(IntPtr src_nativeObj, IntPtr dst_nativeObj, double ksize_width, double ksize_height, double sigmaX);
- // C++: void cv::HoughCircles(Mat image, Mat& circles, int method, double dp, double minDist, double param1 = 100, double param2 = 100, int minRadius = 0, int maxRadius = 0)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_HoughCircles_10(IntPtr image_nativeObj, IntPtr circles_nativeObj, int method, double dp, double minDist, double param1, double param2, int minRadius, int maxRadius);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_HoughCircles_11(IntPtr image_nativeObj, IntPtr circles_nativeObj, int method, double dp, double minDist, double param1, double param2, int minRadius);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_HoughCircles_12(IntPtr image_nativeObj, IntPtr circles_nativeObj, int method, double dp, double minDist, double param1, double param2);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_HoughCircles_13(IntPtr image_nativeObj, IntPtr circles_nativeObj, int method, double dp, double minDist, double param1);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_HoughCircles_14(IntPtr image_nativeObj, IntPtr circles_nativeObj, int method, double dp, double minDist);
- // C++: void cv::HoughLines(Mat image, Mat& lines, double rho, double theta, int threshold, double srn = 0, double stn = 0, double min_theta = 0, double max_theta = CV_PI)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_HoughLines_10(IntPtr image_nativeObj, IntPtr lines_nativeObj, double rho, double theta, int threshold, double srn, double stn, double min_theta, double max_theta);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_HoughLines_11(IntPtr image_nativeObj, IntPtr lines_nativeObj, double rho, double theta, int threshold, double srn, double stn, double min_theta);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_HoughLines_12(IntPtr image_nativeObj, IntPtr lines_nativeObj, double rho, double theta, int threshold, double srn, double stn);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_HoughLines_13(IntPtr image_nativeObj, IntPtr lines_nativeObj, double rho, double theta, int threshold, double srn);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_HoughLines_14(IntPtr image_nativeObj, IntPtr lines_nativeObj, double rho, double theta, int threshold);
- // C++: void cv::HoughLinesP(Mat image, Mat& lines, double rho, double theta, int threshold, double minLineLength = 0, double maxLineGap = 0)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_HoughLinesP_10(IntPtr image_nativeObj, IntPtr lines_nativeObj, double rho, double theta, int threshold, double minLineLength, double maxLineGap);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_HoughLinesP_11(IntPtr image_nativeObj, IntPtr lines_nativeObj, double rho, double theta, int threshold, double minLineLength);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_HoughLinesP_12(IntPtr image_nativeObj, IntPtr lines_nativeObj, double rho, double theta, int threshold);
- // C++: void cv::HoughLinesPointSet(Mat _point, Mat& _lines, int lines_max, int threshold, double min_rho, double max_rho, double rho_step, double min_theta, double max_theta, double theta_step)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_HoughLinesPointSet_10(IntPtr _point_nativeObj, IntPtr _lines_nativeObj, int lines_max, int threshold, double min_rho, double max_rho, double rho_step, double min_theta, double max_theta, double theta_step);
- // C++: void cv::HuMoments(Moments m, Mat& hu)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_HuMoments_10(double m_m00, double m_m10, double m_m01, double m_m20, double m_m11, double m_m02, double m_m30, double m_m21, double m_m12, double m_m03, IntPtr hu_nativeObj);
- // C++: void cv::Laplacian(Mat src, Mat& dst, int ddepth, int ksize = 1, double scale = 1, double delta = 0, int borderType = BORDER_DEFAULT)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_Laplacian_10(IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, int ksize, double scale, double delta, int borderType);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_Laplacian_11(IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, int ksize, double scale, double delta);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_Laplacian_12(IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, int ksize, double scale);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_Laplacian_13(IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, int ksize);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_Laplacian_14(IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth);
- // C++: void cv::Scharr(Mat src, Mat& dst, int ddepth, int dx, int dy, double scale = 1, double delta = 0, int borderType = BORDER_DEFAULT)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_Scharr_10(IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, int dx, int dy, double scale, double delta, int borderType);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_Scharr_11(IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, int dx, int dy, double scale, double delta);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_Scharr_12(IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, int dx, int dy, double scale);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_Scharr_13(IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, int dx, int dy);
- // C++: void cv::Sobel(Mat src, Mat& dst, int ddepth, int dx, int dy, int ksize = 3, double scale = 1, double delta = 0, int borderType = BORDER_DEFAULT)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_Sobel_10(IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, int dx, int dy, int ksize, double scale, double delta, int borderType);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_Sobel_11(IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, int dx, int dy, int ksize, double scale, double delta);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_Sobel_12(IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, int dx, int dy, int ksize, double scale);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_Sobel_13(IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, int dx, int dy, int ksize);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_Sobel_14(IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, int dx, int dy);
- // C++: void cv::accumulate(Mat src, Mat& dst, Mat mask = Mat())
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_accumulate_10(IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr mask_nativeObj);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_accumulate_11(IntPtr src_nativeObj, IntPtr dst_nativeObj);
- // C++: void cv::accumulateProduct(Mat src1, Mat src2, Mat& dst, Mat mask = Mat())
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_accumulateProduct_10(IntPtr src1_nativeObj, IntPtr src2_nativeObj, IntPtr dst_nativeObj, IntPtr mask_nativeObj);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_accumulateProduct_11(IntPtr src1_nativeObj, IntPtr src2_nativeObj, IntPtr dst_nativeObj);
- // C++: void cv::accumulateSquare(Mat src, Mat& dst, Mat mask = Mat())
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_accumulateSquare_10(IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr mask_nativeObj);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_accumulateSquare_11(IntPtr src_nativeObj, IntPtr dst_nativeObj);
- // C++: void cv::accumulateWeighted(Mat src, Mat& dst, double alpha, Mat mask = Mat())
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_accumulateWeighted_10(IntPtr src_nativeObj, IntPtr dst_nativeObj, double alpha, IntPtr mask_nativeObj);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_accumulateWeighted_11(IntPtr src_nativeObj, IntPtr dst_nativeObj, double alpha);
- // C++: void cv::adaptiveThreshold(Mat src, Mat& dst, double maxValue, int adaptiveMethod, int thresholdType, int blockSize, double C)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_adaptiveThreshold_10(IntPtr src_nativeObj, IntPtr dst_nativeObj, double maxValue, int adaptiveMethod, int thresholdType, int blockSize, double C);
- // C++: void cv::applyColorMap(Mat src, Mat& dst, Mat userColor)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_applyColorMap_10(IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr userColor_nativeObj);
- // C++: void cv::applyColorMap(Mat src, Mat& dst, int colormap)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_applyColorMap_11(IntPtr src_nativeObj, IntPtr dst_nativeObj, int colormap);
- // C++: void cv::approxPolyDP(vector_Point2f curve, vector_Point2f& approxCurve, double epsilon, bool closed)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_approxPolyDP_10(IntPtr curve_mat_nativeObj, IntPtr approxCurve_mat_nativeObj, double epsilon, bool closed);
- // C++: void cv::arrowedLine(Mat& img, Point pt1, Point pt2, Scalar color, int thickness = 1, int line_type = 8, int shift = 0, double tipLength = 0.1)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_arrowedLine_10(IntPtr img_nativeObj, double pt1_x, double pt1_y, double pt2_x, double pt2_y, double color_val0, double color_val1, double color_val2, double color_val3, int thickness, int line_type, int shift, double tipLength);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_arrowedLine_11(IntPtr img_nativeObj, double pt1_x, double pt1_y, double pt2_x, double pt2_y, double color_val0, double color_val1, double color_val2, double color_val3, int thickness, int line_type, int shift);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_arrowedLine_12(IntPtr img_nativeObj, double pt1_x, double pt1_y, double pt2_x, double pt2_y, double color_val0, double color_val1, double color_val2, double color_val3, int thickness, int line_type);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_arrowedLine_13(IntPtr img_nativeObj, double pt1_x, double pt1_y, double pt2_x, double pt2_y, double color_val0, double color_val1, double color_val2, double color_val3, int thickness);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_arrowedLine_14(IntPtr img_nativeObj, double pt1_x, double pt1_y, double pt2_x, double pt2_y, double color_val0, double color_val1, double color_val2, double color_val3);
- // C++: void cv::bilateralFilter(Mat src, Mat& dst, int d, double sigmaColor, double sigmaSpace, int borderType = BORDER_DEFAULT)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_bilateralFilter_10(IntPtr src_nativeObj, IntPtr dst_nativeObj, int d, double sigmaColor, double sigmaSpace, int borderType);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_bilateralFilter_11(IntPtr src_nativeObj, IntPtr dst_nativeObj, int d, double sigmaColor, double sigmaSpace);
- // C++: void cv::blur(Mat src, Mat& dst, Size ksize, Point anchor = Point(-1,-1), int borderType = BORDER_DEFAULT)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_blur_10(IntPtr src_nativeObj, IntPtr dst_nativeObj, double ksize_width, double ksize_height, double anchor_x, double anchor_y, int borderType);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_blur_11(IntPtr src_nativeObj, IntPtr dst_nativeObj, double ksize_width, double ksize_height, double anchor_x, double anchor_y);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_blur_12(IntPtr src_nativeObj, IntPtr dst_nativeObj, double ksize_width, double ksize_height);
- // C++: void cv::boxFilter(Mat src, Mat& dst, int ddepth, Size ksize, Point anchor = Point(-1,-1), bool normalize = true, int borderType = BORDER_DEFAULT)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_boxFilter_10(IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, double ksize_width, double ksize_height, double anchor_x, double anchor_y, bool normalize, int borderType);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_boxFilter_11(IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, double ksize_width, double ksize_height, double anchor_x, double anchor_y, bool normalize);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_boxFilter_12(IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, double ksize_width, double ksize_height, double anchor_x, double anchor_y);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_boxFilter_13(IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, double ksize_width, double ksize_height);
- // C++: void cv::boxPoints(RotatedRect box, Mat& points)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_boxPoints_10(double box_center_x, double box_center_y, double box_size_width, double box_size_height, double box_angle, IntPtr points_nativeObj);
- // C++: void cv::calcBackProject(vector_Mat images, vector_int channels, Mat hist, Mat& dst, vector_float ranges, double scale)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_calcBackProject_10(IntPtr images_mat_nativeObj, IntPtr channels_mat_nativeObj, IntPtr hist_nativeObj, IntPtr dst_nativeObj, IntPtr ranges_mat_nativeObj, double scale);
- // C++: void cv::calcHist(vector_Mat images, vector_int channels, Mat mask, Mat& hist, vector_int histSize, vector_float ranges, bool accumulate = false)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_calcHist_10(IntPtr images_mat_nativeObj, IntPtr channels_mat_nativeObj, IntPtr mask_nativeObj, IntPtr hist_nativeObj, IntPtr histSize_mat_nativeObj, IntPtr ranges_mat_nativeObj, bool accumulate);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_calcHist_11(IntPtr images_mat_nativeObj, IntPtr channels_mat_nativeObj, IntPtr mask_nativeObj, IntPtr hist_nativeObj, IntPtr histSize_mat_nativeObj, IntPtr ranges_mat_nativeObj);
- // C++: void cv::circle(Mat& img, Point center, int radius, Scalar color, int thickness = 1, int lineType = LINE_8, int shift = 0)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_circle_10(IntPtr img_nativeObj, double center_x, double center_y, int radius, double color_val0, double color_val1, double color_val2, double color_val3, int thickness, int lineType, int shift);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_circle_11(IntPtr img_nativeObj, double center_x, double center_y, int radius, double color_val0, double color_val1, double color_val2, double color_val3, int thickness, int lineType);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_circle_12(IntPtr img_nativeObj, double center_x, double center_y, int radius, double color_val0, double color_val1, double color_val2, double color_val3, int thickness);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_circle_13(IntPtr img_nativeObj, double center_x, double center_y, int radius, double color_val0, double color_val1, double color_val2, double color_val3);
- // C++: void cv::convertMaps(Mat map1, Mat map2, Mat& dstmap1, Mat& dstmap2, int dstmap1type, bool nninterpolation = false)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_convertMaps_10(IntPtr map1_nativeObj, IntPtr map2_nativeObj, IntPtr dstmap1_nativeObj, IntPtr dstmap2_nativeObj, int dstmap1type, bool nninterpolation);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_convertMaps_11(IntPtr map1_nativeObj, IntPtr map2_nativeObj, IntPtr dstmap1_nativeObj, IntPtr dstmap2_nativeObj, int dstmap1type);
- // C++: void cv::convexHull(vector_Point points, vector_int& hull, bool clockwise = false, _hidden_ returnPoints = true)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_convexHull_10(IntPtr points_mat_nativeObj, IntPtr hull_mat_nativeObj, bool clockwise);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_convexHull_12(IntPtr points_mat_nativeObj, IntPtr hull_mat_nativeObj);
- // C++: void cv::convexityDefects(vector_Point contour, vector_int convexhull, vector_Vec4i& convexityDefects)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_convexityDefects_10(IntPtr contour_mat_nativeObj, IntPtr convexhull_mat_nativeObj, IntPtr convexityDefects_mat_nativeObj);
- // C++: void cv::cornerEigenValsAndVecs(Mat src, Mat& dst, int blockSize, int ksize, int borderType = BORDER_DEFAULT)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_cornerEigenValsAndVecs_10(IntPtr src_nativeObj, IntPtr dst_nativeObj, int blockSize, int ksize, int borderType);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_cornerEigenValsAndVecs_11(IntPtr src_nativeObj, IntPtr dst_nativeObj, int blockSize, int ksize);
- // C++: void cv::cornerHarris(Mat src, Mat& dst, int blockSize, int ksize, double k, int borderType = BORDER_DEFAULT)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_cornerHarris_10(IntPtr src_nativeObj, IntPtr dst_nativeObj, int blockSize, int ksize, double k, int borderType);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_cornerHarris_11(IntPtr src_nativeObj, IntPtr dst_nativeObj, int blockSize, int ksize, double k);
- // C++: void cv::cornerMinEigenVal(Mat src, Mat& dst, int blockSize, int ksize = 3, int borderType = BORDER_DEFAULT)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_cornerMinEigenVal_10(IntPtr src_nativeObj, IntPtr dst_nativeObj, int blockSize, int ksize, int borderType);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_cornerMinEigenVal_11(IntPtr src_nativeObj, IntPtr dst_nativeObj, int blockSize, int ksize);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_cornerMinEigenVal_12(IntPtr src_nativeObj, IntPtr dst_nativeObj, int blockSize);
- // C++: void cv::cornerSubPix(Mat image, Mat& corners, Size winSize, Size zeroZone, TermCriteria criteria)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_cornerSubPix_10(IntPtr image_nativeObj, IntPtr corners_nativeObj, double winSize_width, double winSize_height, double zeroZone_width, double zeroZone_height, int criteria_type, int criteria_maxCount, double criteria_epsilon);
- // C++: void cv::createHanningWindow(Mat& dst, Size winSize, int type)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_createHanningWindow_10(IntPtr dst_nativeObj, double winSize_width, double winSize_height, int type);
- // C++: void cv::cvtColor(Mat src, Mat& dst, int code, int dstCn = 0)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_cvtColor_10(IntPtr src_nativeObj, IntPtr dst_nativeObj, int code, int dstCn);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_cvtColor_11(IntPtr src_nativeObj, IntPtr dst_nativeObj, int code);
- // C++: void cv::cvtColorTwoPlane(Mat src1, Mat src2, Mat& dst, int code)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_cvtColorTwoPlane_10(IntPtr src1_nativeObj, IntPtr src2_nativeObj, IntPtr dst_nativeObj, int code);
- // C++: void cv::demosaicing(Mat src, Mat& dst, int code, int dstCn = 0)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_demosaicing_10(IntPtr src_nativeObj, IntPtr dst_nativeObj, int code, int dstCn);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_demosaicing_11(IntPtr src_nativeObj, IntPtr dst_nativeObj, int code);
- // C++: void cv::dilate(Mat src, Mat& dst, Mat kernel, Point anchor = Point(-1,-1), int iterations = 1, int borderType = BORDER_CONSTANT, Scalar borderValue = morphologyDefaultBorderValue())
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_dilate_10(IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr kernel_nativeObj, double anchor_x, double anchor_y, int iterations, int borderType, double borderValue_val0, double borderValue_val1, double borderValue_val2, double borderValue_val3);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_dilate_11(IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr kernel_nativeObj, double anchor_x, double anchor_y, int iterations, int borderType);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_dilate_12(IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr kernel_nativeObj, double anchor_x, double anchor_y, int iterations);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_dilate_13(IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr kernel_nativeObj, double anchor_x, double anchor_y);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_dilate_14(IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr kernel_nativeObj);
- // C++: void cv::distanceTransform(Mat src, Mat& dst, Mat& labels, int distanceType, int maskSize, int labelType = DIST_LABEL_CCOMP)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_distanceTransformWithLabels_10(IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr labels_nativeObj, int distanceType, int maskSize, int labelType);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_distanceTransformWithLabels_11(IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr labels_nativeObj, int distanceType, int maskSize);
- // C++: void cv::distanceTransform(Mat src, Mat& dst, int distanceType, int maskSize, int dstType = CV_32F)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_distanceTransform_10(IntPtr src_nativeObj, IntPtr dst_nativeObj, int distanceType, int maskSize, int dstType);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_distanceTransform_11(IntPtr src_nativeObj, IntPtr dst_nativeObj, int distanceType, int maskSize);
- // C++: void cv::drawContours(Mat& image, vector_vector_Point contours, int contourIdx, Scalar color, int thickness = 1, int lineType = LINE_8, Mat hierarchy = Mat(), int maxLevel = INT_MAX, Point offset = Point())
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_drawContours_10(IntPtr image_nativeObj, IntPtr contours_mat_nativeObj, int contourIdx, double color_val0, double color_val1, double color_val2, double color_val3, int thickness, int lineType, IntPtr hierarchy_nativeObj, int maxLevel, double offset_x, double offset_y);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_drawContours_11(IntPtr image_nativeObj, IntPtr contours_mat_nativeObj, int contourIdx, double color_val0, double color_val1, double color_val2, double color_val3, int thickness, int lineType, IntPtr hierarchy_nativeObj, int maxLevel);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_drawContours_12(IntPtr image_nativeObj, IntPtr contours_mat_nativeObj, int contourIdx, double color_val0, double color_val1, double color_val2, double color_val3, int thickness, int lineType, IntPtr hierarchy_nativeObj);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_drawContours_13(IntPtr image_nativeObj, IntPtr contours_mat_nativeObj, int contourIdx, double color_val0, double color_val1, double color_val2, double color_val3, int thickness, int lineType);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_drawContours_14(IntPtr image_nativeObj, IntPtr contours_mat_nativeObj, int contourIdx, double color_val0, double color_val1, double color_val2, double color_val3, int thickness);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_drawContours_15(IntPtr image_nativeObj, IntPtr contours_mat_nativeObj, int contourIdx, double color_val0, double color_val1, double color_val2, double color_val3);
- // C++: void cv::drawMarker(Mat& img, Point position, Scalar color, int markerType = MARKER_CROSS, int markerSize = 20, int thickness = 1, int line_type = 8)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_drawMarker_10(IntPtr img_nativeObj, double position_x, double position_y, double color_val0, double color_val1, double color_val2, double color_val3, int markerType, int markerSize, int thickness, int line_type);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_drawMarker_11(IntPtr img_nativeObj, double position_x, double position_y, double color_val0, double color_val1, double color_val2, double color_val3, int markerType, int markerSize, int thickness);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_drawMarker_12(IntPtr img_nativeObj, double position_x, double position_y, double color_val0, double color_val1, double color_val2, double color_val3, int markerType, int markerSize);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_drawMarker_13(IntPtr img_nativeObj, double position_x, double position_y, double color_val0, double color_val1, double color_val2, double color_val3, int markerType);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_drawMarker_14(IntPtr img_nativeObj, double position_x, double position_y, double color_val0, double color_val1, double color_val2, double color_val3);
- // C++: void cv::ellipse(Mat& img, Point center, Size axes, double angle, double startAngle, double endAngle, Scalar color, int thickness = 1, int lineType = LINE_8, int shift = 0)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_ellipse_10(IntPtr img_nativeObj, double center_x, double center_y, double axes_width, double axes_height, double angle, double startAngle, double endAngle, double color_val0, double color_val1, double color_val2, double color_val3, int thickness, int lineType, int shift);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_ellipse_11(IntPtr img_nativeObj, double center_x, double center_y, double axes_width, double axes_height, double angle, double startAngle, double endAngle, double color_val0, double color_val1, double color_val2, double color_val3, int thickness, int lineType);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_ellipse_12(IntPtr img_nativeObj, double center_x, double center_y, double axes_width, double axes_height, double angle, double startAngle, double endAngle, double color_val0, double color_val1, double color_val2, double color_val3, int thickness);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_ellipse_13(IntPtr img_nativeObj, double center_x, double center_y, double axes_width, double axes_height, double angle, double startAngle, double endAngle, double color_val0, double color_val1, double color_val2, double color_val3);
- // C++: void cv::ellipse(Mat& img, RotatedRect box, Scalar color, int thickness = 1, int lineType = LINE_8)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_ellipse_14(IntPtr img_nativeObj, double box_center_x, double box_center_y, double box_size_width, double box_size_height, double box_angle, double color_val0, double color_val1, double color_val2, double color_val3, int thickness, int lineType);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_ellipse_15(IntPtr img_nativeObj, double box_center_x, double box_center_y, double box_size_width, double box_size_height, double box_angle, double color_val0, double color_val1, double color_val2, double color_val3, int thickness);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_ellipse_16(IntPtr img_nativeObj, double box_center_x, double box_center_y, double box_size_width, double box_size_height, double box_angle, double color_val0, double color_val1, double color_val2, double color_val3);
- // C++: void cv::ellipse2Poly(Point center, Size axes, int angle, int arcStart, int arcEnd, int delta, vector_Point& pts)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_ellipse2Poly_10(double center_x, double center_y, double axes_width, double axes_height, int angle, int arcStart, int arcEnd, int delta, IntPtr pts_mat_nativeObj);
- // C++: void cv::equalizeHist(Mat src, Mat& dst)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_equalizeHist_10(IntPtr src_nativeObj, IntPtr dst_nativeObj);
- // C++: void cv::erode(Mat src, Mat& dst, Mat kernel, Point anchor = Point(-1,-1), int iterations = 1, int borderType = BORDER_CONSTANT, Scalar borderValue = morphologyDefaultBorderValue())
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_erode_10(IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr kernel_nativeObj, double anchor_x, double anchor_y, int iterations, int borderType, double borderValue_val0, double borderValue_val1, double borderValue_val2, double borderValue_val3);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_erode_11(IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr kernel_nativeObj, double anchor_x, double anchor_y, int iterations, int borderType);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_erode_12(IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr kernel_nativeObj, double anchor_x, double anchor_y, int iterations);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_erode_13(IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr kernel_nativeObj, double anchor_x, double anchor_y);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_erode_14(IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr kernel_nativeObj);
- // C++: void cv::fillConvexPoly(Mat& img, vector_Point points, Scalar color, int lineType = LINE_8, int shift = 0)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_fillConvexPoly_10(IntPtr img_nativeObj, IntPtr points_mat_nativeObj, double color_val0, double color_val1, double color_val2, double color_val3, int lineType, int shift);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_fillConvexPoly_11(IntPtr img_nativeObj, IntPtr points_mat_nativeObj, double color_val0, double color_val1, double color_val2, double color_val3, int lineType);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_fillConvexPoly_12(IntPtr img_nativeObj, IntPtr points_mat_nativeObj, double color_val0, double color_val1, double color_val2, double color_val3);
- // C++: void cv::fillPoly(Mat& img, vector_vector_Point pts, Scalar color, int lineType = LINE_8, int shift = 0, Point offset = Point())
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_fillPoly_10(IntPtr img_nativeObj, IntPtr pts_mat_nativeObj, double color_val0, double color_val1, double color_val2, double color_val3, int lineType, int shift, double offset_x, double offset_y);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_fillPoly_11(IntPtr img_nativeObj, IntPtr pts_mat_nativeObj, double color_val0, double color_val1, double color_val2, double color_val3, int lineType, int shift);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_fillPoly_12(IntPtr img_nativeObj, IntPtr pts_mat_nativeObj, double color_val0, double color_val1, double color_val2, double color_val3, int lineType);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_fillPoly_13(IntPtr img_nativeObj, IntPtr pts_mat_nativeObj, double color_val0, double color_val1, double color_val2, double color_val3);
- // C++: void cv::filter2D(Mat src, Mat& dst, int ddepth, Mat kernel, Point anchor = Point(-1,-1), double delta = 0, int borderType = BORDER_DEFAULT)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_filter2D_10(IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, IntPtr kernel_nativeObj, double anchor_x, double anchor_y, double delta, int borderType);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_filter2D_11(IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, IntPtr kernel_nativeObj, double anchor_x, double anchor_y, double delta);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_filter2D_12(IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, IntPtr kernel_nativeObj, double anchor_x, double anchor_y);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_filter2D_13(IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, IntPtr kernel_nativeObj);
- // C++: void cv::findContours(Mat image, vector_vector_Point& contours, Mat& hierarchy, int mode, int method, Point offset = Point())
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_findContours_10(IntPtr image_nativeObj, IntPtr contours_mat_nativeObj, IntPtr hierarchy_nativeObj, int mode, int method, double offset_x, double offset_y);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_findContours_11(IntPtr image_nativeObj, IntPtr contours_mat_nativeObj, IntPtr hierarchy_nativeObj, int mode, int method);
- // C++: void cv::fitLine(Mat points, Mat& line, int distType, double param, double reps, double aeps)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_fitLine_10(IntPtr points_nativeObj, IntPtr line_nativeObj, int distType, double param, double reps, double aeps);
- // C++: void cv::getDerivKernels(Mat& kx, Mat& ky, int dx, int dy, int ksize, bool normalize = false, int ktype = CV_32F)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_getDerivKernels_10(IntPtr kx_nativeObj, IntPtr ky_nativeObj, int dx, int dy, int ksize, bool normalize, int ktype);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_getDerivKernels_11(IntPtr kx_nativeObj, IntPtr ky_nativeObj, int dx, int dy, int ksize, bool normalize);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_getDerivKernels_12(IntPtr kx_nativeObj, IntPtr ky_nativeObj, int dx, int dy, int ksize);
- // C++: void cv::getRectSubPix(Mat image, Size patchSize, Point2f center, Mat& patch, int patchType = -1)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_getRectSubPix_10(IntPtr image_nativeObj, double patchSize_width, double patchSize_height, double center_x, double center_y, IntPtr patch_nativeObj, int patchType);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_getRectSubPix_11(IntPtr image_nativeObj, double patchSize_width, double patchSize_height, double center_x, double center_y, IntPtr patch_nativeObj);
- // C++: void cv::goodFeaturesToTrack(Mat image, vector_Point& corners, int maxCorners, double qualityLevel, double minDistance, Mat mask, int blockSize, int gradientSize, bool useHarrisDetector = false, double k = 0.04)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_goodFeaturesToTrack_10(IntPtr image_nativeObj, IntPtr corners_mat_nativeObj, int maxCorners, double qualityLevel, double minDistance, IntPtr mask_nativeObj, int blockSize, int gradientSize, bool useHarrisDetector, double k);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_goodFeaturesToTrack_11(IntPtr image_nativeObj, IntPtr corners_mat_nativeObj, int maxCorners, double qualityLevel, double minDistance, IntPtr mask_nativeObj, int blockSize, int gradientSize, bool useHarrisDetector);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_goodFeaturesToTrack_12(IntPtr image_nativeObj, IntPtr corners_mat_nativeObj, int maxCorners, double qualityLevel, double minDistance, IntPtr mask_nativeObj, int blockSize, int gradientSize);
- // C++: void cv::goodFeaturesToTrack(Mat image, vector_Point& corners, int maxCorners, double qualityLevel, double minDistance, Mat mask = Mat(), int blockSize = 3, bool useHarrisDetector = false, double k = 0.04)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_goodFeaturesToTrack_13(IntPtr image_nativeObj, IntPtr corners_mat_nativeObj, int maxCorners, double qualityLevel, double minDistance, IntPtr mask_nativeObj, int blockSize, bool useHarrisDetector, double k);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_goodFeaturesToTrack_14(IntPtr image_nativeObj, IntPtr corners_mat_nativeObj, int maxCorners, double qualityLevel, double minDistance, IntPtr mask_nativeObj, int blockSize, bool useHarrisDetector);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_goodFeaturesToTrack_15(IntPtr image_nativeObj, IntPtr corners_mat_nativeObj, int maxCorners, double qualityLevel, double minDistance, IntPtr mask_nativeObj, int blockSize);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_goodFeaturesToTrack_16(IntPtr image_nativeObj, IntPtr corners_mat_nativeObj, int maxCorners, double qualityLevel, double minDistance, IntPtr mask_nativeObj);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_goodFeaturesToTrack_17(IntPtr image_nativeObj, IntPtr corners_mat_nativeObj, int maxCorners, double qualityLevel, double minDistance);
- // C++: void cv::grabCut(Mat img, Mat& mask, Rect rect, Mat& bgdModel, Mat& fgdModel, int iterCount, int mode = GC_EVAL)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_grabCut_10(IntPtr img_nativeObj, IntPtr mask_nativeObj, int rect_x, int rect_y, int rect_width, int rect_height, IntPtr bgdModel_nativeObj, IntPtr fgdModel_nativeObj, int iterCount, int mode);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_grabCut_11(IntPtr img_nativeObj, IntPtr mask_nativeObj, int rect_x, int rect_y, int rect_width, int rect_height, IntPtr bgdModel_nativeObj, IntPtr fgdModel_nativeObj, int iterCount);
- // C++: void cv::integral(Mat src, Mat& sum, Mat& sqsum, Mat& tilted, int sdepth = -1, int sqdepth = -1)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_integral3_10(IntPtr src_nativeObj, IntPtr sum_nativeObj, IntPtr sqsum_nativeObj, IntPtr tilted_nativeObj, int sdepth, int sqdepth);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_integral3_11(IntPtr src_nativeObj, IntPtr sum_nativeObj, IntPtr sqsum_nativeObj, IntPtr tilted_nativeObj, int sdepth);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_integral3_12(IntPtr src_nativeObj, IntPtr sum_nativeObj, IntPtr sqsum_nativeObj, IntPtr tilted_nativeObj);
- // C++: void cv::integral(Mat src, Mat& sum, Mat& sqsum, int sdepth = -1, int sqdepth = -1)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_integral2_10(IntPtr src_nativeObj, IntPtr sum_nativeObj, IntPtr sqsum_nativeObj, int sdepth, int sqdepth);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_integral2_11(IntPtr src_nativeObj, IntPtr sum_nativeObj, IntPtr sqsum_nativeObj, int sdepth);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_integral2_12(IntPtr src_nativeObj, IntPtr sum_nativeObj, IntPtr sqsum_nativeObj);
- // C++: void cv::integral(Mat src, Mat& sum, int sdepth = -1)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_integral_10(IntPtr src_nativeObj, IntPtr sum_nativeObj, int sdepth);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_integral_11(IntPtr src_nativeObj, IntPtr sum_nativeObj);
- // C++: void cv::invertAffineTransform(Mat M, Mat& iM)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_invertAffineTransform_10(IntPtr M_nativeObj, IntPtr iM_nativeObj);
- // C++: void cv::line(Mat& img, Point pt1, Point pt2, Scalar color, int thickness = 1, int lineType = LINE_8, int shift = 0)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_line_10(IntPtr img_nativeObj, double pt1_x, double pt1_y, double pt2_x, double pt2_y, double color_val0, double color_val1, double color_val2, double color_val3, int thickness, int lineType, int shift);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_line_11(IntPtr img_nativeObj, double pt1_x, double pt1_y, double pt2_x, double pt2_y, double color_val0, double color_val1, double color_val2, double color_val3, int thickness, int lineType);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_line_12(IntPtr img_nativeObj, double pt1_x, double pt1_y, double pt2_x, double pt2_y, double color_val0, double color_val1, double color_val2, double color_val3, int thickness);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_line_13(IntPtr img_nativeObj, double pt1_x, double pt1_y, double pt2_x, double pt2_y, double color_val0, double color_val1, double color_val2, double color_val3);
- // C++: void cv::linearPolar(Mat src, Mat& dst, Point2f center, double maxRadius, int flags)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_linearPolar_10(IntPtr src_nativeObj, IntPtr dst_nativeObj, double center_x, double center_y, double maxRadius, int flags);
- // C++: void cv::logPolar(Mat src, Mat& dst, Point2f center, double M, int flags)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_logPolar_10(IntPtr src_nativeObj, IntPtr dst_nativeObj, double center_x, double center_y, double M, int flags);
- // C++: void cv::matchTemplate(Mat image, Mat templ, Mat& result, int method, Mat mask = Mat())
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_matchTemplate_10(IntPtr image_nativeObj, IntPtr templ_nativeObj, IntPtr result_nativeObj, int method, IntPtr mask_nativeObj);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_matchTemplate_11(IntPtr image_nativeObj, IntPtr templ_nativeObj, IntPtr result_nativeObj, int method);
- // C++: void cv::medianBlur(Mat src, Mat& dst, int ksize)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_medianBlur_10(IntPtr src_nativeObj, IntPtr dst_nativeObj, int ksize);
- // C++: void cv::minEnclosingCircle(vector_Point2f points, Point2f& center, float& radius)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_minEnclosingCircle_10(IntPtr points_mat_nativeObj, double[] center_out, double[] radius_out);
- // C++: void cv::morphologyEx(Mat src, Mat& dst, int op, Mat kernel, Point anchor = Point(-1,-1), int iterations = 1, int borderType = BORDER_CONSTANT, Scalar borderValue = morphologyDefaultBorderValue())
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_morphologyEx_10(IntPtr src_nativeObj, IntPtr dst_nativeObj, int op, IntPtr kernel_nativeObj, double anchor_x, double anchor_y, int iterations, int borderType, double borderValue_val0, double borderValue_val1, double borderValue_val2, double borderValue_val3);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_morphologyEx_11(IntPtr src_nativeObj, IntPtr dst_nativeObj, int op, IntPtr kernel_nativeObj, double anchor_x, double anchor_y, int iterations, int borderType);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_morphologyEx_12(IntPtr src_nativeObj, IntPtr dst_nativeObj, int op, IntPtr kernel_nativeObj, double anchor_x, double anchor_y, int iterations);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_morphologyEx_13(IntPtr src_nativeObj, IntPtr dst_nativeObj, int op, IntPtr kernel_nativeObj, double anchor_x, double anchor_y);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_morphologyEx_14(IntPtr src_nativeObj, IntPtr dst_nativeObj, int op, IntPtr kernel_nativeObj);
- // C++: void cv::polylines(Mat& img, vector_vector_Point pts, bool isClosed, Scalar color, int thickness = 1, int lineType = LINE_8, int shift = 0)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_polylines_10(IntPtr img_nativeObj, IntPtr pts_mat_nativeObj, bool isClosed, double color_val0, double color_val1, double color_val2, double color_val3, int thickness, int lineType, int shift);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_polylines_11(IntPtr img_nativeObj, IntPtr pts_mat_nativeObj, bool isClosed, double color_val0, double color_val1, double color_val2, double color_val3, int thickness, int lineType);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_polylines_12(IntPtr img_nativeObj, IntPtr pts_mat_nativeObj, bool isClosed, double color_val0, double color_val1, double color_val2, double color_val3, int thickness);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_polylines_13(IntPtr img_nativeObj, IntPtr pts_mat_nativeObj, bool isClosed, double color_val0, double color_val1, double color_val2, double color_val3);
- // C++: void cv::preCornerDetect(Mat src, Mat& dst, int ksize, int borderType = BORDER_DEFAULT)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_preCornerDetect_10(IntPtr src_nativeObj, IntPtr dst_nativeObj, int ksize, int borderType);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_preCornerDetect_11(IntPtr src_nativeObj, IntPtr dst_nativeObj, int ksize);
- // C++: void cv::putText(Mat& img, String text, Point org, int fontFace, double fontScale, Scalar color, int thickness = 1, int lineType = LINE_8, bool bottomLeftOrigin = false)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_putText_10(IntPtr img_nativeObj, string text, double org_x, double org_y, int fontFace, double fontScale, double color_val0, double color_val1, double color_val2, double color_val3, int thickness, int lineType, bool bottomLeftOrigin);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_putText_11(IntPtr img_nativeObj, string text, double org_x, double org_y, int fontFace, double fontScale, double color_val0, double color_val1, double color_val2, double color_val3, int thickness, int lineType);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_putText_12(IntPtr img_nativeObj, string text, double org_x, double org_y, int fontFace, double fontScale, double color_val0, double color_val1, double color_val2, double color_val3, int thickness);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_putText_13(IntPtr img_nativeObj, string text, double org_x, double org_y, int fontFace, double fontScale, double color_val0, double color_val1, double color_val2, double color_val3);
- // C++: void cv::pyrDown(Mat src, Mat& dst, Size dstsize = Size(), int borderType = BORDER_DEFAULT)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_pyrDown_10(IntPtr src_nativeObj, IntPtr dst_nativeObj, double dstsize_width, double dstsize_height, int borderType);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_pyrDown_11(IntPtr src_nativeObj, IntPtr dst_nativeObj, double dstsize_width, double dstsize_height);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_pyrDown_12(IntPtr src_nativeObj, IntPtr dst_nativeObj);
- // C++: void cv::pyrMeanShiftFiltering(Mat src, Mat& dst, double sp, double sr, int maxLevel = 1, TermCriteria termcrit = TermCriteria(TermCriteria::MAX_ITER+TermCriteria::EPS,5,1))
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_pyrMeanShiftFiltering_10(IntPtr src_nativeObj, IntPtr dst_nativeObj, double sp, double sr, int maxLevel, int termcrit_type, int termcrit_maxCount, double termcrit_epsilon);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_pyrMeanShiftFiltering_11(IntPtr src_nativeObj, IntPtr dst_nativeObj, double sp, double sr, int maxLevel);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_pyrMeanShiftFiltering_12(IntPtr src_nativeObj, IntPtr dst_nativeObj, double sp, double sr);
- // C++: void cv::pyrUp(Mat src, Mat& dst, Size dstsize = Size(), int borderType = BORDER_DEFAULT)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_pyrUp_10(IntPtr src_nativeObj, IntPtr dst_nativeObj, double dstsize_width, double dstsize_height, int borderType);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_pyrUp_11(IntPtr src_nativeObj, IntPtr dst_nativeObj, double dstsize_width, double dstsize_height);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_pyrUp_12(IntPtr src_nativeObj, IntPtr dst_nativeObj);
- // C++: void cv::rectangle(Mat& img, Point pt1, Point pt2, Scalar color, int thickness = 1, int lineType = LINE_8, int shift = 0)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_rectangle_10(IntPtr img_nativeObj, double pt1_x, double pt1_y, double pt2_x, double pt2_y, double color_val0, double color_val1, double color_val2, double color_val3, int thickness, int lineType, int shift);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_rectangle_11(IntPtr img_nativeObj, double pt1_x, double pt1_y, double pt2_x, double pt2_y, double color_val0, double color_val1, double color_val2, double color_val3, int thickness, int lineType);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_rectangle_12(IntPtr img_nativeObj, double pt1_x, double pt1_y, double pt2_x, double pt2_y, double color_val0, double color_val1, double color_val2, double color_val3, int thickness);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_rectangle_13(IntPtr img_nativeObj, double pt1_x, double pt1_y, double pt2_x, double pt2_y, double color_val0, double color_val1, double color_val2, double color_val3);
- // C++: void cv::rectangle(Mat& img, Rect rec, Scalar color, int thickness = 1, int lineType = LINE_8, int shift = 0)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_rectangle_14(IntPtr img_nativeObj, int rec_x, int rec_y, int rec_width, int rec_height, double color_val0, double color_val1, double color_val2, double color_val3, int thickness, int lineType, int shift);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_rectangle_15(IntPtr img_nativeObj, int rec_x, int rec_y, int rec_width, int rec_height, double color_val0, double color_val1, double color_val2, double color_val3, int thickness, int lineType);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_rectangle_16(IntPtr img_nativeObj, int rec_x, int rec_y, int rec_width, int rec_height, double color_val0, double color_val1, double color_val2, double color_val3, int thickness);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_rectangle_17(IntPtr img_nativeObj, int rec_x, int rec_y, int rec_width, int rec_height, double color_val0, double color_val1, double color_val2, double color_val3);
- // C++: void cv::remap(Mat src, Mat& dst, Mat map1, Mat map2, int interpolation, int borderMode = BORDER_CONSTANT, Scalar borderValue = Scalar())
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_remap_10(IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr map1_nativeObj, IntPtr map2_nativeObj, int interpolation, int borderMode, double borderValue_val0, double borderValue_val1, double borderValue_val2, double borderValue_val3);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_remap_11(IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr map1_nativeObj, IntPtr map2_nativeObj, int interpolation, int borderMode);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_remap_12(IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr map1_nativeObj, IntPtr map2_nativeObj, int interpolation);
- // C++: void cv::resize(Mat src, Mat& dst, Size dsize, double fx = 0, double fy = 0, int interpolation = INTER_LINEAR)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_resize_10(IntPtr src_nativeObj, IntPtr dst_nativeObj, double dsize_width, double dsize_height, double fx, double fy, int interpolation);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_resize_11(IntPtr src_nativeObj, IntPtr dst_nativeObj, double dsize_width, double dsize_height, double fx, double fy);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_resize_12(IntPtr src_nativeObj, IntPtr dst_nativeObj, double dsize_width, double dsize_height, double fx);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_resize_13(IntPtr src_nativeObj, IntPtr dst_nativeObj, double dsize_width, double dsize_height);
- // C++: void cv::sepFilter2D(Mat src, Mat& dst, int ddepth, Mat kernelX, Mat kernelY, Point anchor = Point(-1,-1), double delta = 0, int borderType = BORDER_DEFAULT)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_sepFilter2D_10(IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, IntPtr kernelX_nativeObj, IntPtr kernelY_nativeObj, double anchor_x, double anchor_y, double delta, int borderType);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_sepFilter2D_11(IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, IntPtr kernelX_nativeObj, IntPtr kernelY_nativeObj, double anchor_x, double anchor_y, double delta);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_sepFilter2D_12(IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, IntPtr kernelX_nativeObj, IntPtr kernelY_nativeObj, double anchor_x, double anchor_y);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_sepFilter2D_13(IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, IntPtr kernelX_nativeObj, IntPtr kernelY_nativeObj);
- // C++: void cv::spatialGradient(Mat src, Mat& dx, Mat& dy, int ksize = 3, int borderType = BORDER_DEFAULT)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_spatialGradient_10(IntPtr src_nativeObj, IntPtr dx_nativeObj, IntPtr dy_nativeObj, int ksize, int borderType);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_spatialGradient_11(IntPtr src_nativeObj, IntPtr dx_nativeObj, IntPtr dy_nativeObj, int ksize);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_spatialGradient_12(IntPtr src_nativeObj, IntPtr dx_nativeObj, IntPtr dy_nativeObj);
- // C++: void cv::sqrBoxFilter(Mat src, Mat& dst, int ddepth, Size ksize, Point anchor = Point(-1, -1), bool normalize = true, int borderType = BORDER_DEFAULT)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_sqrBoxFilter_10(IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, double ksize_width, double ksize_height, double anchor_x, double anchor_y, bool normalize, int borderType);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_sqrBoxFilter_11(IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, double ksize_width, double ksize_height, double anchor_x, double anchor_y, bool normalize);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_sqrBoxFilter_12(IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, double ksize_width, double ksize_height, double anchor_x, double anchor_y);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_sqrBoxFilter_13(IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, double ksize_width, double ksize_height);
- // C++: void cv::warpAffine(Mat src, Mat& dst, Mat M, Size dsize, int flags = INTER_LINEAR, int borderMode = BORDER_CONSTANT, Scalar borderValue = Scalar())
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_warpAffine_10(IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr M_nativeObj, double dsize_width, double dsize_height, int flags, int borderMode, double borderValue_val0, double borderValue_val1, double borderValue_val2, double borderValue_val3);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_warpAffine_11(IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr M_nativeObj, double dsize_width, double dsize_height, int flags, int borderMode);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_warpAffine_12(IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr M_nativeObj, double dsize_width, double dsize_height, int flags);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_warpAffine_13(IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr M_nativeObj, double dsize_width, double dsize_height);
- // C++: void cv::warpPerspective(Mat src, Mat& dst, Mat M, Size dsize, int flags = INTER_LINEAR, int borderMode = BORDER_CONSTANT, Scalar borderValue = Scalar())
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_warpPerspective_10(IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr M_nativeObj, double dsize_width, double dsize_height, int flags, int borderMode, double borderValue_val0, double borderValue_val1, double borderValue_val2, double borderValue_val3);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_warpPerspective_11(IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr M_nativeObj, double dsize_width, double dsize_height, int flags, int borderMode);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_warpPerspective_12(IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr M_nativeObj, double dsize_width, double dsize_height, int flags);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_warpPerspective_13(IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr M_nativeObj, double dsize_width, double dsize_height);
- // C++: void cv::warpPolar(Mat src, Mat& dst, Size dsize, Point2f center, double maxRadius, int flags)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_warpPolar_10(IntPtr src_nativeObj, IntPtr dst_nativeObj, double dsize_width, double dsize_height, double center_x, double center_y, double maxRadius, int flags);
- // C++: void cv::watershed(Mat image, Mat& markers)
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_watershed_10(IntPtr image_nativeObj, IntPtr markers_nativeObj);
- [DllImport(LIBNAME)]
- private static extern void imgproc_Imgproc_n_1getTextSize(string text, int fontFace, double fontScale, int thickness, int[] baseLine, double[] vals);
- #endif
- }
- }
|