Imgproc.cs 296 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420
  1. 
  2. using OpenCVForUnity.CoreModule;
  3. using OpenCVForUnity.UtilsModule;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Runtime.InteropServices;
  7. namespace OpenCVForUnity.ImgprocModule
  8. {
  9. // C++: class Imgproc
  10. //javadoc: Imgproc
  11. public class Imgproc
  12. {
  13. private const int IPL_BORDER_CONSTANT = 0;
  14. private const int IPL_BORDER_REPLICATE = 1;
  15. private const int IPL_BORDER_REFLECT = 2;
  16. private const int IPL_BORDER_WRAP = 3;
  17. private const int IPL_BORDER_REFLECT_101 = 4;
  18. private const int IPL_BORDER_TRANSPARENT = 5;
  19. private const int CV_INTER_NN = 0;
  20. private const int CV_INTER_LINEAR = 1;
  21. private const int CV_INTER_CUBIC = 2;
  22. private const int CV_INTER_AREA = 3;
  23. private const int CV_INTER_LANCZOS4 = 4;
  24. private const int CV_MOP_ERODE = 0;
  25. private const int CV_MOP_DILATE = 1;
  26. private const int CV_MOP_OPEN = 2;
  27. private const int CV_MOP_CLOSE = 3;
  28. private const int CV_MOP_GRADIENT = 4;
  29. private const int CV_MOP_TOPHAT = 5;
  30. private const int CV_MOP_BLACKHAT = 6;
  31. private const int CV_RETR_EXTERNAL = 0;
  32. private const int CV_RETR_LIST = 1;
  33. private const int CV_RETR_CCOMP = 2;
  34. private const int CV_RETR_TREE = 3;
  35. private const int CV_RETR_FLOODFILL = 4;
  36. private const int CV_CHAIN_APPROX_NONE = 1;
  37. private const int CV_CHAIN_APPROX_SIMPLE = 2;
  38. private const int CV_CHAIN_APPROX_TC89_L1 = 3;
  39. private const int CV_CHAIN_APPROX_TC89_KCOS = 4;
  40. private const int CV_THRESH_BINARY = 0;
  41. private const int CV_THRESH_BINARY_INV = 1;
  42. private const int CV_THRESH_TRUNC = 2;
  43. private const int CV_THRESH_TOZERO = 3;
  44. private const int CV_THRESH_TOZERO_INV = 4;
  45. private const int CV_THRESH_MASK = 7;
  46. private const int CV_THRESH_OTSU = 8;
  47. private const int CV_THRESH_TRIANGLE = 16;
  48. // C++: enum GrabCutClasses
  49. public const int GC_BGD = 0;
  50. public const int GC_FGD = 1;
  51. public const int GC_PR_BGD = 2;
  52. public const int GC_PR_FGD = 3;
  53. // C++: enum RectanglesIntersectTypes
  54. public const int INTERSECT_NONE = 0;
  55. public const int INTERSECT_PARTIAL = 1;
  56. public const int INTERSECT_FULL = 2;
  57. // C++: enum ThresholdTypes
  58. public const int THRESH_BINARY = 0;
  59. public const int THRESH_BINARY_INV = 1;
  60. public const int THRESH_TRUNC = 2;
  61. public const int THRESH_TOZERO = 3;
  62. public const int THRESH_TOZERO_INV = 4;
  63. public const int THRESH_MASK = 7;
  64. public const int THRESH_OTSU = 8;
  65. public const int THRESH_TRIANGLE = 16;
  66. // C++: enum MarkerTypes
  67. public const int MARKER_CROSS = 0;
  68. public const int MARKER_TILTED_CROSS = 1;
  69. public const int MARKER_STAR = 2;
  70. public const int MARKER_DIAMOND = 3;
  71. public const int MARKER_SQUARE = 4;
  72. public const int MARKER_TRIANGLE_UP = 5;
  73. public const int MARKER_TRIANGLE_DOWN = 6;
  74. // C++: enum SmoothMethod_c
  75. public const int CV_BLUR_NO_SCALE = 0;
  76. public const int CV_BLUR = 1;
  77. public const int CV_GAUSSIAN = 2;
  78. public const int CV_MEDIAN = 3;
  79. public const int CV_BILATERAL = 4;
  80. // C++: enum LineTypes
  81. public const int FILLED = -1;
  82. public const int LINE_4 = 4;
  83. public const int LINE_8 = 8;
  84. public const int LINE_AA = 16;
  85. // C++: enum MorphShapes
  86. public const int MORPH_RECT = 0;
  87. public const int MORPH_CROSS = 1;
  88. public const int MORPH_ELLIPSE = 2;
  89. // C++: enum FloodFillFlags
  90. public const int FLOODFILL_FIXED_RANGE = 1 << 16;
  91. public const int FLOODFILL_MASK_ONLY = 1 << 17;
  92. // C++: enum InterpolationMasks
  93. public const int INTER_BITS = 5;
  94. public const int INTER_BITS2 = INTER_BITS * 2;
  95. public const int INTER_TAB_SIZE = 1 << INTER_BITS;
  96. public const int INTER_TAB_SIZE2 = INTER_TAB_SIZE * INTER_TAB_SIZE;
  97. // C++: enum ShapeMatchModes
  98. public const int CONTOURS_MATCH_I1 = 1;
  99. public const int CONTOURS_MATCH_I2 = 2;
  100. public const int CONTOURS_MATCH_I3 = 3;
  101. // C++: enum MorphTypes
  102. public const int MORPH_ERODE = 0;
  103. public const int MORPH_DILATE = 1;
  104. public const int MORPH_OPEN = 2;
  105. public const int MORPH_CLOSE = 3;
  106. public const int MORPH_GRADIENT = 4;
  107. public const int MORPH_TOPHAT = 5;
  108. public const int MORPH_BLACKHAT = 6;
  109. public const int MORPH_HITMISS = 7;
  110. // C++: enum InterpolationFlags
  111. public const int INTER_NEAREST = 0;
  112. public const int INTER_LINEAR = 1;
  113. public const int INTER_CUBIC = 2;
  114. public const int INTER_AREA = 3;
  115. public const int INTER_LANCZOS4 = 4;
  116. public const int INTER_LINEAR_EXACT = 5;
  117. public const int INTER_MAX = 7;
  118. public const int WARP_FILL_OUTLIERS = 8;
  119. public const int WARP_INVERSE_MAP = 16;
  120. // C++: enum HoughModes
  121. public const int HOUGH_STANDARD = 0;
  122. public const int HOUGH_PROBABILISTIC = 1;
  123. public const int HOUGH_MULTI_SCALE = 2;
  124. public const int HOUGH_GRADIENT = 3;
  125. // C++: enum DistanceTypes
  126. public const int DIST_USER = -1;
  127. public const int DIST_L1 = 1;
  128. public const int DIST_L2 = 2;
  129. public const int DIST_C = 3;
  130. public const int DIST_L12 = 4;
  131. public const int DIST_FAIR = 5;
  132. public const int DIST_WELSCH = 6;
  133. public const int DIST_HUBER = 7;
  134. // C++: enum ConnectedComponentsTypes
  135. public const int CC_STAT_LEFT = 0;
  136. public const int CC_STAT_TOP = 1;
  137. public const int CC_STAT_WIDTH = 2;
  138. public const int CC_STAT_HEIGHT = 3;
  139. public const int CC_STAT_AREA = 4;
  140. public const int CC_STAT_MAX = 5;
  141. // C++: enum HersheyFonts
  142. public const int FONT_HERSHEY_SIMPLEX = 0;
  143. public const int FONT_HERSHEY_PLAIN = 1;
  144. public const int FONT_HERSHEY_DUPLEX = 2;
  145. public const int FONT_HERSHEY_COMPLEX = 3;
  146. public const int FONT_HERSHEY_TRIPLEX = 4;
  147. public const int FONT_HERSHEY_COMPLEX_SMALL = 5;
  148. public const int FONT_HERSHEY_SCRIPT_SIMPLEX = 6;
  149. public const int FONT_HERSHEY_SCRIPT_COMPLEX = 7;
  150. public const int FONT_ITALIC = 16;
  151. // C++: enum ConnectedComponentsAlgorithmsTypes
  152. public const int CCL_WU = 0;
  153. public const int CCL_DEFAULT = -1;
  154. public const int CCL_GRANA = 1;
  155. // C++: enum AdaptiveThresholdTypes
  156. public const int ADAPTIVE_THRESH_MEAN_C = 0;
  157. public const int ADAPTIVE_THRESH_GAUSSIAN_C = 1;
  158. // C++: enum TemplateMatchModes
  159. public const int TM_SQDIFF = 0;
  160. public const int TM_SQDIFF_NORMED = 1;
  161. public const int TM_CCORR = 2;
  162. public const int TM_CCORR_NORMED = 3;
  163. public const int TM_CCOEFF = 4;
  164. public const int TM_CCOEFF_NORMED = 5;
  165. // C++: enum GrabCutModes
  166. public const int GC_INIT_WITH_RECT = 0;
  167. public const int GC_INIT_WITH_MASK = 1;
  168. public const int GC_EVAL = 2;
  169. public const int GC_EVAL_FREEZE_MODEL = 3;
  170. // C++: enum DistanceTransformLabelTypes
  171. public const int DIST_LABEL_CCOMP = 0;
  172. public const int DIST_LABEL_PIXEL = 1;
  173. // C++: enum WarpPolarMode
  174. public const int WARP_POLAR_LINEAR = 0;
  175. public const int WARP_POLAR_LOG = 256;
  176. // C++: enum ContourApproximationModes
  177. public const int CHAIN_APPROX_NONE = 1;
  178. public const int CHAIN_APPROX_SIMPLE = 2;
  179. public const int CHAIN_APPROX_TC89_L1 = 3;
  180. public const int CHAIN_APPROX_TC89_KCOS = 4;
  181. // C++: enum ColorConversionCodes
  182. public const int COLOR_BGR2BGRA = 0;
  183. public const int COLOR_RGB2RGBA = COLOR_BGR2BGRA;
  184. public const int COLOR_BGRA2BGR = 1;
  185. public const int COLOR_RGBA2RGB = COLOR_BGRA2BGR;
  186. public const int COLOR_BGR2RGBA = 2;
  187. public const int COLOR_RGB2BGRA = COLOR_BGR2RGBA;
  188. public const int COLOR_RGBA2BGR = 3;
  189. public const int COLOR_BGRA2RGB = COLOR_RGBA2BGR;
  190. public const int COLOR_BGR2RGB = 4;
  191. public const int COLOR_RGB2BGR = COLOR_BGR2RGB;
  192. public const int COLOR_BGRA2RGBA = 5;
  193. public const int COLOR_RGBA2BGRA = COLOR_BGRA2RGBA;
  194. public const int COLOR_BGR2GRAY = 6;
  195. public const int COLOR_RGB2GRAY = 7;
  196. public const int COLOR_GRAY2BGR = 8;
  197. public const int COLOR_GRAY2RGB = COLOR_GRAY2BGR;
  198. public const int COLOR_GRAY2BGRA = 9;
  199. public const int COLOR_GRAY2RGBA = COLOR_GRAY2BGRA;
  200. public const int COLOR_BGRA2GRAY = 10;
  201. public const int COLOR_RGBA2GRAY = 11;
  202. public const int COLOR_BGR2BGR565 = 12;
  203. public const int COLOR_RGB2BGR565 = 13;
  204. public const int COLOR_BGR5652BGR = 14;
  205. public const int COLOR_BGR5652RGB = 15;
  206. public const int COLOR_BGRA2BGR565 = 16;
  207. public const int COLOR_RGBA2BGR565 = 17;
  208. public const int COLOR_BGR5652BGRA = 18;
  209. public const int COLOR_BGR5652RGBA = 19;
  210. public const int COLOR_GRAY2BGR565 = 20;
  211. public const int COLOR_BGR5652GRAY = 21;
  212. public const int COLOR_BGR2BGR555 = 22;
  213. public const int COLOR_RGB2BGR555 = 23;
  214. public const int COLOR_BGR5552BGR = 24;
  215. public const int COLOR_BGR5552RGB = 25;
  216. public const int COLOR_BGRA2BGR555 = 26;
  217. public const int COLOR_RGBA2BGR555 = 27;
  218. public const int COLOR_BGR5552BGRA = 28;
  219. public const int COLOR_BGR5552RGBA = 29;
  220. public const int COLOR_GRAY2BGR555 = 30;
  221. public const int COLOR_BGR5552GRAY = 31;
  222. public const int COLOR_BGR2XYZ = 32;
  223. public const int COLOR_RGB2XYZ = 33;
  224. public const int COLOR_XYZ2BGR = 34;
  225. public const int COLOR_XYZ2RGB = 35;
  226. public const int COLOR_BGR2YCrCb = 36;
  227. public const int COLOR_RGB2YCrCb = 37;
  228. public const int COLOR_YCrCb2BGR = 38;
  229. public const int COLOR_YCrCb2RGB = 39;
  230. public const int COLOR_BGR2HSV = 40;
  231. public const int COLOR_RGB2HSV = 41;
  232. public const int COLOR_BGR2Lab = 44;
  233. public const int COLOR_RGB2Lab = 45;
  234. public const int COLOR_BGR2Luv = 50;
  235. public const int COLOR_RGB2Luv = 51;
  236. public const int COLOR_BGR2HLS = 52;
  237. public const int COLOR_RGB2HLS = 53;
  238. public const int COLOR_HSV2BGR = 54;
  239. public const int COLOR_HSV2RGB = 55;
  240. public const int COLOR_Lab2BGR = 56;
  241. public const int COLOR_Lab2RGB = 57;
  242. public const int COLOR_Luv2BGR = 58;
  243. public const int COLOR_Luv2RGB = 59;
  244. public const int COLOR_HLS2BGR = 60;
  245. public const int COLOR_HLS2RGB = 61;
  246. public const int COLOR_BGR2HSV_FULL = 66;
  247. public const int COLOR_RGB2HSV_FULL = 67;
  248. public const int COLOR_BGR2HLS_FULL = 68;
  249. public const int COLOR_RGB2HLS_FULL = 69;
  250. public const int COLOR_HSV2BGR_FULL = 70;
  251. public const int COLOR_HSV2RGB_FULL = 71;
  252. public const int COLOR_HLS2BGR_FULL = 72;
  253. public const int COLOR_HLS2RGB_FULL = 73;
  254. public const int COLOR_LBGR2Lab = 74;
  255. public const int COLOR_LRGB2Lab = 75;
  256. public const int COLOR_LBGR2Luv = 76;
  257. public const int COLOR_LRGB2Luv = 77;
  258. public const int COLOR_Lab2LBGR = 78;
  259. public const int COLOR_Lab2LRGB = 79;
  260. public const int COLOR_Luv2LBGR = 80;
  261. public const int COLOR_Luv2LRGB = 81;
  262. public const int COLOR_BGR2YUV = 82;
  263. public const int COLOR_RGB2YUV = 83;
  264. public const int COLOR_YUV2BGR = 84;
  265. public const int COLOR_YUV2RGB = 85;
  266. public const int COLOR_YUV2RGB_NV12 = 90;
  267. public const int COLOR_YUV2BGR_NV12 = 91;
  268. public const int COLOR_YUV2RGB_NV21 = 92;
  269. public const int COLOR_YUV2BGR_NV21 = 93;
  270. public const int COLOR_YUV420sp2RGB = COLOR_YUV2RGB_NV21;
  271. public const int COLOR_YUV420sp2BGR = COLOR_YUV2BGR_NV21;
  272. public const int COLOR_YUV2RGBA_NV12 = 94;
  273. public const int COLOR_YUV2BGRA_NV12 = 95;
  274. public const int COLOR_YUV2RGBA_NV21 = 96;
  275. public const int COLOR_YUV2BGRA_NV21 = 97;
  276. public const int COLOR_YUV420sp2RGBA = COLOR_YUV2RGBA_NV21;
  277. public const int COLOR_YUV420sp2BGRA = COLOR_YUV2BGRA_NV21;
  278. public const int COLOR_YUV2RGB_YV12 = 98;
  279. public const int COLOR_YUV2BGR_YV12 = 99;
  280. public const int COLOR_YUV2RGB_IYUV = 100;
  281. public const int COLOR_YUV2BGR_IYUV = 101;
  282. public const int COLOR_YUV2RGB_I420 = COLOR_YUV2RGB_IYUV;
  283. public const int COLOR_YUV2BGR_I420 = COLOR_YUV2BGR_IYUV;
  284. public const int COLOR_YUV420p2RGB = COLOR_YUV2RGB_YV12;
  285. public const int COLOR_YUV420p2BGR = COLOR_YUV2BGR_YV12;
  286. public const int COLOR_YUV2RGBA_YV12 = 102;
  287. public const int COLOR_YUV2BGRA_YV12 = 103;
  288. public const int COLOR_YUV2RGBA_IYUV = 104;
  289. public const int COLOR_YUV2BGRA_IYUV = 105;
  290. public const int COLOR_YUV2RGBA_I420 = COLOR_YUV2RGBA_IYUV;
  291. public const int COLOR_YUV2BGRA_I420 = COLOR_YUV2BGRA_IYUV;
  292. public const int COLOR_YUV420p2RGBA = COLOR_YUV2RGBA_YV12;
  293. public const int COLOR_YUV420p2BGRA = COLOR_YUV2BGRA_YV12;
  294. public const int COLOR_YUV2GRAY_420 = 106;
  295. public const int COLOR_YUV2GRAY_NV21 = COLOR_YUV2GRAY_420;
  296. public const int COLOR_YUV2GRAY_NV12 = COLOR_YUV2GRAY_420;
  297. public const int COLOR_YUV2GRAY_YV12 = COLOR_YUV2GRAY_420;
  298. public const int COLOR_YUV2GRAY_IYUV = COLOR_YUV2GRAY_420;
  299. public const int COLOR_YUV2GRAY_I420 = COLOR_YUV2GRAY_420;
  300. public const int COLOR_YUV420sp2GRAY = COLOR_YUV2GRAY_420;
  301. public const int COLOR_YUV420p2GRAY = COLOR_YUV2GRAY_420;
  302. public const int COLOR_YUV2RGB_UYVY = 107;
  303. public const int COLOR_YUV2BGR_UYVY = 108;
  304. public const int COLOR_YUV2RGB_Y422 = COLOR_YUV2RGB_UYVY;
  305. public const int COLOR_YUV2BGR_Y422 = COLOR_YUV2BGR_UYVY;
  306. public const int COLOR_YUV2RGB_UYNV = COLOR_YUV2RGB_UYVY;
  307. public const int COLOR_YUV2BGR_UYNV = COLOR_YUV2BGR_UYVY;
  308. public const int COLOR_YUV2RGBA_UYVY = 111;
  309. public const int COLOR_YUV2BGRA_UYVY = 112;
  310. public const int COLOR_YUV2RGBA_Y422 = COLOR_YUV2RGBA_UYVY;
  311. public const int COLOR_YUV2BGRA_Y422 = COLOR_YUV2BGRA_UYVY;
  312. public const int COLOR_YUV2RGBA_UYNV = COLOR_YUV2RGBA_UYVY;
  313. public const int COLOR_YUV2BGRA_UYNV = COLOR_YUV2BGRA_UYVY;
  314. public const int COLOR_YUV2RGB_YUY2 = 115;
  315. public const int COLOR_YUV2BGR_YUY2 = 116;
  316. public const int COLOR_YUV2RGB_YVYU = 117;
  317. public const int COLOR_YUV2BGR_YVYU = 118;
  318. public const int COLOR_YUV2RGB_YUYV = COLOR_YUV2RGB_YUY2;
  319. public const int COLOR_YUV2BGR_YUYV = COLOR_YUV2BGR_YUY2;
  320. public const int COLOR_YUV2RGB_YUNV = COLOR_YUV2RGB_YUY2;
  321. public const int COLOR_YUV2BGR_YUNV = COLOR_YUV2BGR_YUY2;
  322. public const int COLOR_YUV2RGBA_YUY2 = 119;
  323. public const int COLOR_YUV2BGRA_YUY2 = 120;
  324. public const int COLOR_YUV2RGBA_YVYU = 121;
  325. public const int COLOR_YUV2BGRA_YVYU = 122;
  326. public const int COLOR_YUV2RGBA_YUYV = COLOR_YUV2RGBA_YUY2;
  327. public const int COLOR_YUV2BGRA_YUYV = COLOR_YUV2BGRA_YUY2;
  328. public const int COLOR_YUV2RGBA_YUNV = COLOR_YUV2RGBA_YUY2;
  329. public const int COLOR_YUV2BGRA_YUNV = COLOR_YUV2BGRA_YUY2;
  330. public const int COLOR_YUV2GRAY_UYVY = 123;
  331. public const int COLOR_YUV2GRAY_YUY2 = 124;
  332. public const int COLOR_YUV2GRAY_Y422 = COLOR_YUV2GRAY_UYVY;
  333. public const int COLOR_YUV2GRAY_UYNV = COLOR_YUV2GRAY_UYVY;
  334. public const int COLOR_YUV2GRAY_YVYU = COLOR_YUV2GRAY_YUY2;
  335. public const int COLOR_YUV2GRAY_YUYV = COLOR_YUV2GRAY_YUY2;
  336. public const int COLOR_YUV2GRAY_YUNV = COLOR_YUV2GRAY_YUY2;
  337. public const int COLOR_RGBA2mRGBA = 125;
  338. public const int COLOR_mRGBA2RGBA = 126;
  339. public const int COLOR_RGB2YUV_I420 = 127;
  340. public const int COLOR_BGR2YUV_I420 = 128;
  341. public const int COLOR_RGB2YUV_IYUV = COLOR_RGB2YUV_I420;
  342. public const int COLOR_BGR2YUV_IYUV = COLOR_BGR2YUV_I420;
  343. public const int COLOR_RGBA2YUV_I420 = 129;
  344. public const int COLOR_BGRA2YUV_I420 = 130;
  345. public const int COLOR_RGBA2YUV_IYUV = COLOR_RGBA2YUV_I420;
  346. public const int COLOR_BGRA2YUV_IYUV = COLOR_BGRA2YUV_I420;
  347. public const int COLOR_RGB2YUV_YV12 = 131;
  348. public const int COLOR_BGR2YUV_YV12 = 132;
  349. public const int COLOR_RGBA2YUV_YV12 = 133;
  350. public const int COLOR_BGRA2YUV_YV12 = 134;
  351. public const int COLOR_BayerBG2BGR = 46;
  352. public const int COLOR_BayerGB2BGR = 47;
  353. public const int COLOR_BayerRG2BGR = 48;
  354. public const int COLOR_BayerGR2BGR = 49;
  355. public const int COLOR_BayerBG2RGB = COLOR_BayerRG2BGR;
  356. public const int COLOR_BayerGB2RGB = COLOR_BayerGR2BGR;
  357. public const int COLOR_BayerRG2RGB = COLOR_BayerBG2BGR;
  358. public const int COLOR_BayerGR2RGB = COLOR_BayerGB2BGR;
  359. public const int COLOR_BayerBG2GRAY = 86;
  360. public const int COLOR_BayerGB2GRAY = 87;
  361. public const int COLOR_BayerRG2GRAY = 88;
  362. public const int COLOR_BayerGR2GRAY = 89;
  363. public const int COLOR_BayerBG2BGR_VNG = 62;
  364. public const int COLOR_BayerGB2BGR_VNG = 63;
  365. public const int COLOR_BayerRG2BGR_VNG = 64;
  366. public const int COLOR_BayerGR2BGR_VNG = 65;
  367. public const int COLOR_BayerBG2RGB_VNG = COLOR_BayerRG2BGR_VNG;
  368. public const int COLOR_BayerGB2RGB_VNG = COLOR_BayerGR2BGR_VNG;
  369. public const int COLOR_BayerRG2RGB_VNG = COLOR_BayerBG2BGR_VNG;
  370. public const int COLOR_BayerGR2RGB_VNG = COLOR_BayerGB2BGR_VNG;
  371. public const int COLOR_BayerBG2BGR_EA = 135;
  372. public const int COLOR_BayerGB2BGR_EA = 136;
  373. public const int COLOR_BayerRG2BGR_EA = 137;
  374. public const int COLOR_BayerGR2BGR_EA = 138;
  375. public const int COLOR_BayerBG2RGB_EA = COLOR_BayerRG2BGR_EA;
  376. public const int COLOR_BayerGB2RGB_EA = COLOR_BayerGR2BGR_EA;
  377. public const int COLOR_BayerRG2RGB_EA = COLOR_BayerBG2BGR_EA;
  378. public const int COLOR_BayerGR2RGB_EA = COLOR_BayerGB2BGR_EA;
  379. public const int COLOR_BayerBG2BGRA = 139;
  380. public const int COLOR_BayerGB2BGRA = 140;
  381. public const int COLOR_BayerRG2BGRA = 141;
  382. public const int COLOR_BayerGR2BGRA = 142;
  383. public const int COLOR_BayerBG2RGBA = COLOR_BayerRG2BGRA;
  384. public const int COLOR_BayerGB2RGBA = COLOR_BayerGR2BGRA;
  385. public const int COLOR_BayerRG2RGBA = COLOR_BayerBG2BGRA;
  386. public const int COLOR_BayerGR2RGBA = COLOR_BayerGB2BGRA;
  387. public const int COLOR_COLORCVT_MAX = 143;
  388. // C++: enum DistanceTransformMasks
  389. public const int DIST_MASK_3 = 3;
  390. public const int DIST_MASK_5 = 5;
  391. public const int DIST_MASK_PRECISE = 0;
  392. // C++: enum ColormapTypes
  393. public const int COLORMAP_AUTUMN = 0;
  394. public const int COLORMAP_BONE = 1;
  395. public const int COLORMAP_JET = 2;
  396. public const int COLORMAP_WINTER = 3;
  397. public const int COLORMAP_RAINBOW = 4;
  398. public const int COLORMAP_OCEAN = 5;
  399. public const int COLORMAP_SUMMER = 6;
  400. public const int COLORMAP_SPRING = 7;
  401. public const int COLORMAP_COOL = 8;
  402. public const int COLORMAP_HSV = 9;
  403. public const int COLORMAP_PINK = 10;
  404. public const int COLORMAP_HOT = 11;
  405. public const int COLORMAP_PARULA = 12;
  406. // C++: enum LineSegmentDetectorModes
  407. public const int LSD_REFINE_NONE = 0;
  408. public const int LSD_REFINE_STD = 1;
  409. public const int LSD_REFINE_ADV = 2;
  410. // C++: enum <unnamed>
  411. public const int CV_GAUSSIAN_5x5 = 7;
  412. public const int CV_SCHARR = -1;
  413. public const int CV_MAX_SOBEL_KSIZE = 7;
  414. public const int CV_RGBA2mRGBA = 125;
  415. public const int CV_mRGBA2RGBA = 126;
  416. public const int CV_WARP_FILL_OUTLIERS = 8;
  417. public const int CV_WARP_INVERSE_MAP = 16;
  418. public const int CV_CHAIN_CODE = 0;
  419. public const int CV_LINK_RUNS = 5;
  420. public const int CV_POLY_APPROX_DP = 0;
  421. public const int CV_CONTOURS_MATCH_I1 = 1;
  422. public const int CV_CONTOURS_MATCH_I2 = 2;
  423. public const int CV_CONTOURS_MATCH_I3 = 3;
  424. public const int CV_CLOCKWISE = 1;
  425. public const int CV_COUNTER_CLOCKWISE = 2;
  426. public const int CV_COMP_CORREL = 0;
  427. public const int CV_COMP_CHISQR = 1;
  428. public const int CV_COMP_INTERSECT = 2;
  429. public const int CV_COMP_BHATTACHARYYA = 3;
  430. public const int CV_COMP_HELLINGER = CV_COMP_BHATTACHARYYA;
  431. public const int CV_COMP_CHISQR_ALT = 4;
  432. public const int CV_COMP_KL_DIV = 5;
  433. public const int CV_DIST_MASK_3 = 3;
  434. public const int CV_DIST_MASK_5 = 5;
  435. public const int CV_DIST_MASK_PRECISE = 0;
  436. public const int CV_DIST_LABEL_CCOMP = 0;
  437. public const int CV_DIST_LABEL_PIXEL = 1;
  438. public const int CV_DIST_USER = -1;
  439. public const int CV_DIST_L1 = 1;
  440. public const int CV_DIST_L2 = 2;
  441. public const int CV_DIST_C = 3;
  442. public const int CV_DIST_L12 = 4;
  443. public const int CV_DIST_FAIR = 5;
  444. public const int CV_DIST_WELSCH = 6;
  445. public const int CV_DIST_HUBER = 7;
  446. public const int CV_CANNY_L2_GRADIENT = (1 << 31);
  447. public const int CV_HOUGH_STANDARD = 0;
  448. public const int CV_HOUGH_PROBABILISTIC = 1;
  449. public const int CV_HOUGH_MULTI_SCALE = 2;
  450. public const int CV_HOUGH_GRADIENT = 3;
  451. // C++: enum SpecialFilter
  452. public const int FILTER_SCHARR = -1;
  453. // C++: enum RetrievalModes
  454. public const int RETR_EXTERNAL = 0;
  455. public const int RETR_LIST = 1;
  456. public const int RETR_CCOMP = 2;
  457. public const int RETR_TREE = 3;
  458. public const int RETR_FLOODFILL = 4;
  459. // C++: enum MorphShapes_c
  460. public const int CV_SHAPE_RECT = 0;
  461. public const int CV_SHAPE_CROSS = 1;
  462. public const int CV_SHAPE_ELLIPSE = 2;
  463. public const int CV_SHAPE_CUSTOM = 100;
  464. // C++: enum HistCompMethods
  465. public const int HISTCMP_CORREL = 0;
  466. public const int HISTCMP_CHISQR = 1;
  467. public const int HISTCMP_INTERSECT = 2;
  468. public const int HISTCMP_BHATTACHARYYA = 3;
  469. public const int HISTCMP_HELLINGER = HISTCMP_BHATTACHARYYA;
  470. public const int HISTCMP_CHISQR_ALT = 4;
  471. public const int HISTCMP_KL_DIV = 5;
  472. //
  473. // C++: Mat cv::getAffineTransform(vector_Point2f src, vector_Point2f dst)
  474. //
  475. //javadoc: getAffineTransform(src, dst)
  476. public static Mat getAffineTransform (MatOfPoint2f src, MatOfPoint2f dst)
  477. {
  478. if (src != null) src.ThrowIfDisposed ();
  479. if (dst != null) dst.ThrowIfDisposed ();
  480. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  481. Mat src_mat = src;
  482. Mat dst_mat = dst;
  483. Mat retVal = new Mat(imgproc_Imgproc_getAffineTransform_10(src_mat.nativeObj, dst_mat.nativeObj));
  484. return retVal;
  485. #else
  486. return null;
  487. #endif
  488. }
  489. //
  490. // C++: Mat cv::getGaborKernel(Size ksize, double sigma, double theta, double lambd, double gamma, double psi = CV_PI*0.5, int ktype = CV_64F)
  491. //
  492. //javadoc: getGaborKernel(ksize, sigma, theta, lambd, gamma, psi, ktype)
  493. public static Mat getGaborKernel (Size ksize, double sigma, double theta, double lambd, double gamma, double psi, int ktype)
  494. {
  495. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  496. Mat retVal = new Mat(imgproc_Imgproc_getGaborKernel_10(ksize.width, ksize.height, sigma, theta, lambd, gamma, psi, ktype));
  497. return retVal;
  498. #else
  499. return null;
  500. #endif
  501. }
  502. //javadoc: getGaborKernel(ksize, sigma, theta, lambd, gamma, psi)
  503. public static Mat getGaborKernel (Size ksize, double sigma, double theta, double lambd, double gamma, double psi)
  504. {
  505. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  506. Mat retVal = new Mat(imgproc_Imgproc_getGaborKernel_11(ksize.width, ksize.height, sigma, theta, lambd, gamma, psi));
  507. return retVal;
  508. #else
  509. return null;
  510. #endif
  511. }
  512. //javadoc: getGaborKernel(ksize, sigma, theta, lambd, gamma)
  513. public static Mat getGaborKernel (Size ksize, double sigma, double theta, double lambd, double gamma)
  514. {
  515. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  516. Mat retVal = new Mat(imgproc_Imgproc_getGaborKernel_12(ksize.width, ksize.height, sigma, theta, lambd, gamma));
  517. return retVal;
  518. #else
  519. return null;
  520. #endif
  521. }
  522. //
  523. // C++: Mat cv::getGaussianKernel(int ksize, double sigma, int ktype = CV_64F)
  524. //
  525. //javadoc: getGaussianKernel(ksize, sigma, ktype)
  526. public static Mat getGaussianKernel (int ksize, double sigma, int ktype)
  527. {
  528. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  529. Mat retVal = new Mat(imgproc_Imgproc_getGaussianKernel_10(ksize, sigma, ktype));
  530. return retVal;
  531. #else
  532. return null;
  533. #endif
  534. }
  535. //javadoc: getGaussianKernel(ksize, sigma)
  536. public static Mat getGaussianKernel (int ksize, double sigma)
  537. {
  538. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  539. Mat retVal = new Mat(imgproc_Imgproc_getGaussianKernel_11(ksize, sigma));
  540. return retVal;
  541. #else
  542. return null;
  543. #endif
  544. }
  545. //
  546. // C++: Mat cv::getPerspectiveTransform(Mat src, Mat dst, int solveMethod = DECOMP_LU)
  547. //
  548. //javadoc: getPerspectiveTransform(src, dst, solveMethod)
  549. public static Mat getPerspectiveTransform (Mat src, Mat dst, int solveMethod)
  550. {
  551. if (src != null) src.ThrowIfDisposed ();
  552. if (dst != null) dst.ThrowIfDisposed ();
  553. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  554. Mat retVal = new Mat(imgproc_Imgproc_getPerspectiveTransform_10(src.nativeObj, dst.nativeObj, solveMethod));
  555. return retVal;
  556. #else
  557. return null;
  558. #endif
  559. }
  560. //javadoc: getPerspectiveTransform(src, dst)
  561. public static Mat getPerspectiveTransform (Mat src, Mat dst)
  562. {
  563. if (src != null) src.ThrowIfDisposed ();
  564. if (dst != null) dst.ThrowIfDisposed ();
  565. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  566. Mat retVal = new Mat(imgproc_Imgproc_getPerspectiveTransform_11(src.nativeObj, dst.nativeObj));
  567. return retVal;
  568. #else
  569. return null;
  570. #endif
  571. }
  572. //
  573. // C++: Mat cv::getRotationMatrix2D(Point2f center, double angle, double scale)
  574. //
  575. //javadoc: getRotationMatrix2D(center, angle, scale)
  576. public static Mat getRotationMatrix2D (Point center, double angle, double scale)
  577. {
  578. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  579. Mat retVal = new Mat(imgproc_Imgproc_getRotationMatrix2D_10(center.x, center.y, angle, scale));
  580. return retVal;
  581. #else
  582. return null;
  583. #endif
  584. }
  585. //
  586. // C++: Mat cv::getStructuringElement(int shape, Size ksize, Point anchor = Point(-1,-1))
  587. //
  588. //javadoc: getStructuringElement(shape, ksize, anchor)
  589. public static Mat getStructuringElement (int shape, Size ksize, Point anchor)
  590. {
  591. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  592. Mat retVal = new Mat(imgproc_Imgproc_getStructuringElement_10(shape, ksize.width, ksize.height, anchor.x, anchor.y));
  593. return retVal;
  594. #else
  595. return null;
  596. #endif
  597. }
  598. //javadoc: getStructuringElement(shape, ksize)
  599. public static Mat getStructuringElement (int shape, Size ksize)
  600. {
  601. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  602. Mat retVal = new Mat(imgproc_Imgproc_getStructuringElement_11(shape, ksize.width, ksize.height));
  603. return retVal;
  604. #else
  605. return null;
  606. #endif
  607. }
  608. //
  609. // C++: Moments cv::moments(Mat array, bool binaryImage = false)
  610. //
  611. //javadoc: moments(array, binaryImage)
  612. public static Moments moments (Mat array, bool binaryImage)
  613. {
  614. if (array != null) array.ThrowIfDisposed ();
  615. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  616. double[] tmpArray = new double[10];
  617. imgproc_Imgproc_moments_10(array.nativeObj, binaryImage, tmpArray);
  618. Moments retVal = new Moments (tmpArray);
  619. return retVal;
  620. #else
  621. return null;
  622. #endif
  623. }
  624. //javadoc: moments(array)
  625. public static Moments moments (Mat array)
  626. {
  627. if (array != null) array.ThrowIfDisposed ();
  628. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  629. double[] tmpArray = new double[10];
  630. imgproc_Imgproc_moments_11(array.nativeObj, tmpArray);
  631. Moments retVal = new Moments (tmpArray);
  632. return retVal;
  633. #else
  634. return null;
  635. #endif
  636. }
  637. //
  638. // C++: Point2d cv::phaseCorrelate(Mat src1, Mat src2, Mat window = Mat(), double* response = 0)
  639. //
  640. //javadoc: phaseCorrelate(src1, src2, window, response)
  641. public static Point phaseCorrelate (Mat src1, Mat src2, Mat window, double[] response)
  642. {
  643. if (src1 != null) src1.ThrowIfDisposed ();
  644. if (src2 != null) src2.ThrowIfDisposed ();
  645. if (window != null) window.ThrowIfDisposed ();
  646. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  647. double[] response_out = new double[1];
  648. double[] tmpArray = new double[2];
  649. imgproc_Imgproc_phaseCorrelate_10(src1.nativeObj, src2.nativeObj, window.nativeObj, response_out, tmpArray);
  650. Point retVal = new Point (tmpArray);
  651. if(response!=null) response[0] = (double)response_out[0];
  652. return retVal;
  653. #else
  654. return null;
  655. #endif
  656. }
  657. //javadoc: phaseCorrelate(src1, src2, window)
  658. public static Point phaseCorrelate (Mat src1, Mat src2, Mat window)
  659. {
  660. if (src1 != null) src1.ThrowIfDisposed ();
  661. if (src2 != null) src2.ThrowIfDisposed ();
  662. if (window != null) window.ThrowIfDisposed ();
  663. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  664. double[] tmpArray = new double[2];
  665. imgproc_Imgproc_phaseCorrelate_11(src1.nativeObj, src2.nativeObj, window.nativeObj, tmpArray);
  666. Point retVal = new Point (tmpArray);
  667. return retVal;
  668. #else
  669. return null;
  670. #endif
  671. }
  672. //javadoc: phaseCorrelate(src1, src2)
  673. public static Point phaseCorrelate (Mat src1, Mat src2)
  674. {
  675. if (src1 != null) src1.ThrowIfDisposed ();
  676. if (src2 != null) src2.ThrowIfDisposed ();
  677. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  678. double[] tmpArray = new double[2];
  679. imgproc_Imgproc_phaseCorrelate_12(src1.nativeObj, src2.nativeObj, tmpArray);
  680. Point retVal = new Point (tmpArray);
  681. return retVal;
  682. #else
  683. return null;
  684. #endif
  685. }
  686. //
  687. // C++: Ptr_CLAHE cv::createCLAHE(double clipLimit = 40.0, Size tileGridSize = Size(8, 8))
  688. //
  689. //javadoc: createCLAHE(clipLimit, tileGridSize)
  690. public static CLAHE createCLAHE (double clipLimit, Size tileGridSize)
  691. {
  692. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  693. CLAHE retVal = CLAHE.__fromPtr__(imgproc_Imgproc_createCLAHE_10(clipLimit, tileGridSize.width, tileGridSize.height));
  694. return retVal;
  695. #else
  696. return null;
  697. #endif
  698. }
  699. //javadoc: createCLAHE(clipLimit)
  700. public static CLAHE createCLAHE (double clipLimit)
  701. {
  702. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  703. CLAHE retVal = CLAHE.__fromPtr__(imgproc_Imgproc_createCLAHE_11(clipLimit));
  704. return retVal;
  705. #else
  706. return null;
  707. #endif
  708. }
  709. //javadoc: createCLAHE()
  710. public static CLAHE createCLAHE ()
  711. {
  712. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  713. CLAHE retVal = CLAHE.__fromPtr__(imgproc_Imgproc_createCLAHE_12());
  714. return retVal;
  715. #else
  716. return null;
  717. #endif
  718. }
  719. //
  720. // 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)
  721. //
  722. //javadoc: createLineSegmentDetector(_refine, _scale, _sigma_scale, _quant, _ang_th, _log_eps, _density_th, _n_bins)
  723. 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)
  724. {
  725. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  726. LineSegmentDetector retVal = LineSegmentDetector.__fromPtr__(imgproc_Imgproc_createLineSegmentDetector_10(_refine, _scale, _sigma_scale, _quant, _ang_th, _log_eps, _density_th, _n_bins));
  727. return retVal;
  728. #else
  729. return null;
  730. #endif
  731. }
  732. //javadoc: createLineSegmentDetector(_refine, _scale, _sigma_scale, _quant, _ang_th, _log_eps, _density_th)
  733. public static LineSegmentDetector createLineSegmentDetector (int _refine, double _scale, double _sigma_scale, double _quant, double _ang_th, double _log_eps, double _density_th)
  734. {
  735. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  736. LineSegmentDetector retVal = LineSegmentDetector.__fromPtr__(imgproc_Imgproc_createLineSegmentDetector_11(_refine, _scale, _sigma_scale, _quant, _ang_th, _log_eps, _density_th));
  737. return retVal;
  738. #else
  739. return null;
  740. #endif
  741. }
  742. //javadoc: createLineSegmentDetector(_refine, _scale, _sigma_scale, _quant, _ang_th, _log_eps)
  743. public static LineSegmentDetector createLineSegmentDetector (int _refine, double _scale, double _sigma_scale, double _quant, double _ang_th, double _log_eps)
  744. {
  745. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  746. LineSegmentDetector retVal = LineSegmentDetector.__fromPtr__(imgproc_Imgproc_createLineSegmentDetector_12(_refine, _scale, _sigma_scale, _quant, _ang_th, _log_eps));
  747. return retVal;
  748. #else
  749. return null;
  750. #endif
  751. }
  752. //javadoc: createLineSegmentDetector(_refine, _scale, _sigma_scale, _quant, _ang_th)
  753. public static LineSegmentDetector createLineSegmentDetector (int _refine, double _scale, double _sigma_scale, double _quant, double _ang_th)
  754. {
  755. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  756. LineSegmentDetector retVal = LineSegmentDetector.__fromPtr__(imgproc_Imgproc_createLineSegmentDetector_13(_refine, _scale, _sigma_scale, _quant, _ang_th));
  757. return retVal;
  758. #else
  759. return null;
  760. #endif
  761. }
  762. //javadoc: createLineSegmentDetector(_refine, _scale, _sigma_scale, _quant)
  763. public static LineSegmentDetector createLineSegmentDetector (int _refine, double _scale, double _sigma_scale, double _quant)
  764. {
  765. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  766. LineSegmentDetector retVal = LineSegmentDetector.__fromPtr__(imgproc_Imgproc_createLineSegmentDetector_14(_refine, _scale, _sigma_scale, _quant));
  767. return retVal;
  768. #else
  769. return null;
  770. #endif
  771. }
  772. //javadoc: createLineSegmentDetector(_refine, _scale, _sigma_scale)
  773. public static LineSegmentDetector createLineSegmentDetector (int _refine, double _scale, double _sigma_scale)
  774. {
  775. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  776. LineSegmentDetector retVal = LineSegmentDetector.__fromPtr__(imgproc_Imgproc_createLineSegmentDetector_15(_refine, _scale, _sigma_scale));
  777. return retVal;
  778. #else
  779. return null;
  780. #endif
  781. }
  782. //javadoc: createLineSegmentDetector(_refine, _scale)
  783. public static LineSegmentDetector createLineSegmentDetector (int _refine, double _scale)
  784. {
  785. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  786. LineSegmentDetector retVal = LineSegmentDetector.__fromPtr__(imgproc_Imgproc_createLineSegmentDetector_16(_refine, _scale));
  787. return retVal;
  788. #else
  789. return null;
  790. #endif
  791. }
  792. //javadoc: createLineSegmentDetector(_refine)
  793. public static LineSegmentDetector createLineSegmentDetector (int _refine)
  794. {
  795. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  796. LineSegmentDetector retVal = LineSegmentDetector.__fromPtr__(imgproc_Imgproc_createLineSegmentDetector_17(_refine));
  797. return retVal;
  798. #else
  799. return null;
  800. #endif
  801. }
  802. //javadoc: createLineSegmentDetector()
  803. public static LineSegmentDetector createLineSegmentDetector ()
  804. {
  805. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  806. LineSegmentDetector retVal = LineSegmentDetector.__fromPtr__(imgproc_Imgproc_createLineSegmentDetector_18());
  807. return retVal;
  808. #else
  809. return null;
  810. #endif
  811. }
  812. //
  813. // C++: Rect cv::boundingRect(Mat array)
  814. //
  815. //javadoc: boundingRect(array)
  816. public static Rect boundingRect (Mat array)
  817. {
  818. if (array != null) array.ThrowIfDisposed ();
  819. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  820. double[] tmpArray = new double[4];
  821. imgproc_Imgproc_boundingRect_10(array.nativeObj, tmpArray);
  822. Rect retVal = new Rect (tmpArray);
  823. return retVal;
  824. #else
  825. return null;
  826. #endif
  827. }
  828. //
  829. // C++: RotatedRect cv::fitEllipse(vector_Point2f points)
  830. //
  831. //javadoc: fitEllipse(points)
  832. public static RotatedRect fitEllipse (MatOfPoint2f points)
  833. {
  834. if (points != null) points.ThrowIfDisposed ();
  835. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  836. Mat points_mat = points;
  837. double[] tmpArray = new double[5];
  838. imgproc_Imgproc_fitEllipse_10(points_mat.nativeObj, tmpArray);
  839. RotatedRect retVal = new RotatedRect (tmpArray);
  840. return retVal;
  841. #else
  842. return null;
  843. #endif
  844. }
  845. //
  846. // C++: RotatedRect cv::fitEllipseAMS(Mat points)
  847. //
  848. //javadoc: fitEllipseAMS(points)
  849. public static RotatedRect fitEllipseAMS (Mat points)
  850. {
  851. if (points != null) points.ThrowIfDisposed ();
  852. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  853. double[] tmpArray = new double[5];
  854. imgproc_Imgproc_fitEllipseAMS_10(points.nativeObj, tmpArray);
  855. RotatedRect retVal = new RotatedRect (tmpArray);
  856. return retVal;
  857. #else
  858. return null;
  859. #endif
  860. }
  861. //
  862. // C++: RotatedRect cv::fitEllipseDirect(Mat points)
  863. //
  864. //javadoc: fitEllipseDirect(points)
  865. public static RotatedRect fitEllipseDirect (Mat points)
  866. {
  867. if (points != null) points.ThrowIfDisposed ();
  868. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  869. double[] tmpArray = new double[5];
  870. imgproc_Imgproc_fitEllipseDirect_10(points.nativeObj, tmpArray);
  871. RotatedRect retVal = new RotatedRect (tmpArray);
  872. return retVal;
  873. #else
  874. return null;
  875. #endif
  876. }
  877. //
  878. // C++: RotatedRect cv::minAreaRect(vector_Point2f points)
  879. //
  880. //javadoc: minAreaRect(points)
  881. public static RotatedRect minAreaRect (MatOfPoint2f points)
  882. {
  883. if (points != null) points.ThrowIfDisposed ();
  884. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  885. Mat points_mat = points;
  886. double[] tmpArray = new double[5];
  887. imgproc_Imgproc_minAreaRect_10(points_mat.nativeObj, tmpArray);
  888. RotatedRect retVal = new RotatedRect (tmpArray);
  889. return retVal;
  890. #else
  891. return null;
  892. #endif
  893. }
  894. //
  895. // C++: bool cv::clipLine(Rect imgRect, Point& pt1, Point& pt2)
  896. //
  897. //javadoc: clipLine(imgRect, pt1, pt2)
  898. public static bool clipLine (Rect imgRect, Point pt1, Point pt2)
  899. {
  900. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  901. double[] pt1_out = new double[2];
  902. double[] pt2_out = new double[2];
  903. 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);
  904. if(pt1!=null){ pt1.x = pt1_out[0]; pt1.y = pt1_out[1]; }
  905. if(pt2!=null){ pt2.x = pt2_out[0]; pt2.y = pt2_out[1]; }
  906. return retVal;
  907. #else
  908. return false;
  909. #endif
  910. }
  911. //
  912. // C++: bool cv::isContourConvex(vector_Point contour)
  913. //
  914. //javadoc: isContourConvex(contour)
  915. public static bool isContourConvex (MatOfPoint contour)
  916. {
  917. if (contour != null) contour.ThrowIfDisposed ();
  918. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  919. Mat contour_mat = contour;
  920. bool retVal = imgproc_Imgproc_isContourConvex_10(contour_mat.nativeObj);
  921. return retVal;
  922. #else
  923. return false;
  924. #endif
  925. }
  926. //
  927. // C++: double cv::arcLength(vector_Point2f curve, bool closed)
  928. //
  929. //javadoc: arcLength(curve, closed)
  930. public static double arcLength (MatOfPoint2f curve, bool closed)
  931. {
  932. if (curve != null) curve.ThrowIfDisposed ();
  933. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  934. Mat curve_mat = curve;
  935. double retVal = imgproc_Imgproc_arcLength_10(curve_mat.nativeObj, closed);
  936. return retVal;
  937. #else
  938. return -1;
  939. #endif
  940. }
  941. //
  942. // C++: double cv::compareHist(Mat H1, Mat H2, int method)
  943. //
  944. //javadoc: compareHist(H1, H2, method)
  945. public static double compareHist (Mat H1, Mat H2, int method)
  946. {
  947. if (H1 != null) H1.ThrowIfDisposed ();
  948. if (H2 != null) H2.ThrowIfDisposed ();
  949. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  950. double retVal = imgproc_Imgproc_compareHist_10(H1.nativeObj, H2.nativeObj, method);
  951. return retVal;
  952. #else
  953. return -1;
  954. #endif
  955. }
  956. //
  957. // C++: double cv::contourArea(Mat contour, bool oriented = false)
  958. //
  959. //javadoc: contourArea(contour, oriented)
  960. public static double contourArea (Mat contour, bool oriented)
  961. {
  962. if (contour != null) contour.ThrowIfDisposed ();
  963. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  964. double retVal = imgproc_Imgproc_contourArea_10(contour.nativeObj, oriented);
  965. return retVal;
  966. #else
  967. return -1;
  968. #endif
  969. }
  970. //javadoc: contourArea(contour)
  971. public static double contourArea (Mat contour)
  972. {
  973. if (contour != null) contour.ThrowIfDisposed ();
  974. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  975. double retVal = imgproc_Imgproc_contourArea_11(contour.nativeObj);
  976. return retVal;
  977. #else
  978. return -1;
  979. #endif
  980. }
  981. //
  982. // C++: double cv::getFontScaleFromHeight(int fontFace, int pixelHeight, int thickness = 1)
  983. //
  984. //javadoc: getFontScaleFromHeight(fontFace, pixelHeight, thickness)
  985. public static double getFontScaleFromHeight (int fontFace, int pixelHeight, int thickness)
  986. {
  987. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  988. double retVal = imgproc_Imgproc_getFontScaleFromHeight_10(fontFace, pixelHeight, thickness);
  989. return retVal;
  990. #else
  991. return -1;
  992. #endif
  993. }
  994. //javadoc: getFontScaleFromHeight(fontFace, pixelHeight)
  995. public static double getFontScaleFromHeight (int fontFace, int pixelHeight)
  996. {
  997. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  998. double retVal = imgproc_Imgproc_getFontScaleFromHeight_11(fontFace, pixelHeight);
  999. return retVal;
  1000. #else
  1001. return -1;
  1002. #endif
  1003. }
  1004. //
  1005. // C++: double cv::matchShapes(Mat contour1, Mat contour2, int method, double parameter)
  1006. //
  1007. //javadoc: matchShapes(contour1, contour2, method, parameter)
  1008. public static double matchShapes (Mat contour1, Mat contour2, int method, double parameter)
  1009. {
  1010. if (contour1 != null) contour1.ThrowIfDisposed ();
  1011. if (contour2 != null) contour2.ThrowIfDisposed ();
  1012. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1013. double retVal = imgproc_Imgproc_matchShapes_10(contour1.nativeObj, contour2.nativeObj, method, parameter);
  1014. return retVal;
  1015. #else
  1016. return -1;
  1017. #endif
  1018. }
  1019. //
  1020. // C++: double cv::minEnclosingTriangle(Mat points, Mat& triangle)
  1021. //
  1022. //javadoc: minEnclosingTriangle(points, triangle)
  1023. public static double minEnclosingTriangle (Mat points, Mat triangle)
  1024. {
  1025. if (points != null) points.ThrowIfDisposed ();
  1026. if (triangle != null) triangle.ThrowIfDisposed ();
  1027. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1028. double retVal = imgproc_Imgproc_minEnclosingTriangle_10(points.nativeObj, triangle.nativeObj);
  1029. return retVal;
  1030. #else
  1031. return -1;
  1032. #endif
  1033. }
  1034. //
  1035. // C++: double cv::pointPolygonTest(vector_Point2f contour, Point2f pt, bool measureDist)
  1036. //
  1037. //javadoc: pointPolygonTest(contour, pt, measureDist)
  1038. public static double pointPolygonTest (MatOfPoint2f contour, Point pt, bool measureDist)
  1039. {
  1040. if (contour != null) contour.ThrowIfDisposed ();
  1041. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1042. Mat contour_mat = contour;
  1043. double retVal = imgproc_Imgproc_pointPolygonTest_10(contour_mat.nativeObj, pt.x, pt.y, measureDist);
  1044. return retVal;
  1045. #else
  1046. return -1;
  1047. #endif
  1048. }
  1049. //
  1050. // C++: double cv::threshold(Mat src, Mat& dst, double thresh, double maxval, int type)
  1051. //
  1052. //javadoc: threshold(src, dst, thresh, maxval, type)
  1053. public static double threshold (Mat src, Mat dst, double thresh, double maxval, int type)
  1054. {
  1055. if (src != null) src.ThrowIfDisposed ();
  1056. if (dst != null) dst.ThrowIfDisposed ();
  1057. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1058. double retVal = imgproc_Imgproc_threshold_10(src.nativeObj, dst.nativeObj, thresh, maxval, type);
  1059. return retVal;
  1060. #else
  1061. return -1;
  1062. #endif
  1063. }
  1064. //
  1065. // C++: float cv::intersectConvexConvex(Mat _p1, Mat _p2, Mat& _p12, bool handleNested = true)
  1066. //
  1067. //javadoc: intersectConvexConvex(_p1, _p2, _p12, handleNested)
  1068. public static float intersectConvexConvex (Mat _p1, Mat _p2, Mat _p12, bool handleNested)
  1069. {
  1070. if (_p1 != null) _p1.ThrowIfDisposed ();
  1071. if (_p2 != null) _p2.ThrowIfDisposed ();
  1072. if (_p12 != null) _p12.ThrowIfDisposed ();
  1073. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1074. float retVal = imgproc_Imgproc_intersectConvexConvex_10(_p1.nativeObj, _p2.nativeObj, _p12.nativeObj, handleNested);
  1075. return retVal;
  1076. #else
  1077. return -1;
  1078. #endif
  1079. }
  1080. //javadoc: intersectConvexConvex(_p1, _p2, _p12)
  1081. public static float intersectConvexConvex (Mat _p1, Mat _p2, Mat _p12)
  1082. {
  1083. if (_p1 != null) _p1.ThrowIfDisposed ();
  1084. if (_p2 != null) _p2.ThrowIfDisposed ();
  1085. if (_p12 != null) _p12.ThrowIfDisposed ();
  1086. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1087. float retVal = imgproc_Imgproc_intersectConvexConvex_11(_p1.nativeObj, _p2.nativeObj, _p12.nativeObj);
  1088. return retVal;
  1089. #else
  1090. return -1;
  1091. #endif
  1092. }
  1093. //
  1094. // C++: float cv::wrapperEMD(Mat signature1, Mat signature2, int distType, Mat cost = Mat(), Ptr_float& lowerBound = Ptr<float>(), Mat& flow = Mat())
  1095. //
  1096. //javadoc: EMD(signature1, signature2, distType, cost, flow)
  1097. public static float EMD (Mat signature1, Mat signature2, int distType, Mat cost, Mat flow)
  1098. {
  1099. if (signature1 != null) signature1.ThrowIfDisposed ();
  1100. if (signature2 != null) signature2.ThrowIfDisposed ();
  1101. if (cost != null) cost.ThrowIfDisposed ();
  1102. if (flow != null) flow.ThrowIfDisposed ();
  1103. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1104. float retVal = imgproc_Imgproc_EMD_10(signature1.nativeObj, signature2.nativeObj, distType, cost.nativeObj, flow.nativeObj);
  1105. return retVal;
  1106. #else
  1107. return -1;
  1108. #endif
  1109. }
  1110. //javadoc: EMD(signature1, signature2, distType, cost)
  1111. public static float EMD (Mat signature1, Mat signature2, int distType, Mat cost)
  1112. {
  1113. if (signature1 != null) signature1.ThrowIfDisposed ();
  1114. if (signature2 != null) signature2.ThrowIfDisposed ();
  1115. if (cost != null) cost.ThrowIfDisposed ();
  1116. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1117. float retVal = imgproc_Imgproc_EMD_11(signature1.nativeObj, signature2.nativeObj, distType, cost.nativeObj);
  1118. return retVal;
  1119. #else
  1120. return -1;
  1121. #endif
  1122. }
  1123. //javadoc: EMD(signature1, signature2, distType)
  1124. public static float EMD (Mat signature1, Mat signature2, int distType)
  1125. {
  1126. if (signature1 != null) signature1.ThrowIfDisposed ();
  1127. if (signature2 != null) signature2.ThrowIfDisposed ();
  1128. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1129. float retVal = imgproc_Imgproc_EMD_13(signature1.nativeObj, signature2.nativeObj, distType);
  1130. return retVal;
  1131. #else
  1132. return -1;
  1133. #endif
  1134. }
  1135. //
  1136. // C++: int cv::connectedComponents(Mat image, Mat& labels, int connectivity, int ltype, int ccltype)
  1137. //
  1138. //javadoc: connectedComponentsWithAlgorithm(image, labels, connectivity, ltype, ccltype)
  1139. public static int connectedComponentsWithAlgorithm (Mat image, Mat labels, int connectivity, int ltype, int ccltype)
  1140. {
  1141. if (image != null) image.ThrowIfDisposed ();
  1142. if (labels != null) labels.ThrowIfDisposed ();
  1143. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1144. int retVal = imgproc_Imgproc_connectedComponentsWithAlgorithm_10(image.nativeObj, labels.nativeObj, connectivity, ltype, ccltype);
  1145. return retVal;
  1146. #else
  1147. return -1;
  1148. #endif
  1149. }
  1150. //
  1151. // C++: int cv::connectedComponents(Mat image, Mat& labels, int connectivity = 8, int ltype = CV_32S)
  1152. //
  1153. //javadoc: connectedComponents(image, labels, connectivity, ltype)
  1154. public static int connectedComponents (Mat image, Mat labels, int connectivity, int ltype)
  1155. {
  1156. if (image != null) image.ThrowIfDisposed ();
  1157. if (labels != null) labels.ThrowIfDisposed ();
  1158. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1159. int retVal = imgproc_Imgproc_connectedComponents_10(image.nativeObj, labels.nativeObj, connectivity, ltype);
  1160. return retVal;
  1161. #else
  1162. return -1;
  1163. #endif
  1164. }
  1165. //javadoc: connectedComponents(image, labels, connectivity)
  1166. public static int connectedComponents (Mat image, Mat labels, int connectivity)
  1167. {
  1168. if (image != null) image.ThrowIfDisposed ();
  1169. if (labels != null) labels.ThrowIfDisposed ();
  1170. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1171. int retVal = imgproc_Imgproc_connectedComponents_11(image.nativeObj, labels.nativeObj, connectivity);
  1172. return retVal;
  1173. #else
  1174. return -1;
  1175. #endif
  1176. }
  1177. //javadoc: connectedComponents(image, labels)
  1178. public static int connectedComponents (Mat image, Mat labels)
  1179. {
  1180. if (image != null) image.ThrowIfDisposed ();
  1181. if (labels != null) labels.ThrowIfDisposed ();
  1182. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1183. int retVal = imgproc_Imgproc_connectedComponents_12(image.nativeObj, labels.nativeObj);
  1184. return retVal;
  1185. #else
  1186. return -1;
  1187. #endif
  1188. }
  1189. //
  1190. // C++: int cv::connectedComponentsWithStats(Mat image, Mat& labels, Mat& stats, Mat& centroids, int connectivity, int ltype, int ccltype)
  1191. //
  1192. //javadoc: connectedComponentsWithStatsWithAlgorithm(image, labels, stats, centroids, connectivity, ltype, ccltype)
  1193. public static int connectedComponentsWithStatsWithAlgorithm (Mat image, Mat labels, Mat stats, Mat centroids, int connectivity, int ltype, int ccltype)
  1194. {
  1195. if (image != null) image.ThrowIfDisposed ();
  1196. if (labels != null) labels.ThrowIfDisposed ();
  1197. if (stats != null) stats.ThrowIfDisposed ();
  1198. if (centroids != null) centroids.ThrowIfDisposed ();
  1199. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1200. int retVal = imgproc_Imgproc_connectedComponentsWithStatsWithAlgorithm_10(image.nativeObj, labels.nativeObj, stats.nativeObj, centroids.nativeObj, connectivity, ltype, ccltype);
  1201. return retVal;
  1202. #else
  1203. return -1;
  1204. #endif
  1205. }
  1206. //
  1207. // C++: int cv::connectedComponentsWithStats(Mat image, Mat& labels, Mat& stats, Mat& centroids, int connectivity = 8, int ltype = CV_32S)
  1208. //
  1209. //javadoc: connectedComponentsWithStats(image, labels, stats, centroids, connectivity, ltype)
  1210. public static int connectedComponentsWithStats (Mat image, Mat labels, Mat stats, Mat centroids, int connectivity, int ltype)
  1211. {
  1212. if (image != null) image.ThrowIfDisposed ();
  1213. if (labels != null) labels.ThrowIfDisposed ();
  1214. if (stats != null) stats.ThrowIfDisposed ();
  1215. if (centroids != null) centroids.ThrowIfDisposed ();
  1216. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1217. int retVal = imgproc_Imgproc_connectedComponentsWithStats_10(image.nativeObj, labels.nativeObj, stats.nativeObj, centroids.nativeObj, connectivity, ltype);
  1218. return retVal;
  1219. #else
  1220. return -1;
  1221. #endif
  1222. }
  1223. //javadoc: connectedComponentsWithStats(image, labels, stats, centroids, connectivity)
  1224. public static int connectedComponentsWithStats (Mat image, Mat labels, Mat stats, Mat centroids, int connectivity)
  1225. {
  1226. if (image != null) image.ThrowIfDisposed ();
  1227. if (labels != null) labels.ThrowIfDisposed ();
  1228. if (stats != null) stats.ThrowIfDisposed ();
  1229. if (centroids != null) centroids.ThrowIfDisposed ();
  1230. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1231. int retVal = imgproc_Imgproc_connectedComponentsWithStats_11(image.nativeObj, labels.nativeObj, stats.nativeObj, centroids.nativeObj, connectivity);
  1232. return retVal;
  1233. #else
  1234. return -1;
  1235. #endif
  1236. }
  1237. //javadoc: connectedComponentsWithStats(image, labels, stats, centroids)
  1238. public static int connectedComponentsWithStats (Mat image, Mat labels, Mat stats, Mat centroids)
  1239. {
  1240. if (image != null) image.ThrowIfDisposed ();
  1241. if (labels != null) labels.ThrowIfDisposed ();
  1242. if (stats != null) stats.ThrowIfDisposed ();
  1243. if (centroids != null) centroids.ThrowIfDisposed ();
  1244. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1245. int retVal = imgproc_Imgproc_connectedComponentsWithStats_12(image.nativeObj, labels.nativeObj, stats.nativeObj, centroids.nativeObj);
  1246. return retVal;
  1247. #else
  1248. return -1;
  1249. #endif
  1250. }
  1251. //
  1252. // C++: int cv::floodFill(Mat& image, Mat& mask, Point seedPoint, Scalar newVal, Rect* rect = 0, Scalar loDiff = Scalar(), Scalar upDiff = Scalar(), int flags = 4)
  1253. //
  1254. //javadoc: floodFill(image, mask, seedPoint, newVal, rect, loDiff, upDiff, flags)
  1255. public static int floodFill (Mat image, Mat mask, Point seedPoint, Scalar newVal, Rect rect, Scalar loDiff, Scalar upDiff, int flags)
  1256. {
  1257. if (image != null) image.ThrowIfDisposed ();
  1258. if (mask != null) mask.ThrowIfDisposed ();
  1259. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1260. double[] rect_out = new double[4];
  1261. 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);
  1262. 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]; }
  1263. return retVal;
  1264. #else
  1265. return -1;
  1266. #endif
  1267. }
  1268. //javadoc: floodFill(image, mask, seedPoint, newVal, rect, loDiff, upDiff)
  1269. public static int floodFill (Mat image, Mat mask, Point seedPoint, Scalar newVal, Rect rect, Scalar loDiff, Scalar upDiff)
  1270. {
  1271. if (image != null) image.ThrowIfDisposed ();
  1272. if (mask != null) mask.ThrowIfDisposed ();
  1273. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1274. double[] rect_out = new double[4];
  1275. 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]);
  1276. 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]; }
  1277. return retVal;
  1278. #else
  1279. return -1;
  1280. #endif
  1281. }
  1282. //javadoc: floodFill(image, mask, seedPoint, newVal, rect, loDiff)
  1283. public static int floodFill (Mat image, Mat mask, Point seedPoint, Scalar newVal, Rect rect, Scalar loDiff)
  1284. {
  1285. if (image != null) image.ThrowIfDisposed ();
  1286. if (mask != null) mask.ThrowIfDisposed ();
  1287. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1288. double[] rect_out = new double[4];
  1289. 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]);
  1290. 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]; }
  1291. return retVal;
  1292. #else
  1293. return -1;
  1294. #endif
  1295. }
  1296. //javadoc: floodFill(image, mask, seedPoint, newVal, rect)
  1297. public static int floodFill (Mat image, Mat mask, Point seedPoint, Scalar newVal, Rect rect)
  1298. {
  1299. if (image != null) image.ThrowIfDisposed ();
  1300. if (mask != null) mask.ThrowIfDisposed ();
  1301. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1302. double[] rect_out = new double[4];
  1303. 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);
  1304. 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]; }
  1305. return retVal;
  1306. #else
  1307. return -1;
  1308. #endif
  1309. }
  1310. //javadoc: floodFill(image, mask, seedPoint, newVal)
  1311. public static int floodFill (Mat image, Mat mask, Point seedPoint, Scalar newVal)
  1312. {
  1313. if (image != null) image.ThrowIfDisposed ();
  1314. if (mask != null) mask.ThrowIfDisposed ();
  1315. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1316. 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]);
  1317. return retVal;
  1318. #else
  1319. return -1;
  1320. #endif
  1321. }
  1322. //
  1323. // C++: int cv::rotatedRectangleIntersection(RotatedRect rect1, RotatedRect rect2, Mat& intersectingRegion)
  1324. //
  1325. //javadoc: rotatedRectangleIntersection(rect1, rect2, intersectingRegion)
  1326. public static int rotatedRectangleIntersection (RotatedRect rect1, RotatedRect rect2, Mat intersectingRegion)
  1327. {
  1328. if (intersectingRegion != null) intersectingRegion.ThrowIfDisposed ();
  1329. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1330. 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);
  1331. return retVal;
  1332. #else
  1333. return -1;
  1334. #endif
  1335. }
  1336. //
  1337. // C++: void cv::Canny(Mat dx, Mat dy, Mat& edges, double threshold1, double threshold2, bool L2gradient = false)
  1338. //
  1339. //javadoc: Canny(dx, dy, edges, threshold1, threshold2, L2gradient)
  1340. public static void Canny (Mat dx, Mat dy, Mat edges, double threshold1, double threshold2, bool L2gradient)
  1341. {
  1342. if (dx != null) dx.ThrowIfDisposed ();
  1343. if (dy != null) dy.ThrowIfDisposed ();
  1344. if (edges != null) edges.ThrowIfDisposed ();
  1345. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1346. imgproc_Imgproc_Canny_10(dx.nativeObj, dy.nativeObj, edges.nativeObj, threshold1, threshold2, L2gradient);
  1347. return;
  1348. #else
  1349. return;
  1350. #endif
  1351. }
  1352. //javadoc: Canny(dx, dy, edges, threshold1, threshold2)
  1353. public static void Canny (Mat dx, Mat dy, Mat edges, double threshold1, double threshold2)
  1354. {
  1355. if (dx != null) dx.ThrowIfDisposed ();
  1356. if (dy != null) dy.ThrowIfDisposed ();
  1357. if (edges != null) edges.ThrowIfDisposed ();
  1358. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1359. imgproc_Imgproc_Canny_11(dx.nativeObj, dy.nativeObj, edges.nativeObj, threshold1, threshold2);
  1360. return;
  1361. #else
  1362. return;
  1363. #endif
  1364. }
  1365. //
  1366. // C++: void cv::Canny(Mat image, Mat& edges, double threshold1, double threshold2, int apertureSize = 3, bool L2gradient = false)
  1367. //
  1368. //javadoc: Canny(image, edges, threshold1, threshold2, apertureSize, L2gradient)
  1369. public static void Canny (Mat image, Mat edges, double threshold1, double threshold2, int apertureSize, bool L2gradient)
  1370. {
  1371. if (image != null) image.ThrowIfDisposed ();
  1372. if (edges != null) edges.ThrowIfDisposed ();
  1373. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1374. imgproc_Imgproc_Canny_12(image.nativeObj, edges.nativeObj, threshold1, threshold2, apertureSize, L2gradient);
  1375. return;
  1376. #else
  1377. return;
  1378. #endif
  1379. }
  1380. //javadoc: Canny(image, edges, threshold1, threshold2, apertureSize)
  1381. public static void Canny (Mat image, Mat edges, double threshold1, double threshold2, int apertureSize)
  1382. {
  1383. if (image != null) image.ThrowIfDisposed ();
  1384. if (edges != null) edges.ThrowIfDisposed ();
  1385. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1386. imgproc_Imgproc_Canny_13(image.nativeObj, edges.nativeObj, threshold1, threshold2, apertureSize);
  1387. return;
  1388. #else
  1389. return;
  1390. #endif
  1391. }
  1392. //javadoc: Canny(image, edges, threshold1, threshold2)
  1393. public static void Canny (Mat image, Mat edges, double threshold1, double threshold2)
  1394. {
  1395. if (image != null) image.ThrowIfDisposed ();
  1396. if (edges != null) edges.ThrowIfDisposed ();
  1397. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1398. imgproc_Imgproc_Canny_14(image.nativeObj, edges.nativeObj, threshold1, threshold2);
  1399. return;
  1400. #else
  1401. return;
  1402. #endif
  1403. }
  1404. //
  1405. // C++: void cv::GaussianBlur(Mat src, Mat& dst, Size ksize, double sigmaX, double sigmaY = 0, int borderType = BORDER_DEFAULT)
  1406. //
  1407. //javadoc: GaussianBlur(src, dst, ksize, sigmaX, sigmaY, borderType)
  1408. public static void GaussianBlur (Mat src, Mat dst, Size ksize, double sigmaX, double sigmaY, int borderType)
  1409. {
  1410. if (src != null) src.ThrowIfDisposed ();
  1411. if (dst != null) dst.ThrowIfDisposed ();
  1412. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1413. imgproc_Imgproc_GaussianBlur_10(src.nativeObj, dst.nativeObj, ksize.width, ksize.height, sigmaX, sigmaY, borderType);
  1414. return;
  1415. #else
  1416. return;
  1417. #endif
  1418. }
  1419. //javadoc: GaussianBlur(src, dst, ksize, sigmaX, sigmaY)
  1420. public static void GaussianBlur (Mat src, Mat dst, Size ksize, double sigmaX, double sigmaY)
  1421. {
  1422. if (src != null) src.ThrowIfDisposed ();
  1423. if (dst != null) dst.ThrowIfDisposed ();
  1424. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1425. imgproc_Imgproc_GaussianBlur_11(src.nativeObj, dst.nativeObj, ksize.width, ksize.height, sigmaX, sigmaY);
  1426. return;
  1427. #else
  1428. return;
  1429. #endif
  1430. }
  1431. //javadoc: GaussianBlur(src, dst, ksize, sigmaX)
  1432. public static void GaussianBlur (Mat src, Mat dst, Size ksize, double sigmaX)
  1433. {
  1434. if (src != null) src.ThrowIfDisposed ();
  1435. if (dst != null) dst.ThrowIfDisposed ();
  1436. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1437. imgproc_Imgproc_GaussianBlur_12(src.nativeObj, dst.nativeObj, ksize.width, ksize.height, sigmaX);
  1438. return;
  1439. #else
  1440. return;
  1441. #endif
  1442. }
  1443. //
  1444. // 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)
  1445. //
  1446. //javadoc: HoughCircles(image, circles, method, dp, minDist, param1, param2, minRadius, maxRadius)
  1447. public static void HoughCircles (Mat image, Mat circles, int method, double dp, double minDist, double param1, double param2, int minRadius, int maxRadius)
  1448. {
  1449. if (image != null) image.ThrowIfDisposed ();
  1450. if (circles != null) circles.ThrowIfDisposed ();
  1451. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1452. imgproc_Imgproc_HoughCircles_10(image.nativeObj, circles.nativeObj, method, dp, minDist, param1, param2, minRadius, maxRadius);
  1453. return;
  1454. #else
  1455. return;
  1456. #endif
  1457. }
  1458. //javadoc: HoughCircles(image, circles, method, dp, minDist, param1, param2, minRadius)
  1459. public static void HoughCircles (Mat image, Mat circles, int method, double dp, double minDist, double param1, double param2, int minRadius)
  1460. {
  1461. if (image != null) image.ThrowIfDisposed ();
  1462. if (circles != null) circles.ThrowIfDisposed ();
  1463. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1464. imgproc_Imgproc_HoughCircles_11(image.nativeObj, circles.nativeObj, method, dp, minDist, param1, param2, minRadius);
  1465. return;
  1466. #else
  1467. return;
  1468. #endif
  1469. }
  1470. //javadoc: HoughCircles(image, circles, method, dp, minDist, param1, param2)
  1471. public static void HoughCircles (Mat image, Mat circles, int method, double dp, double minDist, double param1, double param2)
  1472. {
  1473. if (image != null) image.ThrowIfDisposed ();
  1474. if (circles != null) circles.ThrowIfDisposed ();
  1475. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1476. imgproc_Imgproc_HoughCircles_12(image.nativeObj, circles.nativeObj, method, dp, minDist, param1, param2);
  1477. return;
  1478. #else
  1479. return;
  1480. #endif
  1481. }
  1482. //javadoc: HoughCircles(image, circles, method, dp, minDist, param1)
  1483. public static void HoughCircles (Mat image, Mat circles, int method, double dp, double minDist, double param1)
  1484. {
  1485. if (image != null) image.ThrowIfDisposed ();
  1486. if (circles != null) circles.ThrowIfDisposed ();
  1487. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1488. imgproc_Imgproc_HoughCircles_13(image.nativeObj, circles.nativeObj, method, dp, minDist, param1);
  1489. return;
  1490. #else
  1491. return;
  1492. #endif
  1493. }
  1494. //javadoc: HoughCircles(image, circles, method, dp, minDist)
  1495. public static void HoughCircles (Mat image, Mat circles, int method, double dp, double minDist)
  1496. {
  1497. if (image != null) image.ThrowIfDisposed ();
  1498. if (circles != null) circles.ThrowIfDisposed ();
  1499. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1500. imgproc_Imgproc_HoughCircles_14(image.nativeObj, circles.nativeObj, method, dp, minDist);
  1501. return;
  1502. #else
  1503. return;
  1504. #endif
  1505. }
  1506. //
  1507. // 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)
  1508. //
  1509. //javadoc: HoughLines(image, lines, rho, theta, threshold, srn, stn, min_theta, max_theta)
  1510. public static void HoughLines (Mat image, Mat lines, double rho, double theta, int threshold, double srn, double stn, double min_theta, double max_theta)
  1511. {
  1512. if (image != null) image.ThrowIfDisposed ();
  1513. if (lines != null) lines.ThrowIfDisposed ();
  1514. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1515. imgproc_Imgproc_HoughLines_10(image.nativeObj, lines.nativeObj, rho, theta, threshold, srn, stn, min_theta, max_theta);
  1516. return;
  1517. #else
  1518. return;
  1519. #endif
  1520. }
  1521. //javadoc: HoughLines(image, lines, rho, theta, threshold, srn, stn, min_theta)
  1522. public static void HoughLines (Mat image, Mat lines, double rho, double theta, int threshold, double srn, double stn, double min_theta)
  1523. {
  1524. if (image != null) image.ThrowIfDisposed ();
  1525. if (lines != null) lines.ThrowIfDisposed ();
  1526. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1527. imgproc_Imgproc_HoughLines_11(image.nativeObj, lines.nativeObj, rho, theta, threshold, srn, stn, min_theta);
  1528. return;
  1529. #else
  1530. return;
  1531. #endif
  1532. }
  1533. //javadoc: HoughLines(image, lines, rho, theta, threshold, srn, stn)
  1534. public static void HoughLines (Mat image, Mat lines, double rho, double theta, int threshold, double srn, double stn)
  1535. {
  1536. if (image != null) image.ThrowIfDisposed ();
  1537. if (lines != null) lines.ThrowIfDisposed ();
  1538. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1539. imgproc_Imgproc_HoughLines_12(image.nativeObj, lines.nativeObj, rho, theta, threshold, srn, stn);
  1540. return;
  1541. #else
  1542. return;
  1543. #endif
  1544. }
  1545. //javadoc: HoughLines(image, lines, rho, theta, threshold, srn)
  1546. public static void HoughLines (Mat image, Mat lines, double rho, double theta, int threshold, double srn)
  1547. {
  1548. if (image != null) image.ThrowIfDisposed ();
  1549. if (lines != null) lines.ThrowIfDisposed ();
  1550. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1551. imgproc_Imgproc_HoughLines_13(image.nativeObj, lines.nativeObj, rho, theta, threshold, srn);
  1552. return;
  1553. #else
  1554. return;
  1555. #endif
  1556. }
  1557. //javadoc: HoughLines(image, lines, rho, theta, threshold)
  1558. public static void HoughLines (Mat image, Mat lines, double rho, double theta, int threshold)
  1559. {
  1560. if (image != null) image.ThrowIfDisposed ();
  1561. if (lines != null) lines.ThrowIfDisposed ();
  1562. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1563. imgproc_Imgproc_HoughLines_14(image.nativeObj, lines.nativeObj, rho, theta, threshold);
  1564. return;
  1565. #else
  1566. return;
  1567. #endif
  1568. }
  1569. //
  1570. // C++: void cv::HoughLinesP(Mat image, Mat& lines, double rho, double theta, int threshold, double minLineLength = 0, double maxLineGap = 0)
  1571. //
  1572. //javadoc: HoughLinesP(image, lines, rho, theta, threshold, minLineLength, maxLineGap)
  1573. public static void HoughLinesP (Mat image, Mat lines, double rho, double theta, int threshold, double minLineLength, double maxLineGap)
  1574. {
  1575. if (image != null) image.ThrowIfDisposed ();
  1576. if (lines != null) lines.ThrowIfDisposed ();
  1577. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1578. imgproc_Imgproc_HoughLinesP_10(image.nativeObj, lines.nativeObj, rho, theta, threshold, minLineLength, maxLineGap);
  1579. return;
  1580. #else
  1581. return;
  1582. #endif
  1583. }
  1584. //javadoc: HoughLinesP(image, lines, rho, theta, threshold, minLineLength)
  1585. public static void HoughLinesP (Mat image, Mat lines, double rho, double theta, int threshold, double minLineLength)
  1586. {
  1587. if (image != null) image.ThrowIfDisposed ();
  1588. if (lines != null) lines.ThrowIfDisposed ();
  1589. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1590. imgproc_Imgproc_HoughLinesP_11(image.nativeObj, lines.nativeObj, rho, theta, threshold, minLineLength);
  1591. return;
  1592. #else
  1593. return;
  1594. #endif
  1595. }
  1596. //javadoc: HoughLinesP(image, lines, rho, theta, threshold)
  1597. public static void HoughLinesP (Mat image, Mat lines, double rho, double theta, int threshold)
  1598. {
  1599. if (image != null) image.ThrowIfDisposed ();
  1600. if (lines != null) lines.ThrowIfDisposed ();
  1601. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1602. imgproc_Imgproc_HoughLinesP_12(image.nativeObj, lines.nativeObj, rho, theta, threshold);
  1603. return;
  1604. #else
  1605. return;
  1606. #endif
  1607. }
  1608. //
  1609. // 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)
  1610. //
  1611. //javadoc: HoughLinesPointSet(_point, _lines, lines_max, threshold, min_rho, max_rho, rho_step, min_theta, max_theta, theta_step)
  1612. 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)
  1613. {
  1614. if (_point != null) _point.ThrowIfDisposed ();
  1615. if (_lines != null) _lines.ThrowIfDisposed ();
  1616. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1617. imgproc_Imgproc_HoughLinesPointSet_10(_point.nativeObj, _lines.nativeObj, lines_max, threshold, min_rho, max_rho, rho_step, min_theta, max_theta, theta_step);
  1618. return;
  1619. #else
  1620. return;
  1621. #endif
  1622. }
  1623. //
  1624. // C++: void cv::HuMoments(Moments m, Mat& hu)
  1625. //
  1626. //javadoc: HuMoments(m, hu)
  1627. public static void HuMoments (Moments m, Mat hu)
  1628. {
  1629. if (hu != null) hu.ThrowIfDisposed ();
  1630. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1631. 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);
  1632. return;
  1633. #else
  1634. return;
  1635. #endif
  1636. }
  1637. //
  1638. // C++: void cv::Laplacian(Mat src, Mat& dst, int ddepth, int ksize = 1, double scale = 1, double delta = 0, int borderType = BORDER_DEFAULT)
  1639. //
  1640. //javadoc: Laplacian(src, dst, ddepth, ksize, scale, delta, borderType)
  1641. public static void Laplacian (Mat src, Mat dst, int ddepth, int ksize, double scale, double delta, int borderType)
  1642. {
  1643. if (src != null) src.ThrowIfDisposed ();
  1644. if (dst != null) dst.ThrowIfDisposed ();
  1645. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1646. imgproc_Imgproc_Laplacian_10(src.nativeObj, dst.nativeObj, ddepth, ksize, scale, delta, borderType);
  1647. return;
  1648. #else
  1649. return;
  1650. #endif
  1651. }
  1652. //javadoc: Laplacian(src, dst, ddepth, ksize, scale, delta)
  1653. public static void Laplacian (Mat src, Mat dst, int ddepth, int ksize, double scale, double delta)
  1654. {
  1655. if (src != null) src.ThrowIfDisposed ();
  1656. if (dst != null) dst.ThrowIfDisposed ();
  1657. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1658. imgproc_Imgproc_Laplacian_11(src.nativeObj, dst.nativeObj, ddepth, ksize, scale, delta);
  1659. return;
  1660. #else
  1661. return;
  1662. #endif
  1663. }
  1664. //javadoc: Laplacian(src, dst, ddepth, ksize, scale)
  1665. public static void Laplacian (Mat src, Mat dst, int ddepth, int ksize, double scale)
  1666. {
  1667. if (src != null) src.ThrowIfDisposed ();
  1668. if (dst != null) dst.ThrowIfDisposed ();
  1669. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1670. imgproc_Imgproc_Laplacian_12(src.nativeObj, dst.nativeObj, ddepth, ksize, scale);
  1671. return;
  1672. #else
  1673. return;
  1674. #endif
  1675. }
  1676. //javadoc: Laplacian(src, dst, ddepth, ksize)
  1677. public static void Laplacian (Mat src, Mat dst, int ddepth, int ksize)
  1678. {
  1679. if (src != null) src.ThrowIfDisposed ();
  1680. if (dst != null) dst.ThrowIfDisposed ();
  1681. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1682. imgproc_Imgproc_Laplacian_13(src.nativeObj, dst.nativeObj, ddepth, ksize);
  1683. return;
  1684. #else
  1685. return;
  1686. #endif
  1687. }
  1688. //javadoc: Laplacian(src, dst, ddepth)
  1689. public static void Laplacian (Mat src, Mat dst, int ddepth)
  1690. {
  1691. if (src != null) src.ThrowIfDisposed ();
  1692. if (dst != null) dst.ThrowIfDisposed ();
  1693. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1694. imgproc_Imgproc_Laplacian_14(src.nativeObj, dst.nativeObj, ddepth);
  1695. return;
  1696. #else
  1697. return;
  1698. #endif
  1699. }
  1700. //
  1701. // C++: void cv::Scharr(Mat src, Mat& dst, int ddepth, int dx, int dy, double scale = 1, double delta = 0, int borderType = BORDER_DEFAULT)
  1702. //
  1703. //javadoc: Scharr(src, dst, ddepth, dx, dy, scale, delta, borderType)
  1704. public static void Scharr (Mat src, Mat dst, int ddepth, int dx, int dy, double scale, double delta, int borderType)
  1705. {
  1706. if (src != null) src.ThrowIfDisposed ();
  1707. if (dst != null) dst.ThrowIfDisposed ();
  1708. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1709. imgproc_Imgproc_Scharr_10(src.nativeObj, dst.nativeObj, ddepth, dx, dy, scale, delta, borderType);
  1710. return;
  1711. #else
  1712. return;
  1713. #endif
  1714. }
  1715. //javadoc: Scharr(src, dst, ddepth, dx, dy, scale, delta)
  1716. public static void Scharr (Mat src, Mat dst, int ddepth, int dx, int dy, double scale, double delta)
  1717. {
  1718. if (src != null) src.ThrowIfDisposed ();
  1719. if (dst != null) dst.ThrowIfDisposed ();
  1720. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1721. imgproc_Imgproc_Scharr_11(src.nativeObj, dst.nativeObj, ddepth, dx, dy, scale, delta);
  1722. return;
  1723. #else
  1724. return;
  1725. #endif
  1726. }
  1727. //javadoc: Scharr(src, dst, ddepth, dx, dy, scale)
  1728. public static void Scharr (Mat src, Mat dst, int ddepth, int dx, int dy, double scale)
  1729. {
  1730. if (src != null) src.ThrowIfDisposed ();
  1731. if (dst != null) dst.ThrowIfDisposed ();
  1732. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1733. imgproc_Imgproc_Scharr_12(src.nativeObj, dst.nativeObj, ddepth, dx, dy, scale);
  1734. return;
  1735. #else
  1736. return;
  1737. #endif
  1738. }
  1739. //javadoc: Scharr(src, dst, ddepth, dx, dy)
  1740. public static void Scharr (Mat src, Mat dst, int ddepth, int dx, int dy)
  1741. {
  1742. if (src != null) src.ThrowIfDisposed ();
  1743. if (dst != null) dst.ThrowIfDisposed ();
  1744. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1745. imgproc_Imgproc_Scharr_13(src.nativeObj, dst.nativeObj, ddepth, dx, dy);
  1746. return;
  1747. #else
  1748. return;
  1749. #endif
  1750. }
  1751. //
  1752. // 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)
  1753. //
  1754. //javadoc: Sobel(src, dst, ddepth, dx, dy, ksize, scale, delta, borderType)
  1755. public static void Sobel (Mat src, Mat dst, int ddepth, int dx, int dy, int ksize, double scale, double delta, int borderType)
  1756. {
  1757. if (src != null) src.ThrowIfDisposed ();
  1758. if (dst != null) dst.ThrowIfDisposed ();
  1759. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1760. imgproc_Imgproc_Sobel_10(src.nativeObj, dst.nativeObj, ddepth, dx, dy, ksize, scale, delta, borderType);
  1761. return;
  1762. #else
  1763. return;
  1764. #endif
  1765. }
  1766. //javadoc: Sobel(src, dst, ddepth, dx, dy, ksize, scale, delta)
  1767. public static void Sobel (Mat src, Mat dst, int ddepth, int dx, int dy, int ksize, double scale, double delta)
  1768. {
  1769. if (src != null) src.ThrowIfDisposed ();
  1770. if (dst != null) dst.ThrowIfDisposed ();
  1771. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1772. imgproc_Imgproc_Sobel_11(src.nativeObj, dst.nativeObj, ddepth, dx, dy, ksize, scale, delta);
  1773. return;
  1774. #else
  1775. return;
  1776. #endif
  1777. }
  1778. //javadoc: Sobel(src, dst, ddepth, dx, dy, ksize, scale)
  1779. public static void Sobel (Mat src, Mat dst, int ddepth, int dx, int dy, int ksize, double scale)
  1780. {
  1781. if (src != null) src.ThrowIfDisposed ();
  1782. if (dst != null) dst.ThrowIfDisposed ();
  1783. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1784. imgproc_Imgproc_Sobel_12(src.nativeObj, dst.nativeObj, ddepth, dx, dy, ksize, scale);
  1785. return;
  1786. #else
  1787. return;
  1788. #endif
  1789. }
  1790. //javadoc: Sobel(src, dst, ddepth, dx, dy, ksize)
  1791. public static void Sobel (Mat src, Mat dst, int ddepth, int dx, int dy, int ksize)
  1792. {
  1793. if (src != null) src.ThrowIfDisposed ();
  1794. if (dst != null) dst.ThrowIfDisposed ();
  1795. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1796. imgproc_Imgproc_Sobel_13(src.nativeObj, dst.nativeObj, ddepth, dx, dy, ksize);
  1797. return;
  1798. #else
  1799. return;
  1800. #endif
  1801. }
  1802. //javadoc: Sobel(src, dst, ddepth, dx, dy)
  1803. public static void Sobel (Mat src, Mat dst, int ddepth, int dx, int dy)
  1804. {
  1805. if (src != null) src.ThrowIfDisposed ();
  1806. if (dst != null) dst.ThrowIfDisposed ();
  1807. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1808. imgproc_Imgproc_Sobel_14(src.nativeObj, dst.nativeObj, ddepth, dx, dy);
  1809. return;
  1810. #else
  1811. return;
  1812. #endif
  1813. }
  1814. //
  1815. // C++: void cv::accumulate(Mat src, Mat& dst, Mat mask = Mat())
  1816. //
  1817. //javadoc: accumulate(src, dst, mask)
  1818. public static void accumulate (Mat src, Mat dst, Mat mask)
  1819. {
  1820. if (src != null) src.ThrowIfDisposed ();
  1821. if (dst != null) dst.ThrowIfDisposed ();
  1822. if (mask != null) mask.ThrowIfDisposed ();
  1823. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1824. imgproc_Imgproc_accumulate_10(src.nativeObj, dst.nativeObj, mask.nativeObj);
  1825. return;
  1826. #else
  1827. return;
  1828. #endif
  1829. }
  1830. //javadoc: accumulate(src, dst)
  1831. public static void accumulate (Mat src, Mat dst)
  1832. {
  1833. if (src != null) src.ThrowIfDisposed ();
  1834. if (dst != null) dst.ThrowIfDisposed ();
  1835. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1836. imgproc_Imgproc_accumulate_11(src.nativeObj, dst.nativeObj);
  1837. return;
  1838. #else
  1839. return;
  1840. #endif
  1841. }
  1842. //
  1843. // C++: void cv::accumulateProduct(Mat src1, Mat src2, Mat& dst, Mat mask = Mat())
  1844. //
  1845. //javadoc: accumulateProduct(src1, src2, dst, mask)
  1846. public static void accumulateProduct (Mat src1, Mat src2, Mat dst, Mat mask)
  1847. {
  1848. if (src1 != null) src1.ThrowIfDisposed ();
  1849. if (src2 != null) src2.ThrowIfDisposed ();
  1850. if (dst != null) dst.ThrowIfDisposed ();
  1851. if (mask != null) mask.ThrowIfDisposed ();
  1852. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1853. imgproc_Imgproc_accumulateProduct_10(src1.nativeObj, src2.nativeObj, dst.nativeObj, mask.nativeObj);
  1854. return;
  1855. #else
  1856. return;
  1857. #endif
  1858. }
  1859. //javadoc: accumulateProduct(src1, src2, dst)
  1860. public static void accumulateProduct (Mat src1, Mat src2, Mat dst)
  1861. {
  1862. if (src1 != null) src1.ThrowIfDisposed ();
  1863. if (src2 != null) src2.ThrowIfDisposed ();
  1864. if (dst != null) dst.ThrowIfDisposed ();
  1865. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1866. imgproc_Imgproc_accumulateProduct_11(src1.nativeObj, src2.nativeObj, dst.nativeObj);
  1867. return;
  1868. #else
  1869. return;
  1870. #endif
  1871. }
  1872. //
  1873. // C++: void cv::accumulateSquare(Mat src, Mat& dst, Mat mask = Mat())
  1874. //
  1875. //javadoc: accumulateSquare(src, dst, mask)
  1876. public static void accumulateSquare (Mat src, Mat dst, Mat mask)
  1877. {
  1878. if (src != null) src.ThrowIfDisposed ();
  1879. if (dst != null) dst.ThrowIfDisposed ();
  1880. if (mask != null) mask.ThrowIfDisposed ();
  1881. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1882. imgproc_Imgproc_accumulateSquare_10(src.nativeObj, dst.nativeObj, mask.nativeObj);
  1883. return;
  1884. #else
  1885. return;
  1886. #endif
  1887. }
  1888. //javadoc: accumulateSquare(src, dst)
  1889. public static void accumulateSquare (Mat src, Mat dst)
  1890. {
  1891. if (src != null) src.ThrowIfDisposed ();
  1892. if (dst != null) dst.ThrowIfDisposed ();
  1893. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1894. imgproc_Imgproc_accumulateSquare_11(src.nativeObj, dst.nativeObj);
  1895. return;
  1896. #else
  1897. return;
  1898. #endif
  1899. }
  1900. //
  1901. // C++: void cv::accumulateWeighted(Mat src, Mat& dst, double alpha, Mat mask = Mat())
  1902. //
  1903. //javadoc: accumulateWeighted(src, dst, alpha, mask)
  1904. public static void accumulateWeighted (Mat src, Mat dst, double alpha, Mat mask)
  1905. {
  1906. if (src != null) src.ThrowIfDisposed ();
  1907. if (dst != null) dst.ThrowIfDisposed ();
  1908. if (mask != null) mask.ThrowIfDisposed ();
  1909. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1910. imgproc_Imgproc_accumulateWeighted_10(src.nativeObj, dst.nativeObj, alpha, mask.nativeObj);
  1911. return;
  1912. #else
  1913. return;
  1914. #endif
  1915. }
  1916. //javadoc: accumulateWeighted(src, dst, alpha)
  1917. public static void accumulateWeighted (Mat src, Mat dst, double alpha)
  1918. {
  1919. if (src != null) src.ThrowIfDisposed ();
  1920. if (dst != null) dst.ThrowIfDisposed ();
  1921. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1922. imgproc_Imgproc_accumulateWeighted_11(src.nativeObj, dst.nativeObj, alpha);
  1923. return;
  1924. #else
  1925. return;
  1926. #endif
  1927. }
  1928. //
  1929. // C++: void cv::adaptiveThreshold(Mat src, Mat& dst, double maxValue, int adaptiveMethod, int thresholdType, int blockSize, double C)
  1930. //
  1931. //javadoc: adaptiveThreshold(src, dst, maxValue, adaptiveMethod, thresholdType, blockSize, C)
  1932. public static void adaptiveThreshold (Mat src, Mat dst, double maxValue, int adaptiveMethod, int thresholdType, int blockSize, double C)
  1933. {
  1934. if (src != null) src.ThrowIfDisposed ();
  1935. if (dst != null) dst.ThrowIfDisposed ();
  1936. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1937. imgproc_Imgproc_adaptiveThreshold_10(src.nativeObj, dst.nativeObj, maxValue, adaptiveMethod, thresholdType, blockSize, C);
  1938. return;
  1939. #else
  1940. return;
  1941. #endif
  1942. }
  1943. //
  1944. // C++: void cv::applyColorMap(Mat src, Mat& dst, Mat userColor)
  1945. //
  1946. //javadoc: applyColorMap(src, dst, userColor)
  1947. public static void applyColorMap (Mat src, Mat dst, Mat userColor)
  1948. {
  1949. if (src != null) src.ThrowIfDisposed ();
  1950. if (dst != null) dst.ThrowIfDisposed ();
  1951. if (userColor != null) userColor.ThrowIfDisposed ();
  1952. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1953. imgproc_Imgproc_applyColorMap_10(src.nativeObj, dst.nativeObj, userColor.nativeObj);
  1954. return;
  1955. #else
  1956. return;
  1957. #endif
  1958. }
  1959. //
  1960. // C++: void cv::applyColorMap(Mat src, Mat& dst, int colormap)
  1961. //
  1962. //javadoc: applyColorMap(src, dst, colormap)
  1963. public static void applyColorMap (Mat src, Mat dst, int colormap)
  1964. {
  1965. if (src != null) src.ThrowIfDisposed ();
  1966. if (dst != null) dst.ThrowIfDisposed ();
  1967. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1968. imgproc_Imgproc_applyColorMap_11(src.nativeObj, dst.nativeObj, colormap);
  1969. return;
  1970. #else
  1971. return;
  1972. #endif
  1973. }
  1974. //
  1975. // C++: void cv::approxPolyDP(vector_Point2f curve, vector_Point2f& approxCurve, double epsilon, bool closed)
  1976. //
  1977. //javadoc: approxPolyDP(curve, approxCurve, epsilon, closed)
  1978. public static void approxPolyDP (MatOfPoint2f curve, MatOfPoint2f approxCurve, double epsilon, bool closed)
  1979. {
  1980. if (curve != null) curve.ThrowIfDisposed ();
  1981. if (approxCurve != null) approxCurve.ThrowIfDisposed ();
  1982. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1983. Mat curve_mat = curve;
  1984. Mat approxCurve_mat = approxCurve;
  1985. imgproc_Imgproc_approxPolyDP_10(curve_mat.nativeObj, approxCurve_mat.nativeObj, epsilon, closed);
  1986. return;
  1987. #else
  1988. return;
  1989. #endif
  1990. }
  1991. //
  1992. // 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)
  1993. //
  1994. //javadoc: arrowedLine(img, pt1, pt2, color, thickness, line_type, shift, tipLength)
  1995. public static void arrowedLine (Mat img, Point pt1, Point pt2, Scalar color, int thickness, int line_type, int shift, double tipLength)
  1996. {
  1997. if (img != null) img.ThrowIfDisposed ();
  1998. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  1999. 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);
  2000. return;
  2001. #else
  2002. return;
  2003. #endif
  2004. }
  2005. //javadoc: arrowedLine(img, pt1, pt2, color, thickness, line_type, shift)
  2006. public static void arrowedLine (Mat img, Point pt1, Point pt2, Scalar color, int thickness, int line_type, int shift)
  2007. {
  2008. if (img != null) img.ThrowIfDisposed ();
  2009. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2010. 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);
  2011. return;
  2012. #else
  2013. return;
  2014. #endif
  2015. }
  2016. //javadoc: arrowedLine(img, pt1, pt2, color, thickness, line_type)
  2017. public static void arrowedLine (Mat img, Point pt1, Point pt2, Scalar color, int thickness, int line_type)
  2018. {
  2019. if (img != null) img.ThrowIfDisposed ();
  2020. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2021. 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);
  2022. return;
  2023. #else
  2024. return;
  2025. #endif
  2026. }
  2027. //javadoc: arrowedLine(img, pt1, pt2, color, thickness)
  2028. public static void arrowedLine (Mat img, Point pt1, Point pt2, Scalar color, int thickness)
  2029. {
  2030. if (img != null) img.ThrowIfDisposed ();
  2031. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2032. 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);
  2033. return;
  2034. #else
  2035. return;
  2036. #endif
  2037. }
  2038. //javadoc: arrowedLine(img, pt1, pt2, color)
  2039. public static void arrowedLine (Mat img, Point pt1, Point pt2, Scalar color)
  2040. {
  2041. if (img != null) img.ThrowIfDisposed ();
  2042. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2043. 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]);
  2044. return;
  2045. #else
  2046. return;
  2047. #endif
  2048. }
  2049. //
  2050. // C++: void cv::bilateralFilter(Mat src, Mat& dst, int d, double sigmaColor, double sigmaSpace, int borderType = BORDER_DEFAULT)
  2051. //
  2052. //javadoc: bilateralFilter(src, dst, d, sigmaColor, sigmaSpace, borderType)
  2053. public static void bilateralFilter (Mat src, Mat dst, int d, double sigmaColor, double sigmaSpace, int borderType)
  2054. {
  2055. if (src != null) src.ThrowIfDisposed ();
  2056. if (dst != null) dst.ThrowIfDisposed ();
  2057. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2058. imgproc_Imgproc_bilateralFilter_10(src.nativeObj, dst.nativeObj, d, sigmaColor, sigmaSpace, borderType);
  2059. return;
  2060. #else
  2061. return;
  2062. #endif
  2063. }
  2064. //javadoc: bilateralFilter(src, dst, d, sigmaColor, sigmaSpace)
  2065. public static void bilateralFilter (Mat src, Mat dst, int d, double sigmaColor, double sigmaSpace)
  2066. {
  2067. if (src != null) src.ThrowIfDisposed ();
  2068. if (dst != null) dst.ThrowIfDisposed ();
  2069. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2070. imgproc_Imgproc_bilateralFilter_11(src.nativeObj, dst.nativeObj, d, sigmaColor, sigmaSpace);
  2071. return;
  2072. #else
  2073. return;
  2074. #endif
  2075. }
  2076. //
  2077. // C++: void cv::blur(Mat src, Mat& dst, Size ksize, Point anchor = Point(-1,-1), int borderType = BORDER_DEFAULT)
  2078. //
  2079. //javadoc: blur(src, dst, ksize, anchor, borderType)
  2080. public static void blur (Mat src, Mat dst, Size ksize, Point anchor, int borderType)
  2081. {
  2082. if (src != null) src.ThrowIfDisposed ();
  2083. if (dst != null) dst.ThrowIfDisposed ();
  2084. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2085. imgproc_Imgproc_blur_10(src.nativeObj, dst.nativeObj, ksize.width, ksize.height, anchor.x, anchor.y, borderType);
  2086. return;
  2087. #else
  2088. return;
  2089. #endif
  2090. }
  2091. //javadoc: blur(src, dst, ksize, anchor)
  2092. public static void blur (Mat src, Mat dst, Size ksize, Point anchor)
  2093. {
  2094. if (src != null) src.ThrowIfDisposed ();
  2095. if (dst != null) dst.ThrowIfDisposed ();
  2096. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2097. imgproc_Imgproc_blur_11(src.nativeObj, dst.nativeObj, ksize.width, ksize.height, anchor.x, anchor.y);
  2098. return;
  2099. #else
  2100. return;
  2101. #endif
  2102. }
  2103. //javadoc: blur(src, dst, ksize)
  2104. public static void blur (Mat src, Mat dst, Size ksize)
  2105. {
  2106. if (src != null) src.ThrowIfDisposed ();
  2107. if (dst != null) dst.ThrowIfDisposed ();
  2108. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2109. imgproc_Imgproc_blur_12(src.nativeObj, dst.nativeObj, ksize.width, ksize.height);
  2110. return;
  2111. #else
  2112. return;
  2113. #endif
  2114. }
  2115. //
  2116. // C++: void cv::boxFilter(Mat src, Mat& dst, int ddepth, Size ksize, Point anchor = Point(-1,-1), bool normalize = true, int borderType = BORDER_DEFAULT)
  2117. //
  2118. //javadoc: boxFilter(src, dst, ddepth, ksize, anchor, normalize, borderType)
  2119. public static void boxFilter (Mat src, Mat dst, int ddepth, Size ksize, Point anchor, bool normalize, int borderType)
  2120. {
  2121. if (src != null) src.ThrowIfDisposed ();
  2122. if (dst != null) dst.ThrowIfDisposed ();
  2123. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2124. imgproc_Imgproc_boxFilter_10(src.nativeObj, dst.nativeObj, ddepth, ksize.width, ksize.height, anchor.x, anchor.y, normalize, borderType);
  2125. return;
  2126. #else
  2127. return;
  2128. #endif
  2129. }
  2130. //javadoc: boxFilter(src, dst, ddepth, ksize, anchor, normalize)
  2131. public static void boxFilter (Mat src, Mat dst, int ddepth, Size ksize, Point anchor, bool normalize)
  2132. {
  2133. if (src != null) src.ThrowIfDisposed ();
  2134. if (dst != null) dst.ThrowIfDisposed ();
  2135. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2136. imgproc_Imgproc_boxFilter_11(src.nativeObj, dst.nativeObj, ddepth, ksize.width, ksize.height, anchor.x, anchor.y, normalize);
  2137. return;
  2138. #else
  2139. return;
  2140. #endif
  2141. }
  2142. //javadoc: boxFilter(src, dst, ddepth, ksize, anchor)
  2143. public static void boxFilter (Mat src, Mat dst, int ddepth, Size ksize, Point anchor)
  2144. {
  2145. if (src != null) src.ThrowIfDisposed ();
  2146. if (dst != null) dst.ThrowIfDisposed ();
  2147. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2148. imgproc_Imgproc_boxFilter_12(src.nativeObj, dst.nativeObj, ddepth, ksize.width, ksize.height, anchor.x, anchor.y);
  2149. return;
  2150. #else
  2151. return;
  2152. #endif
  2153. }
  2154. //javadoc: boxFilter(src, dst, ddepth, ksize)
  2155. public static void boxFilter (Mat src, Mat dst, int ddepth, Size ksize)
  2156. {
  2157. if (src != null) src.ThrowIfDisposed ();
  2158. if (dst != null) dst.ThrowIfDisposed ();
  2159. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2160. imgproc_Imgproc_boxFilter_13(src.nativeObj, dst.nativeObj, ddepth, ksize.width, ksize.height);
  2161. return;
  2162. #else
  2163. return;
  2164. #endif
  2165. }
  2166. //
  2167. // C++: void cv::boxPoints(RotatedRect box, Mat& points)
  2168. //
  2169. //javadoc: boxPoints(box, points)
  2170. public static void boxPoints (RotatedRect box, Mat points)
  2171. {
  2172. if (points != null) points.ThrowIfDisposed ();
  2173. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2174. imgproc_Imgproc_boxPoints_10(box.center.x, box.center.y, box.size.width, box.size.height, box.angle, points.nativeObj);
  2175. return;
  2176. #else
  2177. return;
  2178. #endif
  2179. }
  2180. //
  2181. // C++: void cv::calcBackProject(vector_Mat images, vector_int channels, Mat hist, Mat& dst, vector_float ranges, double scale)
  2182. //
  2183. //javadoc: calcBackProject(images, channels, hist, dst, ranges, scale)
  2184. public static void calcBackProject (List<Mat> images, MatOfInt channels, Mat hist, Mat dst, MatOfFloat ranges, double scale)
  2185. {
  2186. if (channels != null) channels.ThrowIfDisposed ();
  2187. if (hist != null) hist.ThrowIfDisposed ();
  2188. if (dst != null) dst.ThrowIfDisposed ();
  2189. if (ranges != null) ranges.ThrowIfDisposed ();
  2190. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2191. Mat images_mat = Converters.vector_Mat_to_Mat(images);
  2192. Mat channels_mat = channels;
  2193. Mat ranges_mat = ranges;
  2194. imgproc_Imgproc_calcBackProject_10(images_mat.nativeObj, channels_mat.nativeObj, hist.nativeObj, dst.nativeObj, ranges_mat.nativeObj, scale);
  2195. return;
  2196. #else
  2197. return;
  2198. #endif
  2199. }
  2200. //
  2201. // C++: void cv::calcHist(vector_Mat images, vector_int channels, Mat mask, Mat& hist, vector_int histSize, vector_float ranges, bool accumulate = false)
  2202. //
  2203. //javadoc: calcHist(images, channels, mask, hist, histSize, ranges, accumulate)
  2204. public static void calcHist (List<Mat> images, MatOfInt channels, Mat mask, Mat hist, MatOfInt histSize, MatOfFloat ranges, bool accumulate)
  2205. {
  2206. if (channels != null) channels.ThrowIfDisposed ();
  2207. if (mask != null) mask.ThrowIfDisposed ();
  2208. if (hist != null) hist.ThrowIfDisposed ();
  2209. if (histSize != null) histSize.ThrowIfDisposed ();
  2210. if (ranges != null) ranges.ThrowIfDisposed ();
  2211. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2212. Mat images_mat = Converters.vector_Mat_to_Mat(images);
  2213. Mat channels_mat = channels;
  2214. Mat histSize_mat = histSize;
  2215. Mat ranges_mat = ranges;
  2216. imgproc_Imgproc_calcHist_10(images_mat.nativeObj, channels_mat.nativeObj, mask.nativeObj, hist.nativeObj, histSize_mat.nativeObj, ranges_mat.nativeObj, accumulate);
  2217. return;
  2218. #else
  2219. return;
  2220. #endif
  2221. }
  2222. //javadoc: calcHist(images, channels, mask, hist, histSize, ranges)
  2223. public static void calcHist (List<Mat> images, MatOfInt channels, Mat mask, Mat hist, MatOfInt histSize, MatOfFloat ranges)
  2224. {
  2225. if (channels != null) channels.ThrowIfDisposed ();
  2226. if (mask != null) mask.ThrowIfDisposed ();
  2227. if (hist != null) hist.ThrowIfDisposed ();
  2228. if (histSize != null) histSize.ThrowIfDisposed ();
  2229. if (ranges != null) ranges.ThrowIfDisposed ();
  2230. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2231. Mat images_mat = Converters.vector_Mat_to_Mat(images);
  2232. Mat channels_mat = channels;
  2233. Mat histSize_mat = histSize;
  2234. Mat ranges_mat = ranges;
  2235. imgproc_Imgproc_calcHist_11(images_mat.nativeObj, channels_mat.nativeObj, mask.nativeObj, hist.nativeObj, histSize_mat.nativeObj, ranges_mat.nativeObj);
  2236. return;
  2237. #else
  2238. return;
  2239. #endif
  2240. }
  2241. //
  2242. // C++: void cv::circle(Mat& img, Point center, int radius, Scalar color, int thickness = 1, int lineType = LINE_8, int shift = 0)
  2243. //
  2244. //javadoc: circle(img, center, radius, color, thickness, lineType, shift)
  2245. public static void circle (Mat img, Point center, int radius, Scalar color, int thickness, int lineType, int shift)
  2246. {
  2247. if (img != null) img.ThrowIfDisposed ();
  2248. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2249. 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);
  2250. return;
  2251. #else
  2252. return;
  2253. #endif
  2254. }
  2255. //javadoc: circle(img, center, radius, color, thickness, lineType)
  2256. public static void circle (Mat img, Point center, int radius, Scalar color, int thickness, int lineType)
  2257. {
  2258. if (img != null) img.ThrowIfDisposed ();
  2259. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2260. 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);
  2261. return;
  2262. #else
  2263. return;
  2264. #endif
  2265. }
  2266. //javadoc: circle(img, center, radius, color, thickness)
  2267. public static void circle (Mat img, Point center, int radius, Scalar color, int thickness)
  2268. {
  2269. if (img != null) img.ThrowIfDisposed ();
  2270. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2271. imgproc_Imgproc_circle_12(img.nativeObj, center.x, center.y, radius, color.val[0], color.val[1], color.val[2], color.val[3], thickness);
  2272. return;
  2273. #else
  2274. return;
  2275. #endif
  2276. }
  2277. //javadoc: circle(img, center, radius, color)
  2278. public static void circle (Mat img, Point center, int radius, Scalar color)
  2279. {
  2280. if (img != null) img.ThrowIfDisposed ();
  2281. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2282. imgproc_Imgproc_circle_13(img.nativeObj, center.x, center.y, radius, color.val[0], color.val[1], color.val[2], color.val[3]);
  2283. return;
  2284. #else
  2285. return;
  2286. #endif
  2287. }
  2288. //
  2289. // C++: void cv::convertMaps(Mat map1, Mat map2, Mat& dstmap1, Mat& dstmap2, int dstmap1type, bool nninterpolation = false)
  2290. //
  2291. //javadoc: convertMaps(map1, map2, dstmap1, dstmap2, dstmap1type, nninterpolation)
  2292. public static void convertMaps (Mat map1, Mat map2, Mat dstmap1, Mat dstmap2, int dstmap1type, bool nninterpolation)
  2293. {
  2294. if (map1 != null) map1.ThrowIfDisposed ();
  2295. if (map2 != null) map2.ThrowIfDisposed ();
  2296. if (dstmap1 != null) dstmap1.ThrowIfDisposed ();
  2297. if (dstmap2 != null) dstmap2.ThrowIfDisposed ();
  2298. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2299. imgproc_Imgproc_convertMaps_10(map1.nativeObj, map2.nativeObj, dstmap1.nativeObj, dstmap2.nativeObj, dstmap1type, nninterpolation);
  2300. return;
  2301. #else
  2302. return;
  2303. #endif
  2304. }
  2305. //javadoc: convertMaps(map1, map2, dstmap1, dstmap2, dstmap1type)
  2306. public static void convertMaps (Mat map1, Mat map2, Mat dstmap1, Mat dstmap2, int dstmap1type)
  2307. {
  2308. if (map1 != null) map1.ThrowIfDisposed ();
  2309. if (map2 != null) map2.ThrowIfDisposed ();
  2310. if (dstmap1 != null) dstmap1.ThrowIfDisposed ();
  2311. if (dstmap2 != null) dstmap2.ThrowIfDisposed ();
  2312. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2313. imgproc_Imgproc_convertMaps_11(map1.nativeObj, map2.nativeObj, dstmap1.nativeObj, dstmap2.nativeObj, dstmap1type);
  2314. return;
  2315. #else
  2316. return;
  2317. #endif
  2318. }
  2319. //
  2320. // C++: void cv::convexHull(vector_Point points, vector_int& hull, bool clockwise = false, _hidden_ returnPoints = true)
  2321. //
  2322. //javadoc: convexHull(points, hull, clockwise)
  2323. public static void convexHull (MatOfPoint points, MatOfInt hull, bool clockwise)
  2324. {
  2325. if (points != null) points.ThrowIfDisposed ();
  2326. if (hull != null) hull.ThrowIfDisposed ();
  2327. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2328. Mat points_mat = points;
  2329. Mat hull_mat = hull;
  2330. imgproc_Imgproc_convexHull_10(points_mat.nativeObj, hull_mat.nativeObj, clockwise);
  2331. return;
  2332. #else
  2333. return;
  2334. #endif
  2335. }
  2336. //javadoc: convexHull(points, hull)
  2337. public static void convexHull (MatOfPoint points, MatOfInt hull)
  2338. {
  2339. if (points != null) points.ThrowIfDisposed ();
  2340. if (hull != null) hull.ThrowIfDisposed ();
  2341. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2342. Mat points_mat = points;
  2343. Mat hull_mat = hull;
  2344. imgproc_Imgproc_convexHull_12(points_mat.nativeObj, hull_mat.nativeObj);
  2345. return;
  2346. #else
  2347. return;
  2348. #endif
  2349. }
  2350. //
  2351. // C++: void cv::convexityDefects(vector_Point contour, vector_int convexhull, vector_Vec4i& convexityDefects)
  2352. //
  2353. //javadoc: convexityDefects(contour, convexhull, convexityDefects)
  2354. public static void convexityDefects (MatOfPoint contour, MatOfInt convexhull, MatOfInt4 convexityDefects)
  2355. {
  2356. if (contour != null) contour.ThrowIfDisposed ();
  2357. if (convexhull != null) convexhull.ThrowIfDisposed ();
  2358. if (convexityDefects != null) convexityDefects.ThrowIfDisposed ();
  2359. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2360. Mat contour_mat = contour;
  2361. Mat convexhull_mat = convexhull;
  2362. Mat convexityDefects_mat = convexityDefects;
  2363. imgproc_Imgproc_convexityDefects_10(contour_mat.nativeObj, convexhull_mat.nativeObj, convexityDefects_mat.nativeObj);
  2364. return;
  2365. #else
  2366. return;
  2367. #endif
  2368. }
  2369. //
  2370. // C++: void cv::cornerEigenValsAndVecs(Mat src, Mat& dst, int blockSize, int ksize, int borderType = BORDER_DEFAULT)
  2371. //
  2372. //javadoc: cornerEigenValsAndVecs(src, dst, blockSize, ksize, borderType)
  2373. public static void cornerEigenValsAndVecs (Mat src, Mat dst, int blockSize, int ksize, int borderType)
  2374. {
  2375. if (src != null) src.ThrowIfDisposed ();
  2376. if (dst != null) dst.ThrowIfDisposed ();
  2377. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2378. imgproc_Imgproc_cornerEigenValsAndVecs_10(src.nativeObj, dst.nativeObj, blockSize, ksize, borderType);
  2379. return;
  2380. #else
  2381. return;
  2382. #endif
  2383. }
  2384. //javadoc: cornerEigenValsAndVecs(src, dst, blockSize, ksize)
  2385. public static void cornerEigenValsAndVecs (Mat src, Mat dst, int blockSize, int ksize)
  2386. {
  2387. if (src != null) src.ThrowIfDisposed ();
  2388. if (dst != null) dst.ThrowIfDisposed ();
  2389. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2390. imgproc_Imgproc_cornerEigenValsAndVecs_11(src.nativeObj, dst.nativeObj, blockSize, ksize);
  2391. return;
  2392. #else
  2393. return;
  2394. #endif
  2395. }
  2396. //
  2397. // C++: void cv::cornerHarris(Mat src, Mat& dst, int blockSize, int ksize, double k, int borderType = BORDER_DEFAULT)
  2398. //
  2399. //javadoc: cornerHarris(src, dst, blockSize, ksize, k, borderType)
  2400. public static void cornerHarris (Mat src, Mat dst, int blockSize, int ksize, double k, int borderType)
  2401. {
  2402. if (src != null) src.ThrowIfDisposed ();
  2403. if (dst != null) dst.ThrowIfDisposed ();
  2404. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2405. imgproc_Imgproc_cornerHarris_10(src.nativeObj, dst.nativeObj, blockSize, ksize, k, borderType);
  2406. return;
  2407. #else
  2408. return;
  2409. #endif
  2410. }
  2411. //javadoc: cornerHarris(src, dst, blockSize, ksize, k)
  2412. public static void cornerHarris (Mat src, Mat dst, int blockSize, int ksize, double k)
  2413. {
  2414. if (src != null) src.ThrowIfDisposed ();
  2415. if (dst != null) dst.ThrowIfDisposed ();
  2416. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2417. imgproc_Imgproc_cornerHarris_11(src.nativeObj, dst.nativeObj, blockSize, ksize, k);
  2418. return;
  2419. #else
  2420. return;
  2421. #endif
  2422. }
  2423. //
  2424. // C++: void cv::cornerMinEigenVal(Mat src, Mat& dst, int blockSize, int ksize = 3, int borderType = BORDER_DEFAULT)
  2425. //
  2426. //javadoc: cornerMinEigenVal(src, dst, blockSize, ksize, borderType)
  2427. public static void cornerMinEigenVal (Mat src, Mat dst, int blockSize, int ksize, int borderType)
  2428. {
  2429. if (src != null) src.ThrowIfDisposed ();
  2430. if (dst != null) dst.ThrowIfDisposed ();
  2431. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2432. imgproc_Imgproc_cornerMinEigenVal_10(src.nativeObj, dst.nativeObj, blockSize, ksize, borderType);
  2433. return;
  2434. #else
  2435. return;
  2436. #endif
  2437. }
  2438. //javadoc: cornerMinEigenVal(src, dst, blockSize, ksize)
  2439. public static void cornerMinEigenVal (Mat src, Mat dst, int blockSize, int ksize)
  2440. {
  2441. if (src != null) src.ThrowIfDisposed ();
  2442. if (dst != null) dst.ThrowIfDisposed ();
  2443. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2444. imgproc_Imgproc_cornerMinEigenVal_11(src.nativeObj, dst.nativeObj, blockSize, ksize);
  2445. return;
  2446. #else
  2447. return;
  2448. #endif
  2449. }
  2450. //javadoc: cornerMinEigenVal(src, dst, blockSize)
  2451. public static void cornerMinEigenVal (Mat src, Mat dst, int blockSize)
  2452. {
  2453. if (src != null) src.ThrowIfDisposed ();
  2454. if (dst != null) dst.ThrowIfDisposed ();
  2455. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2456. imgproc_Imgproc_cornerMinEigenVal_12(src.nativeObj, dst.nativeObj, blockSize);
  2457. return;
  2458. #else
  2459. return;
  2460. #endif
  2461. }
  2462. //
  2463. // C++: void cv::cornerSubPix(Mat image, Mat& corners, Size winSize, Size zeroZone, TermCriteria criteria)
  2464. //
  2465. //javadoc: cornerSubPix(image, corners, winSize, zeroZone, criteria)
  2466. public static void cornerSubPix (Mat image, Mat corners, Size winSize, Size zeroZone, TermCriteria criteria)
  2467. {
  2468. if (image != null) image.ThrowIfDisposed ();
  2469. if (corners != null) corners.ThrowIfDisposed ();
  2470. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2471. imgproc_Imgproc_cornerSubPix_10(image.nativeObj, corners.nativeObj, winSize.width, winSize.height, zeroZone.width, zeroZone.height, criteria.type, criteria.maxCount, criteria.epsilon);
  2472. return;
  2473. #else
  2474. return;
  2475. #endif
  2476. }
  2477. //
  2478. // C++: void cv::createHanningWindow(Mat& dst, Size winSize, int type)
  2479. //
  2480. //javadoc: createHanningWindow(dst, winSize, type)
  2481. public static void createHanningWindow (Mat dst, Size winSize, int type)
  2482. {
  2483. if (dst != null) dst.ThrowIfDisposed ();
  2484. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2485. imgproc_Imgproc_createHanningWindow_10(dst.nativeObj, winSize.width, winSize.height, type);
  2486. return;
  2487. #else
  2488. return;
  2489. #endif
  2490. }
  2491. //
  2492. // C++: void cv::cvtColor(Mat src, Mat& dst, int code, int dstCn = 0)
  2493. //
  2494. //javadoc: cvtColor(src, dst, code, dstCn)
  2495. public static void cvtColor (Mat src, Mat dst, int code, int dstCn)
  2496. {
  2497. if (src != null) src.ThrowIfDisposed ();
  2498. if (dst != null) dst.ThrowIfDisposed ();
  2499. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2500. imgproc_Imgproc_cvtColor_10(src.nativeObj, dst.nativeObj, code, dstCn);
  2501. return;
  2502. #else
  2503. return;
  2504. #endif
  2505. }
  2506. //javadoc: cvtColor(src, dst, code)
  2507. public static void cvtColor (Mat src, Mat dst, int code)
  2508. {
  2509. if (src != null) src.ThrowIfDisposed ();
  2510. if (dst != null) dst.ThrowIfDisposed ();
  2511. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2512. imgproc_Imgproc_cvtColor_11(src.nativeObj, dst.nativeObj, code);
  2513. return;
  2514. #else
  2515. return;
  2516. #endif
  2517. }
  2518. //
  2519. // C++: void cv::cvtColorTwoPlane(Mat src1, Mat src2, Mat& dst, int code)
  2520. //
  2521. //javadoc: cvtColorTwoPlane(src1, src2, dst, code)
  2522. public static void cvtColorTwoPlane (Mat src1, Mat src2, Mat dst, int code)
  2523. {
  2524. if (src1 != null) src1.ThrowIfDisposed ();
  2525. if (src2 != null) src2.ThrowIfDisposed ();
  2526. if (dst != null) dst.ThrowIfDisposed ();
  2527. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2528. imgproc_Imgproc_cvtColorTwoPlane_10(src1.nativeObj, src2.nativeObj, dst.nativeObj, code);
  2529. return;
  2530. #else
  2531. return;
  2532. #endif
  2533. }
  2534. //
  2535. // C++: void cv::demosaicing(Mat src, Mat& dst, int code, int dstCn = 0)
  2536. //
  2537. //javadoc: demosaicing(src, dst, code, dstCn)
  2538. public static void demosaicing (Mat src, Mat dst, int code, int dstCn)
  2539. {
  2540. if (src != null) src.ThrowIfDisposed ();
  2541. if (dst != null) dst.ThrowIfDisposed ();
  2542. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2543. imgproc_Imgproc_demosaicing_10(src.nativeObj, dst.nativeObj, code, dstCn);
  2544. return;
  2545. #else
  2546. return;
  2547. #endif
  2548. }
  2549. //javadoc: demosaicing(src, dst, code)
  2550. public static void demosaicing (Mat src, Mat dst, int code)
  2551. {
  2552. if (src != null) src.ThrowIfDisposed ();
  2553. if (dst != null) dst.ThrowIfDisposed ();
  2554. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2555. imgproc_Imgproc_demosaicing_11(src.nativeObj, dst.nativeObj, code);
  2556. return;
  2557. #else
  2558. return;
  2559. #endif
  2560. }
  2561. //
  2562. // 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())
  2563. //
  2564. //javadoc: dilate(src, dst, kernel, anchor, iterations, borderType, borderValue)
  2565. public static void dilate (Mat src, Mat dst, Mat kernel, Point anchor, int iterations, int borderType, Scalar borderValue)
  2566. {
  2567. if (src != null) src.ThrowIfDisposed ();
  2568. if (dst != null) dst.ThrowIfDisposed ();
  2569. if (kernel != null) kernel.ThrowIfDisposed ();
  2570. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2571. 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]);
  2572. return;
  2573. #else
  2574. return;
  2575. #endif
  2576. }
  2577. //javadoc: dilate(src, dst, kernel, anchor, iterations, borderType)
  2578. public static void dilate (Mat src, Mat dst, Mat kernel, Point anchor, int iterations, int borderType)
  2579. {
  2580. if (src != null) src.ThrowIfDisposed ();
  2581. if (dst != null) dst.ThrowIfDisposed ();
  2582. if (kernel != null) kernel.ThrowIfDisposed ();
  2583. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2584. imgproc_Imgproc_dilate_11(src.nativeObj, dst.nativeObj, kernel.nativeObj, anchor.x, anchor.y, iterations, borderType);
  2585. return;
  2586. #else
  2587. return;
  2588. #endif
  2589. }
  2590. //javadoc: dilate(src, dst, kernel, anchor, iterations)
  2591. public static void dilate (Mat src, Mat dst, Mat kernel, Point anchor, int iterations)
  2592. {
  2593. if (src != null) src.ThrowIfDisposed ();
  2594. if (dst != null) dst.ThrowIfDisposed ();
  2595. if (kernel != null) kernel.ThrowIfDisposed ();
  2596. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2597. imgproc_Imgproc_dilate_12(src.nativeObj, dst.nativeObj, kernel.nativeObj, anchor.x, anchor.y, iterations);
  2598. return;
  2599. #else
  2600. return;
  2601. #endif
  2602. }
  2603. //javadoc: dilate(src, dst, kernel, anchor)
  2604. public static void dilate (Mat src, Mat dst, Mat kernel, Point anchor)
  2605. {
  2606. if (src != null) src.ThrowIfDisposed ();
  2607. if (dst != null) dst.ThrowIfDisposed ();
  2608. if (kernel != null) kernel.ThrowIfDisposed ();
  2609. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2610. imgproc_Imgproc_dilate_13(src.nativeObj, dst.nativeObj, kernel.nativeObj, anchor.x, anchor.y);
  2611. return;
  2612. #else
  2613. return;
  2614. #endif
  2615. }
  2616. //javadoc: dilate(src, dst, kernel)
  2617. public static void dilate (Mat src, Mat dst, Mat kernel)
  2618. {
  2619. if (src != null) src.ThrowIfDisposed ();
  2620. if (dst != null) dst.ThrowIfDisposed ();
  2621. if (kernel != null) kernel.ThrowIfDisposed ();
  2622. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2623. imgproc_Imgproc_dilate_14(src.nativeObj, dst.nativeObj, kernel.nativeObj);
  2624. return;
  2625. #else
  2626. return;
  2627. #endif
  2628. }
  2629. //
  2630. // C++: void cv::distanceTransform(Mat src, Mat& dst, Mat& labels, int distanceType, int maskSize, int labelType = DIST_LABEL_CCOMP)
  2631. //
  2632. //javadoc: distanceTransformWithLabels(src, dst, labels, distanceType, maskSize, labelType)
  2633. public static void distanceTransformWithLabels (Mat src, Mat dst, Mat labels, int distanceType, int maskSize, int labelType)
  2634. {
  2635. if (src != null) src.ThrowIfDisposed ();
  2636. if (dst != null) dst.ThrowIfDisposed ();
  2637. if (labels != null) labels.ThrowIfDisposed ();
  2638. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2639. imgproc_Imgproc_distanceTransformWithLabels_10(src.nativeObj, dst.nativeObj, labels.nativeObj, distanceType, maskSize, labelType);
  2640. return;
  2641. #else
  2642. return;
  2643. #endif
  2644. }
  2645. //javadoc: distanceTransformWithLabels(src, dst, labels, distanceType, maskSize)
  2646. public static void distanceTransformWithLabels (Mat src, Mat dst, Mat labels, int distanceType, int maskSize)
  2647. {
  2648. if (src != null) src.ThrowIfDisposed ();
  2649. if (dst != null) dst.ThrowIfDisposed ();
  2650. if (labels != null) labels.ThrowIfDisposed ();
  2651. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2652. imgproc_Imgproc_distanceTransformWithLabels_11(src.nativeObj, dst.nativeObj, labels.nativeObj, distanceType, maskSize);
  2653. return;
  2654. #else
  2655. return;
  2656. #endif
  2657. }
  2658. //
  2659. // C++: void cv::distanceTransform(Mat src, Mat& dst, int distanceType, int maskSize, int dstType = CV_32F)
  2660. //
  2661. //javadoc: distanceTransform(src, dst, distanceType, maskSize, dstType)
  2662. public static void distanceTransform (Mat src, Mat dst, int distanceType, int maskSize, int dstType)
  2663. {
  2664. if (src != null) src.ThrowIfDisposed ();
  2665. if (dst != null) dst.ThrowIfDisposed ();
  2666. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2667. imgproc_Imgproc_distanceTransform_10(src.nativeObj, dst.nativeObj, distanceType, maskSize, dstType);
  2668. return;
  2669. #else
  2670. return;
  2671. #endif
  2672. }
  2673. //javadoc: distanceTransform(src, dst, distanceType, maskSize)
  2674. public static void distanceTransform (Mat src, Mat dst, int distanceType, int maskSize)
  2675. {
  2676. if (src != null) src.ThrowIfDisposed ();
  2677. if (dst != null) dst.ThrowIfDisposed ();
  2678. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2679. imgproc_Imgproc_distanceTransform_11(src.nativeObj, dst.nativeObj, distanceType, maskSize);
  2680. return;
  2681. #else
  2682. return;
  2683. #endif
  2684. }
  2685. //
  2686. // 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())
  2687. //
  2688. //javadoc: drawContours(image, contours, contourIdx, color, thickness, lineType, hierarchy, maxLevel, offset)
  2689. public static void drawContours (Mat image, List<MatOfPoint> contours, int contourIdx, Scalar color, int thickness, int lineType, Mat hierarchy, int maxLevel, Point offset)
  2690. {
  2691. if (image != null) image.ThrowIfDisposed ();
  2692. if (hierarchy != null) hierarchy.ThrowIfDisposed ();
  2693. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2694. List<Mat> contours_tmplm = new List<Mat>((contours != null) ? contours.Count : 0);
  2695. Mat contours_mat = Converters.vector_vector_Point_to_Mat(contours, contours_tmplm);
  2696. 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);
  2697. return;
  2698. #else
  2699. return;
  2700. #endif
  2701. }
  2702. //javadoc: drawContours(image, contours, contourIdx, color, thickness, lineType, hierarchy, maxLevel)
  2703. public static void drawContours (Mat image, List<MatOfPoint> contours, int contourIdx, Scalar color, int thickness, int lineType, Mat hierarchy, int maxLevel)
  2704. {
  2705. if (image != null) image.ThrowIfDisposed ();
  2706. if (hierarchy != null) hierarchy.ThrowIfDisposed ();
  2707. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2708. List<Mat> contours_tmplm = new List<Mat>((contours != null) ? contours.Count : 0);
  2709. Mat contours_mat = Converters.vector_vector_Point_to_Mat(contours, contours_tmplm);
  2710. 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);
  2711. return;
  2712. #else
  2713. return;
  2714. #endif
  2715. }
  2716. //javadoc: drawContours(image, contours, contourIdx, color, thickness, lineType, hierarchy)
  2717. public static void drawContours (Mat image, List<MatOfPoint> contours, int contourIdx, Scalar color, int thickness, int lineType, Mat hierarchy)
  2718. {
  2719. if (image != null) image.ThrowIfDisposed ();
  2720. if (hierarchy != null) hierarchy.ThrowIfDisposed ();
  2721. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2722. List<Mat> contours_tmplm = new List<Mat>((contours != null) ? contours.Count : 0);
  2723. Mat contours_mat = Converters.vector_vector_Point_to_Mat(contours, contours_tmplm);
  2724. 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);
  2725. return;
  2726. #else
  2727. return;
  2728. #endif
  2729. }
  2730. //javadoc: drawContours(image, contours, contourIdx, color, thickness, lineType)
  2731. public static void drawContours (Mat image, List<MatOfPoint> contours, int contourIdx, Scalar color, int thickness, int lineType)
  2732. {
  2733. if (image != null) image.ThrowIfDisposed ();
  2734. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2735. List<Mat> contours_tmplm = new List<Mat>((contours != null) ? contours.Count : 0);
  2736. Mat contours_mat = Converters.vector_vector_Point_to_Mat(contours, contours_tmplm);
  2737. imgproc_Imgproc_drawContours_13(image.nativeObj, contours_mat.nativeObj, contourIdx, color.val[0], color.val[1], color.val[2], color.val[3], thickness, lineType);
  2738. return;
  2739. #else
  2740. return;
  2741. #endif
  2742. }
  2743. //javadoc: drawContours(image, contours, contourIdx, color, thickness)
  2744. public static void drawContours (Mat image, List<MatOfPoint> contours, int contourIdx, Scalar color, int thickness)
  2745. {
  2746. if (image != null) image.ThrowIfDisposed ();
  2747. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2748. List<Mat> contours_tmplm = new List<Mat>((contours != null) ? contours.Count : 0);
  2749. Mat contours_mat = Converters.vector_vector_Point_to_Mat(contours, contours_tmplm);
  2750. imgproc_Imgproc_drawContours_14(image.nativeObj, contours_mat.nativeObj, contourIdx, color.val[0], color.val[1], color.val[2], color.val[3], thickness);
  2751. return;
  2752. #else
  2753. return;
  2754. #endif
  2755. }
  2756. //javadoc: drawContours(image, contours, contourIdx, color)
  2757. public static void drawContours (Mat image, List<MatOfPoint> contours, int contourIdx, Scalar color)
  2758. {
  2759. if (image != null) image.ThrowIfDisposed ();
  2760. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2761. List<Mat> contours_tmplm = new List<Mat>((contours != null) ? contours.Count : 0);
  2762. Mat contours_mat = Converters.vector_vector_Point_to_Mat(contours, contours_tmplm);
  2763. imgproc_Imgproc_drawContours_15(image.nativeObj, contours_mat.nativeObj, contourIdx, color.val[0], color.val[1], color.val[2], color.val[3]);
  2764. return;
  2765. #else
  2766. return;
  2767. #endif
  2768. }
  2769. //
  2770. // C++: void cv::drawMarker(Mat& img, Point position, Scalar color, int markerType = MARKER_CROSS, int markerSize = 20, int thickness = 1, int line_type = 8)
  2771. //
  2772. //javadoc: drawMarker(img, position, color, markerType, markerSize, thickness, line_type)
  2773. public static void drawMarker (Mat img, Point position, Scalar color, int markerType, int markerSize, int thickness, int line_type)
  2774. {
  2775. if (img != null) img.ThrowIfDisposed ();
  2776. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2777. 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);
  2778. return;
  2779. #else
  2780. return;
  2781. #endif
  2782. }
  2783. //javadoc: drawMarker(img, position, color, markerType, markerSize, thickness)
  2784. public static void drawMarker (Mat img, Point position, Scalar color, int markerType, int markerSize, int thickness)
  2785. {
  2786. if (img != null) img.ThrowIfDisposed ();
  2787. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2788. 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);
  2789. return;
  2790. #else
  2791. return;
  2792. #endif
  2793. }
  2794. //javadoc: drawMarker(img, position, color, markerType, markerSize)
  2795. public static void drawMarker (Mat img, Point position, Scalar color, int markerType, int markerSize)
  2796. {
  2797. if (img != null) img.ThrowIfDisposed ();
  2798. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2799. imgproc_Imgproc_drawMarker_12(img.nativeObj, position.x, position.y, color.val[0], color.val[1], color.val[2], color.val[3], markerType, markerSize);
  2800. return;
  2801. #else
  2802. return;
  2803. #endif
  2804. }
  2805. //javadoc: drawMarker(img, position, color, markerType)
  2806. public static void drawMarker (Mat img, Point position, Scalar color, int markerType)
  2807. {
  2808. if (img != null) img.ThrowIfDisposed ();
  2809. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2810. imgproc_Imgproc_drawMarker_13(img.nativeObj, position.x, position.y, color.val[0], color.val[1], color.val[2], color.val[3], markerType);
  2811. return;
  2812. #else
  2813. return;
  2814. #endif
  2815. }
  2816. //javadoc: drawMarker(img, position, color)
  2817. public static void drawMarker (Mat img, Point position, Scalar color)
  2818. {
  2819. if (img != null) img.ThrowIfDisposed ();
  2820. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2821. imgproc_Imgproc_drawMarker_14(img.nativeObj, position.x, position.y, color.val[0], color.val[1], color.val[2], color.val[3]);
  2822. return;
  2823. #else
  2824. return;
  2825. #endif
  2826. }
  2827. //
  2828. // 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)
  2829. //
  2830. //javadoc: ellipse(img, center, axes, angle, startAngle, endAngle, color, thickness, lineType, shift)
  2831. public static void ellipse (Mat img, Point center, Size axes, double angle, double startAngle, double endAngle, Scalar color, int thickness, int lineType, int shift)
  2832. {
  2833. if (img != null) img.ThrowIfDisposed ();
  2834. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2835. 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);
  2836. return;
  2837. #else
  2838. return;
  2839. #endif
  2840. }
  2841. //javadoc: ellipse(img, center, axes, angle, startAngle, endAngle, color, thickness, lineType)
  2842. public static void ellipse (Mat img, Point center, Size axes, double angle, double startAngle, double endAngle, Scalar color, int thickness, int lineType)
  2843. {
  2844. if (img != null) img.ThrowIfDisposed ();
  2845. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2846. 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);
  2847. return;
  2848. #else
  2849. return;
  2850. #endif
  2851. }
  2852. //javadoc: ellipse(img, center, axes, angle, startAngle, endAngle, color, thickness)
  2853. public static void ellipse (Mat img, Point center, Size axes, double angle, double startAngle, double endAngle, Scalar color, int thickness)
  2854. {
  2855. if (img != null) img.ThrowIfDisposed ();
  2856. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2857. 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);
  2858. return;
  2859. #else
  2860. return;
  2861. #endif
  2862. }
  2863. //javadoc: ellipse(img, center, axes, angle, startAngle, endAngle, color)
  2864. public static void ellipse (Mat img, Point center, Size axes, double angle, double startAngle, double endAngle, Scalar color)
  2865. {
  2866. if (img != null) img.ThrowIfDisposed ();
  2867. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2868. 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]);
  2869. return;
  2870. #else
  2871. return;
  2872. #endif
  2873. }
  2874. //
  2875. // C++: void cv::ellipse(Mat& img, RotatedRect box, Scalar color, int thickness = 1, int lineType = LINE_8)
  2876. //
  2877. //javadoc: ellipse(img, box, color, thickness, lineType)
  2878. public static void ellipse (Mat img, RotatedRect box, Scalar color, int thickness, int lineType)
  2879. {
  2880. if (img != null) img.ThrowIfDisposed ();
  2881. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2882. 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);
  2883. return;
  2884. #else
  2885. return;
  2886. #endif
  2887. }
  2888. //javadoc: ellipse(img, box, color, thickness)
  2889. public static void ellipse (Mat img, RotatedRect box, Scalar color, int thickness)
  2890. {
  2891. if (img != null) img.ThrowIfDisposed ();
  2892. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2893. 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);
  2894. return;
  2895. #else
  2896. return;
  2897. #endif
  2898. }
  2899. //javadoc: ellipse(img, box, color)
  2900. public static void ellipse (Mat img, RotatedRect box, Scalar color)
  2901. {
  2902. if (img != null) img.ThrowIfDisposed ();
  2903. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2904. 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]);
  2905. return;
  2906. #else
  2907. return;
  2908. #endif
  2909. }
  2910. //
  2911. // C++: void cv::ellipse2Poly(Point center, Size axes, int angle, int arcStart, int arcEnd, int delta, vector_Point& pts)
  2912. //
  2913. //javadoc: ellipse2Poly(center, axes, angle, arcStart, arcEnd, delta, pts)
  2914. public static void ellipse2Poly (Point center, Size axes, int angle, int arcStart, int arcEnd, int delta, MatOfPoint pts)
  2915. {
  2916. if (pts != null) pts.ThrowIfDisposed ();
  2917. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2918. Mat pts_mat = pts;
  2919. imgproc_Imgproc_ellipse2Poly_10(center.x, center.y, axes.width, axes.height, angle, arcStart, arcEnd, delta, pts_mat.nativeObj);
  2920. return;
  2921. #else
  2922. return;
  2923. #endif
  2924. }
  2925. //
  2926. // C++: void cv::equalizeHist(Mat src, Mat& dst)
  2927. //
  2928. //javadoc: equalizeHist(src, dst)
  2929. public static void equalizeHist (Mat src, Mat dst)
  2930. {
  2931. if (src != null) src.ThrowIfDisposed ();
  2932. if (dst != null) dst.ThrowIfDisposed ();
  2933. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2934. imgproc_Imgproc_equalizeHist_10(src.nativeObj, dst.nativeObj);
  2935. return;
  2936. #else
  2937. return;
  2938. #endif
  2939. }
  2940. //
  2941. // 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())
  2942. //
  2943. //javadoc: erode(src, dst, kernel, anchor, iterations, borderType, borderValue)
  2944. public static void erode (Mat src, Mat dst, Mat kernel, Point anchor, int iterations, int borderType, Scalar borderValue)
  2945. {
  2946. if (src != null) src.ThrowIfDisposed ();
  2947. if (dst != null) dst.ThrowIfDisposed ();
  2948. if (kernel != null) kernel.ThrowIfDisposed ();
  2949. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2950. 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]);
  2951. return;
  2952. #else
  2953. return;
  2954. #endif
  2955. }
  2956. //javadoc: erode(src, dst, kernel, anchor, iterations, borderType)
  2957. public static void erode (Mat src, Mat dst, Mat kernel, Point anchor, int iterations, int borderType)
  2958. {
  2959. if (src != null) src.ThrowIfDisposed ();
  2960. if (dst != null) dst.ThrowIfDisposed ();
  2961. if (kernel != null) kernel.ThrowIfDisposed ();
  2962. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2963. imgproc_Imgproc_erode_11(src.nativeObj, dst.nativeObj, kernel.nativeObj, anchor.x, anchor.y, iterations, borderType);
  2964. return;
  2965. #else
  2966. return;
  2967. #endif
  2968. }
  2969. //javadoc: erode(src, dst, kernel, anchor, iterations)
  2970. public static void erode (Mat src, Mat dst, Mat kernel, Point anchor, int iterations)
  2971. {
  2972. if (src != null) src.ThrowIfDisposed ();
  2973. if (dst != null) dst.ThrowIfDisposed ();
  2974. if (kernel != null) kernel.ThrowIfDisposed ();
  2975. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2976. imgproc_Imgproc_erode_12(src.nativeObj, dst.nativeObj, kernel.nativeObj, anchor.x, anchor.y, iterations);
  2977. return;
  2978. #else
  2979. return;
  2980. #endif
  2981. }
  2982. //javadoc: erode(src, dst, kernel, anchor)
  2983. public static void erode (Mat src, Mat dst, Mat kernel, Point anchor)
  2984. {
  2985. if (src != null) src.ThrowIfDisposed ();
  2986. if (dst != null) dst.ThrowIfDisposed ();
  2987. if (kernel != null) kernel.ThrowIfDisposed ();
  2988. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  2989. imgproc_Imgproc_erode_13(src.nativeObj, dst.nativeObj, kernel.nativeObj, anchor.x, anchor.y);
  2990. return;
  2991. #else
  2992. return;
  2993. #endif
  2994. }
  2995. //javadoc: erode(src, dst, kernel)
  2996. public static void erode (Mat src, Mat dst, Mat kernel)
  2997. {
  2998. if (src != null) src.ThrowIfDisposed ();
  2999. if (dst != null) dst.ThrowIfDisposed ();
  3000. if (kernel != null) kernel.ThrowIfDisposed ();
  3001. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3002. imgproc_Imgproc_erode_14(src.nativeObj, dst.nativeObj, kernel.nativeObj);
  3003. return;
  3004. #else
  3005. return;
  3006. #endif
  3007. }
  3008. //
  3009. // C++: void cv::fillConvexPoly(Mat& img, vector_Point points, Scalar color, int lineType = LINE_8, int shift = 0)
  3010. //
  3011. //javadoc: fillConvexPoly(img, points, color, lineType, shift)
  3012. public static void fillConvexPoly (Mat img, MatOfPoint points, Scalar color, int lineType, int shift)
  3013. {
  3014. if (img != null) img.ThrowIfDisposed ();
  3015. if (points != null) points.ThrowIfDisposed ();
  3016. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3017. Mat points_mat = points;
  3018. imgproc_Imgproc_fillConvexPoly_10(img.nativeObj, points_mat.nativeObj, color.val[0], color.val[1], color.val[2], color.val[3], lineType, shift);
  3019. return;
  3020. #else
  3021. return;
  3022. #endif
  3023. }
  3024. //javadoc: fillConvexPoly(img, points, color, lineType)
  3025. public static void fillConvexPoly (Mat img, MatOfPoint points, Scalar color, int lineType)
  3026. {
  3027. if (img != null) img.ThrowIfDisposed ();
  3028. if (points != null) points.ThrowIfDisposed ();
  3029. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3030. Mat points_mat = points;
  3031. imgproc_Imgproc_fillConvexPoly_11(img.nativeObj, points_mat.nativeObj, color.val[0], color.val[1], color.val[2], color.val[3], lineType);
  3032. return;
  3033. #else
  3034. return;
  3035. #endif
  3036. }
  3037. //javadoc: fillConvexPoly(img, points, color)
  3038. public static void fillConvexPoly (Mat img, MatOfPoint points, Scalar color)
  3039. {
  3040. if (img != null) img.ThrowIfDisposed ();
  3041. if (points != null) points.ThrowIfDisposed ();
  3042. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3043. Mat points_mat = points;
  3044. imgproc_Imgproc_fillConvexPoly_12(img.nativeObj, points_mat.nativeObj, color.val[0], color.val[1], color.val[2], color.val[3]);
  3045. return;
  3046. #else
  3047. return;
  3048. #endif
  3049. }
  3050. //
  3051. // C++: void cv::fillPoly(Mat& img, vector_vector_Point pts, Scalar color, int lineType = LINE_8, int shift = 0, Point offset = Point())
  3052. //
  3053. //javadoc: fillPoly(img, pts, color, lineType, shift, offset)
  3054. public static void fillPoly (Mat img, List<MatOfPoint> pts, Scalar color, int lineType, int shift, Point offset)
  3055. {
  3056. if (img != null) img.ThrowIfDisposed ();
  3057. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3058. List<Mat> pts_tmplm = new List<Mat>((pts != null) ? pts.Count : 0);
  3059. Mat pts_mat = Converters.vector_vector_Point_to_Mat(pts, pts_tmplm);
  3060. 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);
  3061. return;
  3062. #else
  3063. return;
  3064. #endif
  3065. }
  3066. //javadoc: fillPoly(img, pts, color, lineType, shift)
  3067. public static void fillPoly (Mat img, List<MatOfPoint> pts, Scalar color, int lineType, int shift)
  3068. {
  3069. if (img != null) img.ThrowIfDisposed ();
  3070. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3071. List<Mat> pts_tmplm = new List<Mat>((pts != null) ? pts.Count : 0);
  3072. Mat pts_mat = Converters.vector_vector_Point_to_Mat(pts, pts_tmplm);
  3073. imgproc_Imgproc_fillPoly_11(img.nativeObj, pts_mat.nativeObj, color.val[0], color.val[1], color.val[2], color.val[3], lineType, shift);
  3074. return;
  3075. #else
  3076. return;
  3077. #endif
  3078. }
  3079. //javadoc: fillPoly(img, pts, color, lineType)
  3080. public static void fillPoly (Mat img, List<MatOfPoint> pts, Scalar color, int lineType)
  3081. {
  3082. if (img != null) img.ThrowIfDisposed ();
  3083. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3084. List<Mat> pts_tmplm = new List<Mat>((pts != null) ? pts.Count : 0);
  3085. Mat pts_mat = Converters.vector_vector_Point_to_Mat(pts, pts_tmplm);
  3086. imgproc_Imgproc_fillPoly_12(img.nativeObj, pts_mat.nativeObj, color.val[0], color.val[1], color.val[2], color.val[3], lineType);
  3087. return;
  3088. #else
  3089. return;
  3090. #endif
  3091. }
  3092. //javadoc: fillPoly(img, pts, color)
  3093. public static void fillPoly (Mat img, List<MatOfPoint> pts, Scalar color)
  3094. {
  3095. if (img != null) img.ThrowIfDisposed ();
  3096. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3097. List<Mat> pts_tmplm = new List<Mat>((pts != null) ? pts.Count : 0);
  3098. Mat pts_mat = Converters.vector_vector_Point_to_Mat(pts, pts_tmplm);
  3099. imgproc_Imgproc_fillPoly_13(img.nativeObj, pts_mat.nativeObj, color.val[0], color.val[1], color.val[2], color.val[3]);
  3100. return;
  3101. #else
  3102. return;
  3103. #endif
  3104. }
  3105. //
  3106. // C++: void cv::filter2D(Mat src, Mat& dst, int ddepth, Mat kernel, Point anchor = Point(-1,-1), double delta = 0, int borderType = BORDER_DEFAULT)
  3107. //
  3108. //javadoc: filter2D(src, dst, ddepth, kernel, anchor, delta, borderType)
  3109. public static void filter2D (Mat src, Mat dst, int ddepth, Mat kernel, Point anchor, double delta, int borderType)
  3110. {
  3111. if (src != null) src.ThrowIfDisposed ();
  3112. if (dst != null) dst.ThrowIfDisposed ();
  3113. if (kernel != null) kernel.ThrowIfDisposed ();
  3114. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3115. imgproc_Imgproc_filter2D_10(src.nativeObj, dst.nativeObj, ddepth, kernel.nativeObj, anchor.x, anchor.y, delta, borderType);
  3116. return;
  3117. #else
  3118. return;
  3119. #endif
  3120. }
  3121. //javadoc: filter2D(src, dst, ddepth, kernel, anchor, delta)
  3122. public static void filter2D (Mat src, Mat dst, int ddepth, Mat kernel, Point anchor, double delta)
  3123. {
  3124. if (src != null) src.ThrowIfDisposed ();
  3125. if (dst != null) dst.ThrowIfDisposed ();
  3126. if (kernel != null) kernel.ThrowIfDisposed ();
  3127. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3128. imgproc_Imgproc_filter2D_11(src.nativeObj, dst.nativeObj, ddepth, kernel.nativeObj, anchor.x, anchor.y, delta);
  3129. return;
  3130. #else
  3131. return;
  3132. #endif
  3133. }
  3134. //javadoc: filter2D(src, dst, ddepth, kernel, anchor)
  3135. public static void filter2D (Mat src, Mat dst, int ddepth, Mat kernel, Point anchor)
  3136. {
  3137. if (src != null) src.ThrowIfDisposed ();
  3138. if (dst != null) dst.ThrowIfDisposed ();
  3139. if (kernel != null) kernel.ThrowIfDisposed ();
  3140. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3141. imgproc_Imgproc_filter2D_12(src.nativeObj, dst.nativeObj, ddepth, kernel.nativeObj, anchor.x, anchor.y);
  3142. return;
  3143. #else
  3144. return;
  3145. #endif
  3146. }
  3147. //javadoc: filter2D(src, dst, ddepth, kernel)
  3148. public static void filter2D (Mat src, Mat dst, int ddepth, Mat kernel)
  3149. {
  3150. if (src != null) src.ThrowIfDisposed ();
  3151. if (dst != null) dst.ThrowIfDisposed ();
  3152. if (kernel != null) kernel.ThrowIfDisposed ();
  3153. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3154. imgproc_Imgproc_filter2D_13(src.nativeObj, dst.nativeObj, ddepth, kernel.nativeObj);
  3155. return;
  3156. #else
  3157. return;
  3158. #endif
  3159. }
  3160. //
  3161. // C++: void cv::findContours(Mat image, vector_vector_Point& contours, Mat& hierarchy, int mode, int method, Point offset = Point())
  3162. //
  3163. //javadoc: findContours(image, contours, hierarchy, mode, method, offset)
  3164. public static void findContours (Mat image, List<MatOfPoint> contours, Mat hierarchy, int mode, int method, Point offset)
  3165. {
  3166. if (image != null) image.ThrowIfDisposed ();
  3167. if (hierarchy != null) hierarchy.ThrowIfDisposed ();
  3168. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3169. Mat contours_mat = new Mat();
  3170. imgproc_Imgproc_findContours_10(image.nativeObj, contours_mat.nativeObj, hierarchy.nativeObj, mode, method, offset.x, offset.y);
  3171. Converters.Mat_to_vector_vector_Point(contours_mat, contours);
  3172. contours_mat.release();
  3173. return;
  3174. #else
  3175. return;
  3176. #endif
  3177. }
  3178. //javadoc: findContours(image, contours, hierarchy, mode, method)
  3179. public static void findContours (Mat image, List<MatOfPoint> contours, Mat hierarchy, int mode, int method)
  3180. {
  3181. if (image != null) image.ThrowIfDisposed ();
  3182. if (hierarchy != null) hierarchy.ThrowIfDisposed ();
  3183. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3184. Mat contours_mat = new Mat();
  3185. imgproc_Imgproc_findContours_11(image.nativeObj, contours_mat.nativeObj, hierarchy.nativeObj, mode, method);
  3186. Converters.Mat_to_vector_vector_Point(contours_mat, contours);
  3187. contours_mat.release();
  3188. return;
  3189. #else
  3190. return;
  3191. #endif
  3192. }
  3193. //
  3194. // C++: void cv::fitLine(Mat points, Mat& line, int distType, double param, double reps, double aeps)
  3195. //
  3196. //javadoc: fitLine(points, line, distType, param, reps, aeps)
  3197. public static void fitLine (Mat points, Mat line, int distType, double param, double reps, double aeps)
  3198. {
  3199. if (points != null) points.ThrowIfDisposed ();
  3200. if (line != null) line.ThrowIfDisposed ();
  3201. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3202. imgproc_Imgproc_fitLine_10(points.nativeObj, line.nativeObj, distType, param, reps, aeps);
  3203. return;
  3204. #else
  3205. return;
  3206. #endif
  3207. }
  3208. //
  3209. // C++: void cv::getDerivKernels(Mat& kx, Mat& ky, int dx, int dy, int ksize, bool normalize = false, int ktype = CV_32F)
  3210. //
  3211. //javadoc: getDerivKernels(kx, ky, dx, dy, ksize, normalize, ktype)
  3212. public static void getDerivKernels (Mat kx, Mat ky, int dx, int dy, int ksize, bool normalize, int ktype)
  3213. {
  3214. if (kx != null) kx.ThrowIfDisposed ();
  3215. if (ky != null) ky.ThrowIfDisposed ();
  3216. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3217. imgproc_Imgproc_getDerivKernels_10(kx.nativeObj, ky.nativeObj, dx, dy, ksize, normalize, ktype);
  3218. return;
  3219. #else
  3220. return;
  3221. #endif
  3222. }
  3223. //javadoc: getDerivKernels(kx, ky, dx, dy, ksize, normalize)
  3224. public static void getDerivKernels (Mat kx, Mat ky, int dx, int dy, int ksize, bool normalize)
  3225. {
  3226. if (kx != null) kx.ThrowIfDisposed ();
  3227. if (ky != null) ky.ThrowIfDisposed ();
  3228. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3229. imgproc_Imgproc_getDerivKernels_11(kx.nativeObj, ky.nativeObj, dx, dy, ksize, normalize);
  3230. return;
  3231. #else
  3232. return;
  3233. #endif
  3234. }
  3235. //javadoc: getDerivKernels(kx, ky, dx, dy, ksize)
  3236. public static void getDerivKernels (Mat kx, Mat ky, int dx, int dy, int ksize)
  3237. {
  3238. if (kx != null) kx.ThrowIfDisposed ();
  3239. if (ky != null) ky.ThrowIfDisposed ();
  3240. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3241. imgproc_Imgproc_getDerivKernels_12(kx.nativeObj, ky.nativeObj, dx, dy, ksize);
  3242. return;
  3243. #else
  3244. return;
  3245. #endif
  3246. }
  3247. //
  3248. // C++: void cv::getRectSubPix(Mat image, Size patchSize, Point2f center, Mat& patch, int patchType = -1)
  3249. //
  3250. //javadoc: getRectSubPix(image, patchSize, center, patch, patchType)
  3251. public static void getRectSubPix (Mat image, Size patchSize, Point center, Mat patch, int patchType)
  3252. {
  3253. if (image != null) image.ThrowIfDisposed ();
  3254. if (patch != null) patch.ThrowIfDisposed ();
  3255. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3256. imgproc_Imgproc_getRectSubPix_10(image.nativeObj, patchSize.width, patchSize.height, center.x, center.y, patch.nativeObj, patchType);
  3257. return;
  3258. #else
  3259. return;
  3260. #endif
  3261. }
  3262. //javadoc: getRectSubPix(image, patchSize, center, patch)
  3263. public static void getRectSubPix (Mat image, Size patchSize, Point center, Mat patch)
  3264. {
  3265. if (image != null) image.ThrowIfDisposed ();
  3266. if (patch != null) patch.ThrowIfDisposed ();
  3267. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3268. imgproc_Imgproc_getRectSubPix_11(image.nativeObj, patchSize.width, patchSize.height, center.x, center.y, patch.nativeObj);
  3269. return;
  3270. #else
  3271. return;
  3272. #endif
  3273. }
  3274. //
  3275. // 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)
  3276. //
  3277. //javadoc: goodFeaturesToTrack(image, corners, maxCorners, qualityLevel, minDistance, mask, blockSize, gradientSize, useHarrisDetector, k)
  3278. public static void goodFeaturesToTrack (Mat image, MatOfPoint corners, int maxCorners, double qualityLevel, double minDistance, Mat mask, int blockSize, int gradientSize, bool useHarrisDetector, double k)
  3279. {
  3280. if (image != null) image.ThrowIfDisposed ();
  3281. if (corners != null) corners.ThrowIfDisposed ();
  3282. if (mask != null) mask.ThrowIfDisposed ();
  3283. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3284. Mat corners_mat = corners;
  3285. imgproc_Imgproc_goodFeaturesToTrack_10(image.nativeObj, corners_mat.nativeObj, maxCorners, qualityLevel, minDistance, mask.nativeObj, blockSize, gradientSize, useHarrisDetector, k);
  3286. return;
  3287. #else
  3288. return;
  3289. #endif
  3290. }
  3291. //javadoc: goodFeaturesToTrack(image, corners, maxCorners, qualityLevel, minDistance, mask, blockSize, gradientSize, useHarrisDetector)
  3292. public static void goodFeaturesToTrack (Mat image, MatOfPoint corners, int maxCorners, double qualityLevel, double minDistance, Mat mask, int blockSize, int gradientSize, bool useHarrisDetector)
  3293. {
  3294. if (image != null) image.ThrowIfDisposed ();
  3295. if (corners != null) corners.ThrowIfDisposed ();
  3296. if (mask != null) mask.ThrowIfDisposed ();
  3297. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3298. Mat corners_mat = corners;
  3299. imgproc_Imgproc_goodFeaturesToTrack_11(image.nativeObj, corners_mat.nativeObj, maxCorners, qualityLevel, minDistance, mask.nativeObj, blockSize, gradientSize, useHarrisDetector);
  3300. return;
  3301. #else
  3302. return;
  3303. #endif
  3304. }
  3305. //javadoc: goodFeaturesToTrack(image, corners, maxCorners, qualityLevel, minDistance, mask, blockSize, gradientSize)
  3306. public static void goodFeaturesToTrack (Mat image, MatOfPoint corners, int maxCorners, double qualityLevel, double minDistance, Mat mask, int blockSize, int gradientSize)
  3307. {
  3308. if (image != null) image.ThrowIfDisposed ();
  3309. if (corners != null) corners.ThrowIfDisposed ();
  3310. if (mask != null) mask.ThrowIfDisposed ();
  3311. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3312. Mat corners_mat = corners;
  3313. imgproc_Imgproc_goodFeaturesToTrack_12(image.nativeObj, corners_mat.nativeObj, maxCorners, qualityLevel, minDistance, mask.nativeObj, blockSize, gradientSize);
  3314. return;
  3315. #else
  3316. return;
  3317. #endif
  3318. }
  3319. //
  3320. // 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)
  3321. //
  3322. //javadoc: goodFeaturesToTrack(image, corners, maxCorners, qualityLevel, minDistance, mask, blockSize, useHarrisDetector, k)
  3323. public static void goodFeaturesToTrack (Mat image, MatOfPoint corners, int maxCorners, double qualityLevel, double minDistance, Mat mask, int blockSize, bool useHarrisDetector, double k)
  3324. {
  3325. if (image != null) image.ThrowIfDisposed ();
  3326. if (corners != null) corners.ThrowIfDisposed ();
  3327. if (mask != null) mask.ThrowIfDisposed ();
  3328. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3329. Mat corners_mat = corners;
  3330. imgproc_Imgproc_goodFeaturesToTrack_13(image.nativeObj, corners_mat.nativeObj, maxCorners, qualityLevel, minDistance, mask.nativeObj, blockSize, useHarrisDetector, k);
  3331. return;
  3332. #else
  3333. return;
  3334. #endif
  3335. }
  3336. //javadoc: goodFeaturesToTrack(image, corners, maxCorners, qualityLevel, minDistance, mask, blockSize, useHarrisDetector)
  3337. public static void goodFeaturesToTrack (Mat image, MatOfPoint corners, int maxCorners, double qualityLevel, double minDistance, Mat mask, int blockSize, bool useHarrisDetector)
  3338. {
  3339. if (image != null) image.ThrowIfDisposed ();
  3340. if (corners != null) corners.ThrowIfDisposed ();
  3341. if (mask != null) mask.ThrowIfDisposed ();
  3342. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3343. Mat corners_mat = corners;
  3344. imgproc_Imgproc_goodFeaturesToTrack_14(image.nativeObj, corners_mat.nativeObj, maxCorners, qualityLevel, minDistance, mask.nativeObj, blockSize, useHarrisDetector);
  3345. return;
  3346. #else
  3347. return;
  3348. #endif
  3349. }
  3350. //javadoc: goodFeaturesToTrack(image, corners, maxCorners, qualityLevel, minDistance, mask, blockSize)
  3351. public static void goodFeaturesToTrack (Mat image, MatOfPoint corners, int maxCorners, double qualityLevel, double minDistance, Mat mask, int blockSize)
  3352. {
  3353. if (image != null) image.ThrowIfDisposed ();
  3354. if (corners != null) corners.ThrowIfDisposed ();
  3355. if (mask != null) mask.ThrowIfDisposed ();
  3356. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3357. Mat corners_mat = corners;
  3358. imgproc_Imgproc_goodFeaturesToTrack_15(image.nativeObj, corners_mat.nativeObj, maxCorners, qualityLevel, minDistance, mask.nativeObj, blockSize);
  3359. return;
  3360. #else
  3361. return;
  3362. #endif
  3363. }
  3364. //javadoc: goodFeaturesToTrack(image, corners, maxCorners, qualityLevel, minDistance, mask)
  3365. public static void goodFeaturesToTrack (Mat image, MatOfPoint corners, int maxCorners, double qualityLevel, double minDistance, Mat mask)
  3366. {
  3367. if (image != null) image.ThrowIfDisposed ();
  3368. if (corners != null) corners.ThrowIfDisposed ();
  3369. if (mask != null) mask.ThrowIfDisposed ();
  3370. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3371. Mat corners_mat = corners;
  3372. imgproc_Imgproc_goodFeaturesToTrack_16(image.nativeObj, corners_mat.nativeObj, maxCorners, qualityLevel, minDistance, mask.nativeObj);
  3373. return;
  3374. #else
  3375. return;
  3376. #endif
  3377. }
  3378. //javadoc: goodFeaturesToTrack(image, corners, maxCorners, qualityLevel, minDistance)
  3379. public static void goodFeaturesToTrack (Mat image, MatOfPoint corners, int maxCorners, double qualityLevel, double minDistance)
  3380. {
  3381. if (image != null) image.ThrowIfDisposed ();
  3382. if (corners != null) corners.ThrowIfDisposed ();
  3383. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3384. Mat corners_mat = corners;
  3385. imgproc_Imgproc_goodFeaturesToTrack_17(image.nativeObj, corners_mat.nativeObj, maxCorners, qualityLevel, minDistance);
  3386. return;
  3387. #else
  3388. return;
  3389. #endif
  3390. }
  3391. //
  3392. // C++: void cv::grabCut(Mat img, Mat& mask, Rect rect, Mat& bgdModel, Mat& fgdModel, int iterCount, int mode = GC_EVAL)
  3393. //
  3394. //javadoc: grabCut(img, mask, rect, bgdModel, fgdModel, iterCount, mode)
  3395. public static void grabCut (Mat img, Mat mask, Rect rect, Mat bgdModel, Mat fgdModel, int iterCount, int mode)
  3396. {
  3397. if (img != null) img.ThrowIfDisposed ();
  3398. if (mask != null) mask.ThrowIfDisposed ();
  3399. if (bgdModel != null) bgdModel.ThrowIfDisposed ();
  3400. if (fgdModel != null) fgdModel.ThrowIfDisposed ();
  3401. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3402. imgproc_Imgproc_grabCut_10(img.nativeObj, mask.nativeObj, rect.x, rect.y, rect.width, rect.height, bgdModel.nativeObj, fgdModel.nativeObj, iterCount, mode);
  3403. return;
  3404. #else
  3405. return;
  3406. #endif
  3407. }
  3408. //javadoc: grabCut(img, mask, rect, bgdModel, fgdModel, iterCount)
  3409. public static void grabCut (Mat img, Mat mask, Rect rect, Mat bgdModel, Mat fgdModel, int iterCount)
  3410. {
  3411. if (img != null) img.ThrowIfDisposed ();
  3412. if (mask != null) mask.ThrowIfDisposed ();
  3413. if (bgdModel != null) bgdModel.ThrowIfDisposed ();
  3414. if (fgdModel != null) fgdModel.ThrowIfDisposed ();
  3415. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3416. imgproc_Imgproc_grabCut_11(img.nativeObj, mask.nativeObj, rect.x, rect.y, rect.width, rect.height, bgdModel.nativeObj, fgdModel.nativeObj, iterCount);
  3417. return;
  3418. #else
  3419. return;
  3420. #endif
  3421. }
  3422. //
  3423. // C++: void cv::integral(Mat src, Mat& sum, Mat& sqsum, Mat& tilted, int sdepth = -1, int sqdepth = -1)
  3424. //
  3425. //javadoc: integral3(src, sum, sqsum, tilted, sdepth, sqdepth)
  3426. public static void integral3 (Mat src, Mat sum, Mat sqsum, Mat tilted, int sdepth, int sqdepth)
  3427. {
  3428. if (src != null) src.ThrowIfDisposed ();
  3429. if (sum != null) sum.ThrowIfDisposed ();
  3430. if (sqsum != null) sqsum.ThrowIfDisposed ();
  3431. if (tilted != null) tilted.ThrowIfDisposed ();
  3432. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3433. imgproc_Imgproc_integral3_10(src.nativeObj, sum.nativeObj, sqsum.nativeObj, tilted.nativeObj, sdepth, sqdepth);
  3434. return;
  3435. #else
  3436. return;
  3437. #endif
  3438. }
  3439. //javadoc: integral3(src, sum, sqsum, tilted, sdepth)
  3440. public static void integral3 (Mat src, Mat sum, Mat sqsum, Mat tilted, int sdepth)
  3441. {
  3442. if (src != null) src.ThrowIfDisposed ();
  3443. if (sum != null) sum.ThrowIfDisposed ();
  3444. if (sqsum != null) sqsum.ThrowIfDisposed ();
  3445. if (tilted != null) tilted.ThrowIfDisposed ();
  3446. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3447. imgproc_Imgproc_integral3_11(src.nativeObj, sum.nativeObj, sqsum.nativeObj, tilted.nativeObj, sdepth);
  3448. return;
  3449. #else
  3450. return;
  3451. #endif
  3452. }
  3453. //javadoc: integral3(src, sum, sqsum, tilted)
  3454. public static void integral3 (Mat src, Mat sum, Mat sqsum, Mat tilted)
  3455. {
  3456. if (src != null) src.ThrowIfDisposed ();
  3457. if (sum != null) sum.ThrowIfDisposed ();
  3458. if (sqsum != null) sqsum.ThrowIfDisposed ();
  3459. if (tilted != null) tilted.ThrowIfDisposed ();
  3460. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3461. imgproc_Imgproc_integral3_12(src.nativeObj, sum.nativeObj, sqsum.nativeObj, tilted.nativeObj);
  3462. return;
  3463. #else
  3464. return;
  3465. #endif
  3466. }
  3467. //
  3468. // C++: void cv::integral(Mat src, Mat& sum, Mat& sqsum, int sdepth = -1, int sqdepth = -1)
  3469. //
  3470. //javadoc: integral2(src, sum, sqsum, sdepth, sqdepth)
  3471. public static void integral2 (Mat src, Mat sum, Mat sqsum, int sdepth, int sqdepth)
  3472. {
  3473. if (src != null) src.ThrowIfDisposed ();
  3474. if (sum != null) sum.ThrowIfDisposed ();
  3475. if (sqsum != null) sqsum.ThrowIfDisposed ();
  3476. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3477. imgproc_Imgproc_integral2_10(src.nativeObj, sum.nativeObj, sqsum.nativeObj, sdepth, sqdepth);
  3478. return;
  3479. #else
  3480. return;
  3481. #endif
  3482. }
  3483. //javadoc: integral2(src, sum, sqsum, sdepth)
  3484. public static void integral2 (Mat src, Mat sum, Mat sqsum, int sdepth)
  3485. {
  3486. if (src != null) src.ThrowIfDisposed ();
  3487. if (sum != null) sum.ThrowIfDisposed ();
  3488. if (sqsum != null) sqsum.ThrowIfDisposed ();
  3489. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3490. imgproc_Imgproc_integral2_11(src.nativeObj, sum.nativeObj, sqsum.nativeObj, sdepth);
  3491. return;
  3492. #else
  3493. return;
  3494. #endif
  3495. }
  3496. //javadoc: integral2(src, sum, sqsum)
  3497. public static void integral2 (Mat src, Mat sum, Mat sqsum)
  3498. {
  3499. if (src != null) src.ThrowIfDisposed ();
  3500. if (sum != null) sum.ThrowIfDisposed ();
  3501. if (sqsum != null) sqsum.ThrowIfDisposed ();
  3502. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3503. imgproc_Imgproc_integral2_12(src.nativeObj, sum.nativeObj, sqsum.nativeObj);
  3504. return;
  3505. #else
  3506. return;
  3507. #endif
  3508. }
  3509. //
  3510. // C++: void cv::integral(Mat src, Mat& sum, int sdepth = -1)
  3511. //
  3512. //javadoc: integral(src, sum, sdepth)
  3513. public static void integral (Mat src, Mat sum, int sdepth)
  3514. {
  3515. if (src != null) src.ThrowIfDisposed ();
  3516. if (sum != null) sum.ThrowIfDisposed ();
  3517. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3518. imgproc_Imgproc_integral_10(src.nativeObj, sum.nativeObj, sdepth);
  3519. return;
  3520. #else
  3521. return;
  3522. #endif
  3523. }
  3524. //javadoc: integral(src, sum)
  3525. public static void integral (Mat src, Mat sum)
  3526. {
  3527. if (src != null) src.ThrowIfDisposed ();
  3528. if (sum != null) sum.ThrowIfDisposed ();
  3529. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3530. imgproc_Imgproc_integral_11(src.nativeObj, sum.nativeObj);
  3531. return;
  3532. #else
  3533. return;
  3534. #endif
  3535. }
  3536. //
  3537. // C++: void cv::invertAffineTransform(Mat M, Mat& iM)
  3538. //
  3539. //javadoc: invertAffineTransform(M, iM)
  3540. public static void invertAffineTransform (Mat M, Mat iM)
  3541. {
  3542. if (M != null) M.ThrowIfDisposed ();
  3543. if (iM != null) iM.ThrowIfDisposed ();
  3544. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3545. imgproc_Imgproc_invertAffineTransform_10(M.nativeObj, iM.nativeObj);
  3546. return;
  3547. #else
  3548. return;
  3549. #endif
  3550. }
  3551. //
  3552. // C++: void cv::line(Mat& img, Point pt1, Point pt2, Scalar color, int thickness = 1, int lineType = LINE_8, int shift = 0)
  3553. //
  3554. //javadoc: line(img, pt1, pt2, color, thickness, lineType, shift)
  3555. public static void line (Mat img, Point pt1, Point pt2, Scalar color, int thickness, int lineType, int shift)
  3556. {
  3557. if (img != null) img.ThrowIfDisposed ();
  3558. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3559. 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);
  3560. return;
  3561. #else
  3562. return;
  3563. #endif
  3564. }
  3565. //javadoc: line(img, pt1, pt2, color, thickness, lineType)
  3566. public static void line (Mat img, Point pt1, Point pt2, Scalar color, int thickness, int lineType)
  3567. {
  3568. if (img != null) img.ThrowIfDisposed ();
  3569. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3570. 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);
  3571. return;
  3572. #else
  3573. return;
  3574. #endif
  3575. }
  3576. //javadoc: line(img, pt1, pt2, color, thickness)
  3577. public static void line (Mat img, Point pt1, Point pt2, Scalar color, int thickness)
  3578. {
  3579. if (img != null) img.ThrowIfDisposed ();
  3580. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3581. 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);
  3582. return;
  3583. #else
  3584. return;
  3585. #endif
  3586. }
  3587. //javadoc: line(img, pt1, pt2, color)
  3588. public static void line (Mat img, Point pt1, Point pt2, Scalar color)
  3589. {
  3590. if (img != null) img.ThrowIfDisposed ();
  3591. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3592. 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]);
  3593. return;
  3594. #else
  3595. return;
  3596. #endif
  3597. }
  3598. //
  3599. // C++: void cv::linearPolar(Mat src, Mat& dst, Point2f center, double maxRadius, int flags)
  3600. //
  3601. //javadoc: linearPolar(src, dst, center, maxRadius, flags)
  3602. [Obsolete ("This method is deprecated.")]
  3603. public static void linearPolar (Mat src, Mat dst, Point center, double maxRadius, int flags)
  3604. {
  3605. if (src != null) src.ThrowIfDisposed ();
  3606. if (dst != null) dst.ThrowIfDisposed ();
  3607. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3608. imgproc_Imgproc_linearPolar_10(src.nativeObj, dst.nativeObj, center.x, center.y, maxRadius, flags);
  3609. return;
  3610. #else
  3611. return;
  3612. #endif
  3613. }
  3614. //
  3615. // C++: void cv::logPolar(Mat src, Mat& dst, Point2f center, double M, int flags)
  3616. //
  3617. //javadoc: logPolar(src, dst, center, M, flags)
  3618. [Obsolete ("This method is deprecated.")]
  3619. public static void logPolar (Mat src, Mat dst, Point center, double M, int flags)
  3620. {
  3621. if (src != null) src.ThrowIfDisposed ();
  3622. if (dst != null) dst.ThrowIfDisposed ();
  3623. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3624. imgproc_Imgproc_logPolar_10(src.nativeObj, dst.nativeObj, center.x, center.y, M, flags);
  3625. return;
  3626. #else
  3627. return;
  3628. #endif
  3629. }
  3630. //
  3631. // C++: void cv::matchTemplate(Mat image, Mat templ, Mat& result, int method, Mat mask = Mat())
  3632. //
  3633. //javadoc: matchTemplate(image, templ, result, method, mask)
  3634. public static void matchTemplate (Mat image, Mat templ, Mat result, int method, Mat mask)
  3635. {
  3636. if (image != null) image.ThrowIfDisposed ();
  3637. if (templ != null) templ.ThrowIfDisposed ();
  3638. if (result != null) result.ThrowIfDisposed ();
  3639. if (mask != null) mask.ThrowIfDisposed ();
  3640. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3641. imgproc_Imgproc_matchTemplate_10(image.nativeObj, templ.nativeObj, result.nativeObj, method, mask.nativeObj);
  3642. return;
  3643. #else
  3644. return;
  3645. #endif
  3646. }
  3647. //javadoc: matchTemplate(image, templ, result, method)
  3648. public static void matchTemplate (Mat image, Mat templ, Mat result, int method)
  3649. {
  3650. if (image != null) image.ThrowIfDisposed ();
  3651. if (templ != null) templ.ThrowIfDisposed ();
  3652. if (result != null) result.ThrowIfDisposed ();
  3653. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3654. imgproc_Imgproc_matchTemplate_11(image.nativeObj, templ.nativeObj, result.nativeObj, method);
  3655. return;
  3656. #else
  3657. return;
  3658. #endif
  3659. }
  3660. //
  3661. // C++: void cv::medianBlur(Mat src, Mat& dst, int ksize)
  3662. //
  3663. //javadoc: medianBlur(src, dst, ksize)
  3664. public static void medianBlur (Mat src, Mat dst, int ksize)
  3665. {
  3666. if (src != null) src.ThrowIfDisposed ();
  3667. if (dst != null) dst.ThrowIfDisposed ();
  3668. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3669. imgproc_Imgproc_medianBlur_10(src.nativeObj, dst.nativeObj, ksize);
  3670. return;
  3671. #else
  3672. return;
  3673. #endif
  3674. }
  3675. //
  3676. // C++: void cv::minEnclosingCircle(vector_Point2f points, Point2f& center, float& radius)
  3677. //
  3678. //javadoc: minEnclosingCircle(points, center, radius)
  3679. public static void minEnclosingCircle (MatOfPoint2f points, Point center, float[] radius)
  3680. {
  3681. if (points != null) points.ThrowIfDisposed ();
  3682. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3683. Mat points_mat = points;
  3684. double[] center_out = new double[2];
  3685. double[] radius_out = new double[1];
  3686. imgproc_Imgproc_minEnclosingCircle_10(points_mat.nativeObj, center_out, radius_out);
  3687. if(center!=null){ center.x = center_out[0]; center.y = center_out[1]; }
  3688. if(radius!=null) radius[0] = (float)radius_out[0];
  3689. return;
  3690. #else
  3691. return;
  3692. #endif
  3693. }
  3694. //
  3695. // 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())
  3696. //
  3697. //javadoc: morphologyEx(src, dst, op, kernel, anchor, iterations, borderType, borderValue)
  3698. public static void morphologyEx (Mat src, Mat dst, int op, Mat kernel, Point anchor, int iterations, int borderType, Scalar borderValue)
  3699. {
  3700. if (src != null) src.ThrowIfDisposed ();
  3701. if (dst != null) dst.ThrowIfDisposed ();
  3702. if (kernel != null) kernel.ThrowIfDisposed ();
  3703. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3704. 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]);
  3705. return;
  3706. #else
  3707. return;
  3708. #endif
  3709. }
  3710. //javadoc: morphologyEx(src, dst, op, kernel, anchor, iterations, borderType)
  3711. public static void morphologyEx (Mat src, Mat dst, int op, Mat kernel, Point anchor, int iterations, int borderType)
  3712. {
  3713. if (src != null) src.ThrowIfDisposed ();
  3714. if (dst != null) dst.ThrowIfDisposed ();
  3715. if (kernel != null) kernel.ThrowIfDisposed ();
  3716. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3717. imgproc_Imgproc_morphologyEx_11(src.nativeObj, dst.nativeObj, op, kernel.nativeObj, anchor.x, anchor.y, iterations, borderType);
  3718. return;
  3719. #else
  3720. return;
  3721. #endif
  3722. }
  3723. //javadoc: morphologyEx(src, dst, op, kernel, anchor, iterations)
  3724. public static void morphologyEx (Mat src, Mat dst, int op, Mat kernel, Point anchor, int iterations)
  3725. {
  3726. if (src != null) src.ThrowIfDisposed ();
  3727. if (dst != null) dst.ThrowIfDisposed ();
  3728. if (kernel != null) kernel.ThrowIfDisposed ();
  3729. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3730. imgproc_Imgproc_morphologyEx_12(src.nativeObj, dst.nativeObj, op, kernel.nativeObj, anchor.x, anchor.y, iterations);
  3731. return;
  3732. #else
  3733. return;
  3734. #endif
  3735. }
  3736. //javadoc: morphologyEx(src, dst, op, kernel, anchor)
  3737. public static void morphologyEx (Mat src, Mat dst, int op, Mat kernel, Point anchor)
  3738. {
  3739. if (src != null) src.ThrowIfDisposed ();
  3740. if (dst != null) dst.ThrowIfDisposed ();
  3741. if (kernel != null) kernel.ThrowIfDisposed ();
  3742. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3743. imgproc_Imgproc_morphologyEx_13(src.nativeObj, dst.nativeObj, op, kernel.nativeObj, anchor.x, anchor.y);
  3744. return;
  3745. #else
  3746. return;
  3747. #endif
  3748. }
  3749. //javadoc: morphologyEx(src, dst, op, kernel)
  3750. public static void morphologyEx (Mat src, Mat dst, int op, Mat kernel)
  3751. {
  3752. if (src != null) src.ThrowIfDisposed ();
  3753. if (dst != null) dst.ThrowIfDisposed ();
  3754. if (kernel != null) kernel.ThrowIfDisposed ();
  3755. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3756. imgproc_Imgproc_morphologyEx_14(src.nativeObj, dst.nativeObj, op, kernel.nativeObj);
  3757. return;
  3758. #else
  3759. return;
  3760. #endif
  3761. }
  3762. //
  3763. // C++: void cv::polylines(Mat& img, vector_vector_Point pts, bool isClosed, Scalar color, int thickness = 1, int lineType = LINE_8, int shift = 0)
  3764. //
  3765. //javadoc: polylines(img, pts, isClosed, color, thickness, lineType, shift)
  3766. public static void polylines (Mat img, List<MatOfPoint> pts, bool isClosed, Scalar color, int thickness, int lineType, int shift)
  3767. {
  3768. if (img != null) img.ThrowIfDisposed ();
  3769. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3770. List<Mat> pts_tmplm = new List<Mat>((pts != null) ? pts.Count : 0);
  3771. Mat pts_mat = Converters.vector_vector_Point_to_Mat(pts, pts_tmplm);
  3772. 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);
  3773. return;
  3774. #else
  3775. return;
  3776. #endif
  3777. }
  3778. //javadoc: polylines(img, pts, isClosed, color, thickness, lineType)
  3779. public static void polylines (Mat img, List<MatOfPoint> pts, bool isClosed, Scalar color, int thickness, int lineType)
  3780. {
  3781. if (img != null) img.ThrowIfDisposed ();
  3782. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3783. List<Mat> pts_tmplm = new List<Mat>((pts != null) ? pts.Count : 0);
  3784. Mat pts_mat = Converters.vector_vector_Point_to_Mat(pts, pts_tmplm);
  3785. imgproc_Imgproc_polylines_11(img.nativeObj, pts_mat.nativeObj, isClosed, color.val[0], color.val[1], color.val[2], color.val[3], thickness, lineType);
  3786. return;
  3787. #else
  3788. return;
  3789. #endif
  3790. }
  3791. //javadoc: polylines(img, pts, isClosed, color, thickness)
  3792. public static void polylines (Mat img, List<MatOfPoint> pts, bool isClosed, Scalar color, int thickness)
  3793. {
  3794. if (img != null) img.ThrowIfDisposed ();
  3795. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3796. List<Mat> pts_tmplm = new List<Mat>((pts != null) ? pts.Count : 0);
  3797. Mat pts_mat = Converters.vector_vector_Point_to_Mat(pts, pts_tmplm);
  3798. imgproc_Imgproc_polylines_12(img.nativeObj, pts_mat.nativeObj, isClosed, color.val[0], color.val[1], color.val[2], color.val[3], thickness);
  3799. return;
  3800. #else
  3801. return;
  3802. #endif
  3803. }
  3804. //javadoc: polylines(img, pts, isClosed, color)
  3805. public static void polylines (Mat img, List<MatOfPoint> pts, bool isClosed, Scalar color)
  3806. {
  3807. if (img != null) img.ThrowIfDisposed ();
  3808. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3809. List<Mat> pts_tmplm = new List<Mat>((pts != null) ? pts.Count : 0);
  3810. Mat pts_mat = Converters.vector_vector_Point_to_Mat(pts, pts_tmplm);
  3811. imgproc_Imgproc_polylines_13(img.nativeObj, pts_mat.nativeObj, isClosed, color.val[0], color.val[1], color.val[2], color.val[3]);
  3812. return;
  3813. #else
  3814. return;
  3815. #endif
  3816. }
  3817. //
  3818. // C++: void cv::preCornerDetect(Mat src, Mat& dst, int ksize, int borderType = BORDER_DEFAULT)
  3819. //
  3820. //javadoc: preCornerDetect(src, dst, ksize, borderType)
  3821. public static void preCornerDetect (Mat src, Mat dst, int ksize, int borderType)
  3822. {
  3823. if (src != null) src.ThrowIfDisposed ();
  3824. if (dst != null) dst.ThrowIfDisposed ();
  3825. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3826. imgproc_Imgproc_preCornerDetect_10(src.nativeObj, dst.nativeObj, ksize, borderType);
  3827. return;
  3828. #else
  3829. return;
  3830. #endif
  3831. }
  3832. //javadoc: preCornerDetect(src, dst, ksize)
  3833. public static void preCornerDetect (Mat src, Mat dst, int ksize)
  3834. {
  3835. if (src != null) src.ThrowIfDisposed ();
  3836. if (dst != null) dst.ThrowIfDisposed ();
  3837. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3838. imgproc_Imgproc_preCornerDetect_11(src.nativeObj, dst.nativeObj, ksize);
  3839. return;
  3840. #else
  3841. return;
  3842. #endif
  3843. }
  3844. //
  3845. // 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)
  3846. //
  3847. //javadoc: putText(img, text, org, fontFace, fontScale, color, thickness, lineType, bottomLeftOrigin)
  3848. public static void putText (Mat img, string text, Point org, int fontFace, double fontScale, Scalar color, int thickness, int lineType, bool bottomLeftOrigin)
  3849. {
  3850. if (img != null) img.ThrowIfDisposed ();
  3851. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3852. 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);
  3853. return;
  3854. #else
  3855. return;
  3856. #endif
  3857. }
  3858. //javadoc: putText(img, text, org, fontFace, fontScale, color, thickness, lineType)
  3859. public static void putText (Mat img, string text, Point org, int fontFace, double fontScale, Scalar color, int thickness, int lineType)
  3860. {
  3861. if (img != null) img.ThrowIfDisposed ();
  3862. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3863. 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);
  3864. return;
  3865. #else
  3866. return;
  3867. #endif
  3868. }
  3869. //javadoc: putText(img, text, org, fontFace, fontScale, color, thickness)
  3870. public static void putText (Mat img, string text, Point org, int fontFace, double fontScale, Scalar color, int thickness)
  3871. {
  3872. if (img != null) img.ThrowIfDisposed ();
  3873. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3874. 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);
  3875. return;
  3876. #else
  3877. return;
  3878. #endif
  3879. }
  3880. //javadoc: putText(img, text, org, fontFace, fontScale, color)
  3881. public static void putText (Mat img, string text, Point org, int fontFace, double fontScale, Scalar color)
  3882. {
  3883. if (img != null) img.ThrowIfDisposed ();
  3884. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3885. 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]);
  3886. return;
  3887. #else
  3888. return;
  3889. #endif
  3890. }
  3891. //
  3892. // C++: void cv::pyrDown(Mat src, Mat& dst, Size dstsize = Size(), int borderType = BORDER_DEFAULT)
  3893. //
  3894. //javadoc: pyrDown(src, dst, dstsize, borderType)
  3895. public static void pyrDown (Mat src, Mat dst, Size dstsize, int borderType)
  3896. {
  3897. if (src != null) src.ThrowIfDisposed ();
  3898. if (dst != null) dst.ThrowIfDisposed ();
  3899. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3900. imgproc_Imgproc_pyrDown_10(src.nativeObj, dst.nativeObj, dstsize.width, dstsize.height, borderType);
  3901. return;
  3902. #else
  3903. return;
  3904. #endif
  3905. }
  3906. //javadoc: pyrDown(src, dst, dstsize)
  3907. public static void pyrDown (Mat src, Mat dst, Size dstsize)
  3908. {
  3909. if (src != null) src.ThrowIfDisposed ();
  3910. if (dst != null) dst.ThrowIfDisposed ();
  3911. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3912. imgproc_Imgproc_pyrDown_11(src.nativeObj, dst.nativeObj, dstsize.width, dstsize.height);
  3913. return;
  3914. #else
  3915. return;
  3916. #endif
  3917. }
  3918. //javadoc: pyrDown(src, dst)
  3919. public static void pyrDown (Mat src, Mat dst)
  3920. {
  3921. if (src != null) src.ThrowIfDisposed ();
  3922. if (dst != null) dst.ThrowIfDisposed ();
  3923. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3924. imgproc_Imgproc_pyrDown_12(src.nativeObj, dst.nativeObj);
  3925. return;
  3926. #else
  3927. return;
  3928. #endif
  3929. }
  3930. //
  3931. // 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))
  3932. //
  3933. //javadoc: pyrMeanShiftFiltering(src, dst, sp, sr, maxLevel, termcrit)
  3934. public static void pyrMeanShiftFiltering (Mat src, Mat dst, double sp, double sr, int maxLevel, TermCriteria termcrit)
  3935. {
  3936. if (src != null) src.ThrowIfDisposed ();
  3937. if (dst != null) dst.ThrowIfDisposed ();
  3938. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3939. imgproc_Imgproc_pyrMeanShiftFiltering_10(src.nativeObj, dst.nativeObj, sp, sr, maxLevel, termcrit.type, termcrit.maxCount, termcrit.epsilon);
  3940. return;
  3941. #else
  3942. return;
  3943. #endif
  3944. }
  3945. //javadoc: pyrMeanShiftFiltering(src, dst, sp, sr, maxLevel)
  3946. public static void pyrMeanShiftFiltering (Mat src, Mat dst, double sp, double sr, int maxLevel)
  3947. {
  3948. if (src != null) src.ThrowIfDisposed ();
  3949. if (dst != null) dst.ThrowIfDisposed ();
  3950. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3951. imgproc_Imgproc_pyrMeanShiftFiltering_11(src.nativeObj, dst.nativeObj, sp, sr, maxLevel);
  3952. return;
  3953. #else
  3954. return;
  3955. #endif
  3956. }
  3957. //javadoc: pyrMeanShiftFiltering(src, dst, sp, sr)
  3958. public static void pyrMeanShiftFiltering (Mat src, Mat dst, double sp, double sr)
  3959. {
  3960. if (src != null) src.ThrowIfDisposed ();
  3961. if (dst != null) dst.ThrowIfDisposed ();
  3962. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3963. imgproc_Imgproc_pyrMeanShiftFiltering_12(src.nativeObj, dst.nativeObj, sp, sr);
  3964. return;
  3965. #else
  3966. return;
  3967. #endif
  3968. }
  3969. //
  3970. // C++: void cv::pyrUp(Mat src, Mat& dst, Size dstsize = Size(), int borderType = BORDER_DEFAULT)
  3971. //
  3972. //javadoc: pyrUp(src, dst, dstsize, borderType)
  3973. public static void pyrUp (Mat src, Mat dst, Size dstsize, int borderType)
  3974. {
  3975. if (src != null) src.ThrowIfDisposed ();
  3976. if (dst != null) dst.ThrowIfDisposed ();
  3977. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3978. imgproc_Imgproc_pyrUp_10(src.nativeObj, dst.nativeObj, dstsize.width, dstsize.height, borderType);
  3979. return;
  3980. #else
  3981. return;
  3982. #endif
  3983. }
  3984. //javadoc: pyrUp(src, dst, dstsize)
  3985. public static void pyrUp (Mat src, Mat dst, Size dstsize)
  3986. {
  3987. if (src != null) src.ThrowIfDisposed ();
  3988. if (dst != null) dst.ThrowIfDisposed ();
  3989. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  3990. imgproc_Imgproc_pyrUp_11(src.nativeObj, dst.nativeObj, dstsize.width, dstsize.height);
  3991. return;
  3992. #else
  3993. return;
  3994. #endif
  3995. }
  3996. //javadoc: pyrUp(src, dst)
  3997. public static void pyrUp (Mat src, Mat dst)
  3998. {
  3999. if (src != null) src.ThrowIfDisposed ();
  4000. if (dst != null) dst.ThrowIfDisposed ();
  4001. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  4002. imgproc_Imgproc_pyrUp_12(src.nativeObj, dst.nativeObj);
  4003. return;
  4004. #else
  4005. return;
  4006. #endif
  4007. }
  4008. //
  4009. // C++: void cv::rectangle(Mat& img, Point pt1, Point pt2, Scalar color, int thickness = 1, int lineType = LINE_8, int shift = 0)
  4010. //
  4011. //javadoc: rectangle(img, pt1, pt2, color, thickness, lineType, shift)
  4012. public static void rectangle (Mat img, Point pt1, Point pt2, Scalar color, int thickness, int lineType, int shift)
  4013. {
  4014. if (img != null) img.ThrowIfDisposed ();
  4015. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  4016. 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);
  4017. return;
  4018. #else
  4019. return;
  4020. #endif
  4021. }
  4022. //javadoc: rectangle(img, pt1, pt2, color, thickness, lineType)
  4023. public static void rectangle (Mat img, Point pt1, Point pt2, Scalar color, int thickness, int lineType)
  4024. {
  4025. if (img != null) img.ThrowIfDisposed ();
  4026. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  4027. 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);
  4028. return;
  4029. #else
  4030. return;
  4031. #endif
  4032. }
  4033. //javadoc: rectangle(img, pt1, pt2, color, thickness)
  4034. public static void rectangle (Mat img, Point pt1, Point pt2, Scalar color, int thickness)
  4035. {
  4036. if (img != null) img.ThrowIfDisposed ();
  4037. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  4038. 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);
  4039. return;
  4040. #else
  4041. return;
  4042. #endif
  4043. }
  4044. //javadoc: rectangle(img, pt1, pt2, color)
  4045. public static void rectangle (Mat img, Point pt1, Point pt2, Scalar color)
  4046. {
  4047. if (img != null) img.ThrowIfDisposed ();
  4048. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  4049. 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]);
  4050. return;
  4051. #else
  4052. return;
  4053. #endif
  4054. }
  4055. //
  4056. // C++: void cv::rectangle(Mat& img, Rect rec, Scalar color, int thickness = 1, int lineType = LINE_8, int shift = 0)
  4057. //
  4058. //javadoc: rectangle(img, rec, color, thickness, lineType, shift)
  4059. public static void rectangle (Mat img, Rect rec, Scalar color, int thickness, int lineType, int shift)
  4060. {
  4061. if (img != null) img.ThrowIfDisposed ();
  4062. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  4063. 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);
  4064. return;
  4065. #else
  4066. return;
  4067. #endif
  4068. }
  4069. //javadoc: rectangle(img, rec, color, thickness, lineType)
  4070. public static void rectangle (Mat img, Rect rec, Scalar color, int thickness, int lineType)
  4071. {
  4072. if (img != null) img.ThrowIfDisposed ();
  4073. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  4074. 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);
  4075. return;
  4076. #else
  4077. return;
  4078. #endif
  4079. }
  4080. //javadoc: rectangle(img, rec, color, thickness)
  4081. public static void rectangle (Mat img, Rect rec, Scalar color, int thickness)
  4082. {
  4083. if (img != null) img.ThrowIfDisposed ();
  4084. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  4085. 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);
  4086. return;
  4087. #else
  4088. return;
  4089. #endif
  4090. }
  4091. //javadoc: rectangle(img, rec, color)
  4092. public static void rectangle (Mat img, Rect rec, Scalar color)
  4093. {
  4094. if (img != null) img.ThrowIfDisposed ();
  4095. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  4096. 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]);
  4097. return;
  4098. #else
  4099. return;
  4100. #endif
  4101. }
  4102. //
  4103. // C++: void cv::remap(Mat src, Mat& dst, Mat map1, Mat map2, int interpolation, int borderMode = BORDER_CONSTANT, Scalar borderValue = Scalar())
  4104. //
  4105. //javadoc: remap(src, dst, map1, map2, interpolation, borderMode, borderValue)
  4106. public static void remap (Mat src, Mat dst, Mat map1, Mat map2, int interpolation, int borderMode, Scalar borderValue)
  4107. {
  4108. if (src != null) src.ThrowIfDisposed ();
  4109. if (dst != null) dst.ThrowIfDisposed ();
  4110. if (map1 != null) map1.ThrowIfDisposed ();
  4111. if (map2 != null) map2.ThrowIfDisposed ();
  4112. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  4113. 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]);
  4114. return;
  4115. #else
  4116. return;
  4117. #endif
  4118. }
  4119. //javadoc: remap(src, dst, map1, map2, interpolation, borderMode)
  4120. public static void remap (Mat src, Mat dst, Mat map1, Mat map2, int interpolation, int borderMode)
  4121. {
  4122. if (src != null) src.ThrowIfDisposed ();
  4123. if (dst != null) dst.ThrowIfDisposed ();
  4124. if (map1 != null) map1.ThrowIfDisposed ();
  4125. if (map2 != null) map2.ThrowIfDisposed ();
  4126. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  4127. imgproc_Imgproc_remap_11(src.nativeObj, dst.nativeObj, map1.nativeObj, map2.nativeObj, interpolation, borderMode);
  4128. return;
  4129. #else
  4130. return;
  4131. #endif
  4132. }
  4133. //javadoc: remap(src, dst, map1, map2, interpolation)
  4134. public static void remap (Mat src, Mat dst, Mat map1, Mat map2, int interpolation)
  4135. {
  4136. if (src != null) src.ThrowIfDisposed ();
  4137. if (dst != null) dst.ThrowIfDisposed ();
  4138. if (map1 != null) map1.ThrowIfDisposed ();
  4139. if (map2 != null) map2.ThrowIfDisposed ();
  4140. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  4141. imgproc_Imgproc_remap_12(src.nativeObj, dst.nativeObj, map1.nativeObj, map2.nativeObj, interpolation);
  4142. return;
  4143. #else
  4144. return;
  4145. #endif
  4146. }
  4147. //
  4148. // C++: void cv::resize(Mat src, Mat& dst, Size dsize, double fx = 0, double fy = 0, int interpolation = INTER_LINEAR)
  4149. //
  4150. //javadoc: resize(src, dst, dsize, fx, fy, interpolation)
  4151. public static void resize (Mat src, Mat dst, Size dsize, double fx, double fy, int interpolation)
  4152. {
  4153. if (src != null) src.ThrowIfDisposed ();
  4154. if (dst != null) dst.ThrowIfDisposed ();
  4155. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  4156. imgproc_Imgproc_resize_10(src.nativeObj, dst.nativeObj, dsize.width, dsize.height, fx, fy, interpolation);
  4157. return;
  4158. #else
  4159. return;
  4160. #endif
  4161. }
  4162. //javadoc: resize(src, dst, dsize, fx, fy)
  4163. public static void resize (Mat src, Mat dst, Size dsize, double fx, double fy)
  4164. {
  4165. if (src != null) src.ThrowIfDisposed ();
  4166. if (dst != null) dst.ThrowIfDisposed ();
  4167. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  4168. imgproc_Imgproc_resize_11(src.nativeObj, dst.nativeObj, dsize.width, dsize.height, fx, fy);
  4169. return;
  4170. #else
  4171. return;
  4172. #endif
  4173. }
  4174. //javadoc: resize(src, dst, dsize, fx)
  4175. public static void resize (Mat src, Mat dst, Size dsize, double fx)
  4176. {
  4177. if (src != null) src.ThrowIfDisposed ();
  4178. if (dst != null) dst.ThrowIfDisposed ();
  4179. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  4180. imgproc_Imgproc_resize_12(src.nativeObj, dst.nativeObj, dsize.width, dsize.height, fx);
  4181. return;
  4182. #else
  4183. return;
  4184. #endif
  4185. }
  4186. //javadoc: resize(src, dst, dsize)
  4187. public static void resize (Mat src, Mat dst, Size dsize)
  4188. {
  4189. if (src != null) src.ThrowIfDisposed ();
  4190. if (dst != null) dst.ThrowIfDisposed ();
  4191. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  4192. imgproc_Imgproc_resize_13(src.nativeObj, dst.nativeObj, dsize.width, dsize.height);
  4193. return;
  4194. #else
  4195. return;
  4196. #endif
  4197. }
  4198. //
  4199. // 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)
  4200. //
  4201. //javadoc: sepFilter2D(src, dst, ddepth, kernelX, kernelY, anchor, delta, borderType)
  4202. public static void sepFilter2D (Mat src, Mat dst, int ddepth, Mat kernelX, Mat kernelY, Point anchor, double delta, int borderType)
  4203. {
  4204. if (src != null) src.ThrowIfDisposed ();
  4205. if (dst != null) dst.ThrowIfDisposed ();
  4206. if (kernelX != null) kernelX.ThrowIfDisposed ();
  4207. if (kernelY != null) kernelY.ThrowIfDisposed ();
  4208. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  4209. imgproc_Imgproc_sepFilter2D_10(src.nativeObj, dst.nativeObj, ddepth, kernelX.nativeObj, kernelY.nativeObj, anchor.x, anchor.y, delta, borderType);
  4210. return;
  4211. #else
  4212. return;
  4213. #endif
  4214. }
  4215. //javadoc: sepFilter2D(src, dst, ddepth, kernelX, kernelY, anchor, delta)
  4216. public static void sepFilter2D (Mat src, Mat dst, int ddepth, Mat kernelX, Mat kernelY, Point anchor, double delta)
  4217. {
  4218. if (src != null) src.ThrowIfDisposed ();
  4219. if (dst != null) dst.ThrowIfDisposed ();
  4220. if (kernelX != null) kernelX.ThrowIfDisposed ();
  4221. if (kernelY != null) kernelY.ThrowIfDisposed ();
  4222. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  4223. imgproc_Imgproc_sepFilter2D_11(src.nativeObj, dst.nativeObj, ddepth, kernelX.nativeObj, kernelY.nativeObj, anchor.x, anchor.y, delta);
  4224. return;
  4225. #else
  4226. return;
  4227. #endif
  4228. }
  4229. //javadoc: sepFilter2D(src, dst, ddepth, kernelX, kernelY, anchor)
  4230. public static void sepFilter2D (Mat src, Mat dst, int ddepth, Mat kernelX, Mat kernelY, Point anchor)
  4231. {
  4232. if (src != null) src.ThrowIfDisposed ();
  4233. if (dst != null) dst.ThrowIfDisposed ();
  4234. if (kernelX != null) kernelX.ThrowIfDisposed ();
  4235. if (kernelY != null) kernelY.ThrowIfDisposed ();
  4236. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  4237. imgproc_Imgproc_sepFilter2D_12(src.nativeObj, dst.nativeObj, ddepth, kernelX.nativeObj, kernelY.nativeObj, anchor.x, anchor.y);
  4238. return;
  4239. #else
  4240. return;
  4241. #endif
  4242. }
  4243. //javadoc: sepFilter2D(src, dst, ddepth, kernelX, kernelY)
  4244. public static void sepFilter2D (Mat src, Mat dst, int ddepth, Mat kernelX, Mat kernelY)
  4245. {
  4246. if (src != null) src.ThrowIfDisposed ();
  4247. if (dst != null) dst.ThrowIfDisposed ();
  4248. if (kernelX != null) kernelX.ThrowIfDisposed ();
  4249. if (kernelY != null) kernelY.ThrowIfDisposed ();
  4250. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  4251. imgproc_Imgproc_sepFilter2D_13(src.nativeObj, dst.nativeObj, ddepth, kernelX.nativeObj, kernelY.nativeObj);
  4252. return;
  4253. #else
  4254. return;
  4255. #endif
  4256. }
  4257. //
  4258. // C++: void cv::spatialGradient(Mat src, Mat& dx, Mat& dy, int ksize = 3, int borderType = BORDER_DEFAULT)
  4259. //
  4260. //javadoc: spatialGradient(src, dx, dy, ksize, borderType)
  4261. public static void spatialGradient (Mat src, Mat dx, Mat dy, int ksize, int borderType)
  4262. {
  4263. if (src != null) src.ThrowIfDisposed ();
  4264. if (dx != null) dx.ThrowIfDisposed ();
  4265. if (dy != null) dy.ThrowIfDisposed ();
  4266. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  4267. imgproc_Imgproc_spatialGradient_10(src.nativeObj, dx.nativeObj, dy.nativeObj, ksize, borderType);
  4268. return;
  4269. #else
  4270. return;
  4271. #endif
  4272. }
  4273. //javadoc: spatialGradient(src, dx, dy, ksize)
  4274. public static void spatialGradient (Mat src, Mat dx, Mat dy, int ksize)
  4275. {
  4276. if (src != null) src.ThrowIfDisposed ();
  4277. if (dx != null) dx.ThrowIfDisposed ();
  4278. if (dy != null) dy.ThrowIfDisposed ();
  4279. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  4280. imgproc_Imgproc_spatialGradient_11(src.nativeObj, dx.nativeObj, dy.nativeObj, ksize);
  4281. return;
  4282. #else
  4283. return;
  4284. #endif
  4285. }
  4286. //javadoc: spatialGradient(src, dx, dy)
  4287. public static void spatialGradient (Mat src, Mat dx, Mat dy)
  4288. {
  4289. if (src != null) src.ThrowIfDisposed ();
  4290. if (dx != null) dx.ThrowIfDisposed ();
  4291. if (dy != null) dy.ThrowIfDisposed ();
  4292. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  4293. imgproc_Imgproc_spatialGradient_12(src.nativeObj, dx.nativeObj, dy.nativeObj);
  4294. return;
  4295. #else
  4296. return;
  4297. #endif
  4298. }
  4299. //
  4300. // C++: void cv::sqrBoxFilter(Mat src, Mat& dst, int ddepth, Size ksize, Point anchor = Point(-1, -1), bool normalize = true, int borderType = BORDER_DEFAULT)
  4301. //
  4302. //javadoc: sqrBoxFilter(src, dst, ddepth, ksize, anchor, normalize, borderType)
  4303. public static void sqrBoxFilter (Mat src, Mat dst, int ddepth, Size ksize, Point anchor, bool normalize, int borderType)
  4304. {
  4305. if (src != null) src.ThrowIfDisposed ();
  4306. if (dst != null) dst.ThrowIfDisposed ();
  4307. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  4308. imgproc_Imgproc_sqrBoxFilter_10(src.nativeObj, dst.nativeObj, ddepth, ksize.width, ksize.height, anchor.x, anchor.y, normalize, borderType);
  4309. return;
  4310. #else
  4311. return;
  4312. #endif
  4313. }
  4314. //javadoc: sqrBoxFilter(src, dst, ddepth, ksize, anchor, normalize)
  4315. public static void sqrBoxFilter (Mat src, Mat dst, int ddepth, Size ksize, Point anchor, bool normalize)
  4316. {
  4317. if (src != null) src.ThrowIfDisposed ();
  4318. if (dst != null) dst.ThrowIfDisposed ();
  4319. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  4320. imgproc_Imgproc_sqrBoxFilter_11(src.nativeObj, dst.nativeObj, ddepth, ksize.width, ksize.height, anchor.x, anchor.y, normalize);
  4321. return;
  4322. #else
  4323. return;
  4324. #endif
  4325. }
  4326. //javadoc: sqrBoxFilter(src, dst, ddepth, ksize, anchor)
  4327. public static void sqrBoxFilter (Mat src, Mat dst, int ddepth, Size ksize, Point anchor)
  4328. {
  4329. if (src != null) src.ThrowIfDisposed ();
  4330. if (dst != null) dst.ThrowIfDisposed ();
  4331. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  4332. imgproc_Imgproc_sqrBoxFilter_12(src.nativeObj, dst.nativeObj, ddepth, ksize.width, ksize.height, anchor.x, anchor.y);
  4333. return;
  4334. #else
  4335. return;
  4336. #endif
  4337. }
  4338. //javadoc: sqrBoxFilter(src, dst, ddepth, ksize)
  4339. public static void sqrBoxFilter (Mat src, Mat dst, int ddepth, Size ksize)
  4340. {
  4341. if (src != null) src.ThrowIfDisposed ();
  4342. if (dst != null) dst.ThrowIfDisposed ();
  4343. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  4344. imgproc_Imgproc_sqrBoxFilter_13(src.nativeObj, dst.nativeObj, ddepth, ksize.width, ksize.height);
  4345. return;
  4346. #else
  4347. return;
  4348. #endif
  4349. }
  4350. //
  4351. // C++: void cv::warpAffine(Mat src, Mat& dst, Mat M, Size dsize, int flags = INTER_LINEAR, int borderMode = BORDER_CONSTANT, Scalar borderValue = Scalar())
  4352. //
  4353. //javadoc: warpAffine(src, dst, M, dsize, flags, borderMode, borderValue)
  4354. public static void warpAffine (Mat src, Mat dst, Mat M, Size dsize, int flags, int borderMode, Scalar borderValue)
  4355. {
  4356. if (src != null) src.ThrowIfDisposed ();
  4357. if (dst != null) dst.ThrowIfDisposed ();
  4358. if (M != null) M.ThrowIfDisposed ();
  4359. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  4360. 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]);
  4361. return;
  4362. #else
  4363. return;
  4364. #endif
  4365. }
  4366. //javadoc: warpAffine(src, dst, M, dsize, flags, borderMode)
  4367. public static void warpAffine (Mat src, Mat dst, Mat M, Size dsize, int flags, int borderMode)
  4368. {
  4369. if (src != null) src.ThrowIfDisposed ();
  4370. if (dst != null) dst.ThrowIfDisposed ();
  4371. if (M != null) M.ThrowIfDisposed ();
  4372. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  4373. imgproc_Imgproc_warpAffine_11(src.nativeObj, dst.nativeObj, M.nativeObj, dsize.width, dsize.height, flags, borderMode);
  4374. return;
  4375. #else
  4376. return;
  4377. #endif
  4378. }
  4379. //javadoc: warpAffine(src, dst, M, dsize, flags)
  4380. public static void warpAffine (Mat src, Mat dst, Mat M, Size dsize, int flags)
  4381. {
  4382. if (src != null) src.ThrowIfDisposed ();
  4383. if (dst != null) dst.ThrowIfDisposed ();
  4384. if (M != null) M.ThrowIfDisposed ();
  4385. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  4386. imgproc_Imgproc_warpAffine_12(src.nativeObj, dst.nativeObj, M.nativeObj, dsize.width, dsize.height, flags);
  4387. return;
  4388. #else
  4389. return;
  4390. #endif
  4391. }
  4392. //javadoc: warpAffine(src, dst, M, dsize)
  4393. public static void warpAffine (Mat src, Mat dst, Mat M, Size dsize)
  4394. {
  4395. if (src != null) src.ThrowIfDisposed ();
  4396. if (dst != null) dst.ThrowIfDisposed ();
  4397. if (M != null) M.ThrowIfDisposed ();
  4398. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  4399. imgproc_Imgproc_warpAffine_13(src.nativeObj, dst.nativeObj, M.nativeObj, dsize.width, dsize.height);
  4400. return;
  4401. #else
  4402. return;
  4403. #endif
  4404. }
  4405. //
  4406. // C++: void cv::warpPerspective(Mat src, Mat& dst, Mat M, Size dsize, int flags = INTER_LINEAR, int borderMode = BORDER_CONSTANT, Scalar borderValue = Scalar())
  4407. //
  4408. //javadoc: warpPerspective(src, dst, M, dsize, flags, borderMode, borderValue)
  4409. public static void warpPerspective (Mat src, Mat dst, Mat M, Size dsize, int flags, int borderMode, Scalar borderValue)
  4410. {
  4411. if (src != null) src.ThrowIfDisposed ();
  4412. if (dst != null) dst.ThrowIfDisposed ();
  4413. if (M != null) M.ThrowIfDisposed ();
  4414. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  4415. 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]);
  4416. return;
  4417. #else
  4418. return;
  4419. #endif
  4420. }
  4421. //javadoc: warpPerspective(src, dst, M, dsize, flags, borderMode)
  4422. public static void warpPerspective (Mat src, Mat dst, Mat M, Size dsize, int flags, int borderMode)
  4423. {
  4424. if (src != null) src.ThrowIfDisposed ();
  4425. if (dst != null) dst.ThrowIfDisposed ();
  4426. if (M != null) M.ThrowIfDisposed ();
  4427. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  4428. imgproc_Imgproc_warpPerspective_11(src.nativeObj, dst.nativeObj, M.nativeObj, dsize.width, dsize.height, flags, borderMode);
  4429. return;
  4430. #else
  4431. return;
  4432. #endif
  4433. }
  4434. //javadoc: warpPerspective(src, dst, M, dsize, flags)
  4435. public static void warpPerspective (Mat src, Mat dst, Mat M, Size dsize, int flags)
  4436. {
  4437. if (src != null) src.ThrowIfDisposed ();
  4438. if (dst != null) dst.ThrowIfDisposed ();
  4439. if (M != null) M.ThrowIfDisposed ();
  4440. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  4441. imgproc_Imgproc_warpPerspective_12(src.nativeObj, dst.nativeObj, M.nativeObj, dsize.width, dsize.height, flags);
  4442. return;
  4443. #else
  4444. return;
  4445. #endif
  4446. }
  4447. //javadoc: warpPerspective(src, dst, M, dsize)
  4448. public static void warpPerspective (Mat src, Mat dst, Mat M, Size dsize)
  4449. {
  4450. if (src != null) src.ThrowIfDisposed ();
  4451. if (dst != null) dst.ThrowIfDisposed ();
  4452. if (M != null) M.ThrowIfDisposed ();
  4453. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  4454. imgproc_Imgproc_warpPerspective_13(src.nativeObj, dst.nativeObj, M.nativeObj, dsize.width, dsize.height);
  4455. return;
  4456. #else
  4457. return;
  4458. #endif
  4459. }
  4460. //
  4461. // C++: void cv::warpPolar(Mat src, Mat& dst, Size dsize, Point2f center, double maxRadius, int flags)
  4462. //
  4463. //javadoc: warpPolar(src, dst, dsize, center, maxRadius, flags)
  4464. public static void warpPolar (Mat src, Mat dst, Size dsize, Point center, double maxRadius, int flags)
  4465. {
  4466. if (src != null) src.ThrowIfDisposed ();
  4467. if (dst != null) dst.ThrowIfDisposed ();
  4468. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  4469. imgproc_Imgproc_warpPolar_10(src.nativeObj, dst.nativeObj, dsize.width, dsize.height, center.x, center.y, maxRadius, flags);
  4470. return;
  4471. #else
  4472. return;
  4473. #endif
  4474. }
  4475. //
  4476. // C++: void cv::watershed(Mat image, Mat& markers)
  4477. //
  4478. //javadoc: watershed(image, markers)
  4479. public static void watershed (Mat image, Mat markers)
  4480. {
  4481. if (image != null) image.ThrowIfDisposed ();
  4482. if (markers != null) markers.ThrowIfDisposed ();
  4483. #if ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  4484. imgproc_Imgproc_watershed_10(image.nativeObj, markers.nativeObj);
  4485. return;
  4486. #else
  4487. return;
  4488. #endif
  4489. }
  4490. // C++: Size getTextSize(const String& text, int fontFace, double fontScale, int thickness, int* baseLine);
  4491. //javadoc:getTextSize(text, fontFace, fontScale, thickness, baseLine)
  4492. public static Size getTextSize (string text, int fontFace, double fontScale, int thickness, int[] baseLine)
  4493. {
  4494. #if UNITY_PRO_LICENSE || ((UNITY_ANDROID || UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR) || UNITY_5 || UNITY_5_3_OR_NEWER
  4495. if (baseLine != null && baseLine.Length != 1)
  4496. throw new CvException ("'baseLine' must be 'int[1]' or 'null'.");
  4497. double[] tmpArray = new double[2];
  4498. imgproc_Imgproc_n_1getTextSize (text, fontFace, fontScale, thickness, baseLine, tmpArray);
  4499. Size retVal = new Size (tmpArray);
  4500. return retVal;
  4501. #else
  4502. return null;
  4503. #endif
  4504. }
  4505. #if (UNITY_IOS || UNITY_WEBGL) && !UNITY_EDITOR
  4506. const string LIBNAME = "__Internal";
  4507. #else
  4508. const string LIBNAME = "opencvforunity";
  4509. #endif
  4510. // C++: Mat cv::getAffineTransform(vector_Point2f src, vector_Point2f dst)
  4511. [DllImport (LIBNAME)]
  4512. private static extern IntPtr imgproc_Imgproc_getAffineTransform_10 (IntPtr src_mat_nativeObj, IntPtr dst_mat_nativeObj);
  4513. // C++: Mat cv::getGaborKernel(Size ksize, double sigma, double theta, double lambd, double gamma, double psi = CV_PI*0.5, int ktype = CV_64F)
  4514. [DllImport (LIBNAME)]
  4515. 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);
  4516. [DllImport (LIBNAME)]
  4517. private static extern IntPtr imgproc_Imgproc_getGaborKernel_11 (double ksize_width, double ksize_height, double sigma, double theta, double lambd, double gamma, double psi);
  4518. [DllImport (LIBNAME)]
  4519. private static extern IntPtr imgproc_Imgproc_getGaborKernel_12 (double ksize_width, double ksize_height, double sigma, double theta, double lambd, double gamma);
  4520. // C++: Mat cv::getGaussianKernel(int ksize, double sigma, int ktype = CV_64F)
  4521. [DllImport (LIBNAME)]
  4522. private static extern IntPtr imgproc_Imgproc_getGaussianKernel_10 (int ksize, double sigma, int ktype);
  4523. [DllImport (LIBNAME)]
  4524. private static extern IntPtr imgproc_Imgproc_getGaussianKernel_11 (int ksize, double sigma);
  4525. // C++: Mat cv::getPerspectiveTransform(Mat src, Mat dst, int solveMethod = DECOMP_LU)
  4526. [DllImport (LIBNAME)]
  4527. private static extern IntPtr imgproc_Imgproc_getPerspectiveTransform_10 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int solveMethod);
  4528. [DllImport (LIBNAME)]
  4529. private static extern IntPtr imgproc_Imgproc_getPerspectiveTransform_11 (IntPtr src_nativeObj, IntPtr dst_nativeObj);
  4530. // C++: Mat cv::getRotationMatrix2D(Point2f center, double angle, double scale)
  4531. [DllImport (LIBNAME)]
  4532. private static extern IntPtr imgproc_Imgproc_getRotationMatrix2D_10 (double center_x, double center_y, double angle, double scale);
  4533. // C++: Mat cv::getStructuringElement(int shape, Size ksize, Point anchor = Point(-1,-1))
  4534. [DllImport (LIBNAME)]
  4535. private static extern IntPtr imgproc_Imgproc_getStructuringElement_10 (int shape, double ksize_width, double ksize_height, double anchor_x, double anchor_y);
  4536. [DllImport (LIBNAME)]
  4537. private static extern IntPtr imgproc_Imgproc_getStructuringElement_11 (int shape, double ksize_width, double ksize_height);
  4538. // C++: Moments cv::moments(Mat array, bool binaryImage = false)
  4539. [DllImport (LIBNAME)]
  4540. private static extern void imgproc_Imgproc_moments_10 (IntPtr array_nativeObj, bool binaryImage, double[] retVal);
  4541. [DllImport (LIBNAME)]
  4542. private static extern void imgproc_Imgproc_moments_11 (IntPtr array_nativeObj, double[] retVal);
  4543. // C++: Point2d cv::phaseCorrelate(Mat src1, Mat src2, Mat window = Mat(), double* response = 0)
  4544. [DllImport (LIBNAME)]
  4545. private static extern void imgproc_Imgproc_phaseCorrelate_10 (IntPtr src1_nativeObj, IntPtr src2_nativeObj, IntPtr window_nativeObj, double[] response_out, double[] retVal);
  4546. [DllImport (LIBNAME)]
  4547. private static extern void imgproc_Imgproc_phaseCorrelate_11 (IntPtr src1_nativeObj, IntPtr src2_nativeObj, IntPtr window_nativeObj, double[] retVal);
  4548. [DllImport (LIBNAME)]
  4549. private static extern void imgproc_Imgproc_phaseCorrelate_12 (IntPtr src1_nativeObj, IntPtr src2_nativeObj, double[] retVal);
  4550. // C++: Ptr_CLAHE cv::createCLAHE(double clipLimit = 40.0, Size tileGridSize = Size(8, 8))
  4551. [DllImport (LIBNAME)]
  4552. private static extern IntPtr imgproc_Imgproc_createCLAHE_10 (double clipLimit, double tileGridSize_width, double tileGridSize_height);
  4553. [DllImport (LIBNAME)]
  4554. private static extern IntPtr imgproc_Imgproc_createCLAHE_11 (double clipLimit);
  4555. [DllImport (LIBNAME)]
  4556. private static extern IntPtr imgproc_Imgproc_createCLAHE_12 ();
  4557. // 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)
  4558. [DllImport (LIBNAME)]
  4559. 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);
  4560. [DllImport (LIBNAME)]
  4561. 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);
  4562. [DllImport (LIBNAME)]
  4563. private static extern IntPtr imgproc_Imgproc_createLineSegmentDetector_12 (int _refine, double _scale, double _sigma_scale, double _quant, double _ang_th, double _log_eps);
  4564. [DllImport (LIBNAME)]
  4565. private static extern IntPtr imgproc_Imgproc_createLineSegmentDetector_13 (int _refine, double _scale, double _sigma_scale, double _quant, double _ang_th);
  4566. [DllImport (LIBNAME)]
  4567. private static extern IntPtr imgproc_Imgproc_createLineSegmentDetector_14 (int _refine, double _scale, double _sigma_scale, double _quant);
  4568. [DllImport (LIBNAME)]
  4569. private static extern IntPtr imgproc_Imgproc_createLineSegmentDetector_15 (int _refine, double _scale, double _sigma_scale);
  4570. [DllImport (LIBNAME)]
  4571. private static extern IntPtr imgproc_Imgproc_createLineSegmentDetector_16 (int _refine, double _scale);
  4572. [DllImport (LIBNAME)]
  4573. private static extern IntPtr imgproc_Imgproc_createLineSegmentDetector_17 (int _refine);
  4574. [DllImport (LIBNAME)]
  4575. private static extern IntPtr imgproc_Imgproc_createLineSegmentDetector_18 ();
  4576. // C++: Rect cv::boundingRect(Mat array)
  4577. [DllImport (LIBNAME)]
  4578. private static extern void imgproc_Imgproc_boundingRect_10 (IntPtr array_nativeObj, double[] retVal);
  4579. // C++: RotatedRect cv::fitEllipse(vector_Point2f points)
  4580. [DllImport (LIBNAME)]
  4581. private static extern void imgproc_Imgproc_fitEllipse_10 (IntPtr points_mat_nativeObj, double[] retVal);
  4582. // C++: RotatedRect cv::fitEllipseAMS(Mat points)
  4583. [DllImport (LIBNAME)]
  4584. private static extern void imgproc_Imgproc_fitEllipseAMS_10 (IntPtr points_nativeObj, double[] retVal);
  4585. // C++: RotatedRect cv::fitEllipseDirect(Mat points)
  4586. [DllImport (LIBNAME)]
  4587. private static extern void imgproc_Imgproc_fitEllipseDirect_10 (IntPtr points_nativeObj, double[] retVal);
  4588. // C++: RotatedRect cv::minAreaRect(vector_Point2f points)
  4589. [DllImport (LIBNAME)]
  4590. private static extern void imgproc_Imgproc_minAreaRect_10 (IntPtr points_mat_nativeObj, double[] retVal);
  4591. // C++: bool cv::clipLine(Rect imgRect, Point& pt1, Point& pt2)
  4592. [DllImport (LIBNAME)]
  4593. 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);
  4594. // C++: bool cv::isContourConvex(vector_Point contour)
  4595. [DllImport (LIBNAME)]
  4596. private static extern bool imgproc_Imgproc_isContourConvex_10 (IntPtr contour_mat_nativeObj);
  4597. // C++: double cv::arcLength(vector_Point2f curve, bool closed)
  4598. [DllImport (LIBNAME)]
  4599. private static extern double imgproc_Imgproc_arcLength_10 (IntPtr curve_mat_nativeObj, bool closed);
  4600. // C++: double cv::compareHist(Mat H1, Mat H2, int method)
  4601. [DllImport (LIBNAME)]
  4602. private static extern double imgproc_Imgproc_compareHist_10 (IntPtr H1_nativeObj, IntPtr H2_nativeObj, int method);
  4603. // C++: double cv::contourArea(Mat contour, bool oriented = false)
  4604. [DllImport (LIBNAME)]
  4605. private static extern double imgproc_Imgproc_contourArea_10 (IntPtr contour_nativeObj, bool oriented);
  4606. [DllImport (LIBNAME)]
  4607. private static extern double imgproc_Imgproc_contourArea_11 (IntPtr contour_nativeObj);
  4608. // C++: double cv::getFontScaleFromHeight(int fontFace, int pixelHeight, int thickness = 1)
  4609. [DllImport (LIBNAME)]
  4610. private static extern double imgproc_Imgproc_getFontScaleFromHeight_10 (int fontFace, int pixelHeight, int thickness);
  4611. [DllImport (LIBNAME)]
  4612. private static extern double imgproc_Imgproc_getFontScaleFromHeight_11 (int fontFace, int pixelHeight);
  4613. // C++: double cv::matchShapes(Mat contour1, Mat contour2, int method, double parameter)
  4614. [DllImport (LIBNAME)]
  4615. private static extern double imgproc_Imgproc_matchShapes_10 (IntPtr contour1_nativeObj, IntPtr contour2_nativeObj, int method, double parameter);
  4616. // C++: double cv::minEnclosingTriangle(Mat points, Mat& triangle)
  4617. [DllImport (LIBNAME)]
  4618. private static extern double imgproc_Imgproc_minEnclosingTriangle_10 (IntPtr points_nativeObj, IntPtr triangle_nativeObj);
  4619. // C++: double cv::pointPolygonTest(vector_Point2f contour, Point2f pt, bool measureDist)
  4620. [DllImport (LIBNAME)]
  4621. private static extern double imgproc_Imgproc_pointPolygonTest_10 (IntPtr contour_mat_nativeObj, double pt_x, double pt_y, bool measureDist);
  4622. // C++: double cv::threshold(Mat src, Mat& dst, double thresh, double maxval, int type)
  4623. [DllImport (LIBNAME)]
  4624. private static extern double imgproc_Imgproc_threshold_10 (IntPtr src_nativeObj, IntPtr dst_nativeObj, double thresh, double maxval, int type);
  4625. // C++: float cv::intersectConvexConvex(Mat _p1, Mat _p2, Mat& _p12, bool handleNested = true)
  4626. [DllImport (LIBNAME)]
  4627. private static extern float imgproc_Imgproc_intersectConvexConvex_10 (IntPtr _p1_nativeObj, IntPtr _p2_nativeObj, IntPtr _p12_nativeObj, bool handleNested);
  4628. [DllImport (LIBNAME)]
  4629. private static extern float imgproc_Imgproc_intersectConvexConvex_11 (IntPtr _p1_nativeObj, IntPtr _p2_nativeObj, IntPtr _p12_nativeObj);
  4630. // C++: float cv::wrapperEMD(Mat signature1, Mat signature2, int distType, Mat cost = Mat(), Ptr_float& lowerBound = Ptr<float>(), Mat& flow = Mat())
  4631. [DllImport (LIBNAME)]
  4632. private static extern float imgproc_Imgproc_EMD_10 (IntPtr signature1_nativeObj, IntPtr signature2_nativeObj, int distType, IntPtr cost_nativeObj, IntPtr flow_nativeObj);
  4633. [DllImport (LIBNAME)]
  4634. private static extern float imgproc_Imgproc_EMD_11 (IntPtr signature1_nativeObj, IntPtr signature2_nativeObj, int distType, IntPtr cost_nativeObj);
  4635. [DllImport (LIBNAME)]
  4636. private static extern float imgproc_Imgproc_EMD_13 (IntPtr signature1_nativeObj, IntPtr signature2_nativeObj, int distType);
  4637. // C++: int cv::connectedComponents(Mat image, Mat& labels, int connectivity, int ltype, int ccltype)
  4638. [DllImport (LIBNAME)]
  4639. private static extern int imgproc_Imgproc_connectedComponentsWithAlgorithm_10 (IntPtr image_nativeObj, IntPtr labels_nativeObj, int connectivity, int ltype, int ccltype);
  4640. // C++: int cv::connectedComponents(Mat image, Mat& labels, int connectivity = 8, int ltype = CV_32S)
  4641. [DllImport (LIBNAME)]
  4642. private static extern int imgproc_Imgproc_connectedComponents_10 (IntPtr image_nativeObj, IntPtr labels_nativeObj, int connectivity, int ltype);
  4643. [DllImport (LIBNAME)]
  4644. private static extern int imgproc_Imgproc_connectedComponents_11 (IntPtr image_nativeObj, IntPtr labels_nativeObj, int connectivity);
  4645. [DllImport (LIBNAME)]
  4646. private static extern int imgproc_Imgproc_connectedComponents_12 (IntPtr image_nativeObj, IntPtr labels_nativeObj);
  4647. // C++: int cv::connectedComponentsWithStats(Mat image, Mat& labels, Mat& stats, Mat& centroids, int connectivity, int ltype, int ccltype)
  4648. [DllImport (LIBNAME)]
  4649. 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);
  4650. // C++: int cv::connectedComponentsWithStats(Mat image, Mat& labels, Mat& stats, Mat& centroids, int connectivity = 8, int ltype = CV_32S)
  4651. [DllImport (LIBNAME)]
  4652. private static extern int imgproc_Imgproc_connectedComponentsWithStats_10 (IntPtr image_nativeObj, IntPtr labels_nativeObj, IntPtr stats_nativeObj, IntPtr centroids_nativeObj, int connectivity, int ltype);
  4653. [DllImport (LIBNAME)]
  4654. private static extern int imgproc_Imgproc_connectedComponentsWithStats_11 (IntPtr image_nativeObj, IntPtr labels_nativeObj, IntPtr stats_nativeObj, IntPtr centroids_nativeObj, int connectivity);
  4655. [DllImport (LIBNAME)]
  4656. private static extern int imgproc_Imgproc_connectedComponentsWithStats_12 (IntPtr image_nativeObj, IntPtr labels_nativeObj, IntPtr stats_nativeObj, IntPtr centroids_nativeObj);
  4657. // C++: int cv::floodFill(Mat& image, Mat& mask, Point seedPoint, Scalar newVal, Rect* rect = 0, Scalar loDiff = Scalar(), Scalar upDiff = Scalar(), int flags = 4)
  4658. [DllImport (LIBNAME)]
  4659. 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);
  4660. [DllImport (LIBNAME)]
  4661. 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);
  4662. [DllImport (LIBNAME)]
  4663. 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);
  4664. [DllImport (LIBNAME)]
  4665. 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);
  4666. [DllImport (LIBNAME)]
  4667. 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);
  4668. // C++: int cv::rotatedRectangleIntersection(RotatedRect rect1, RotatedRect rect2, Mat& intersectingRegion)
  4669. [DllImport (LIBNAME)]
  4670. 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);
  4671. // C++: void cv::Canny(Mat dx, Mat dy, Mat& edges, double threshold1, double threshold2, bool L2gradient = false)
  4672. [DllImport (LIBNAME)]
  4673. private static extern void imgproc_Imgproc_Canny_10 (IntPtr dx_nativeObj, IntPtr dy_nativeObj, IntPtr edges_nativeObj, double threshold1, double threshold2, bool L2gradient);
  4674. [DllImport (LIBNAME)]
  4675. private static extern void imgproc_Imgproc_Canny_11 (IntPtr dx_nativeObj, IntPtr dy_nativeObj, IntPtr edges_nativeObj, double threshold1, double threshold2);
  4676. // C++: void cv::Canny(Mat image, Mat& edges, double threshold1, double threshold2, int apertureSize = 3, bool L2gradient = false)
  4677. [DllImport (LIBNAME)]
  4678. private static extern void imgproc_Imgproc_Canny_12 (IntPtr image_nativeObj, IntPtr edges_nativeObj, double threshold1, double threshold2, int apertureSize, bool L2gradient);
  4679. [DllImport (LIBNAME)]
  4680. private static extern void imgproc_Imgproc_Canny_13 (IntPtr image_nativeObj, IntPtr edges_nativeObj, double threshold1, double threshold2, int apertureSize);
  4681. [DllImport (LIBNAME)]
  4682. private static extern void imgproc_Imgproc_Canny_14 (IntPtr image_nativeObj, IntPtr edges_nativeObj, double threshold1, double threshold2);
  4683. // C++: void cv::GaussianBlur(Mat src, Mat& dst, Size ksize, double sigmaX, double sigmaY = 0, int borderType = BORDER_DEFAULT)
  4684. [DllImport (LIBNAME)]
  4685. 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);
  4686. [DllImport (LIBNAME)]
  4687. private static extern void imgproc_Imgproc_GaussianBlur_11 (IntPtr src_nativeObj, IntPtr dst_nativeObj, double ksize_width, double ksize_height, double sigmaX, double sigmaY);
  4688. [DllImport (LIBNAME)]
  4689. private static extern void imgproc_Imgproc_GaussianBlur_12 (IntPtr src_nativeObj, IntPtr dst_nativeObj, double ksize_width, double ksize_height, double sigmaX);
  4690. // 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)
  4691. [DllImport (LIBNAME)]
  4692. 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);
  4693. [DllImport (LIBNAME)]
  4694. 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);
  4695. [DllImport (LIBNAME)]
  4696. private static extern void imgproc_Imgproc_HoughCircles_12 (IntPtr image_nativeObj, IntPtr circles_nativeObj, int method, double dp, double minDist, double param1, double param2);
  4697. [DllImport (LIBNAME)]
  4698. private static extern void imgproc_Imgproc_HoughCircles_13 (IntPtr image_nativeObj, IntPtr circles_nativeObj, int method, double dp, double minDist, double param1);
  4699. [DllImport (LIBNAME)]
  4700. private static extern void imgproc_Imgproc_HoughCircles_14 (IntPtr image_nativeObj, IntPtr circles_nativeObj, int method, double dp, double minDist);
  4701. // 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)
  4702. [DllImport (LIBNAME)]
  4703. 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);
  4704. [DllImport (LIBNAME)]
  4705. 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);
  4706. [DllImport (LIBNAME)]
  4707. private static extern void imgproc_Imgproc_HoughLines_12 (IntPtr image_nativeObj, IntPtr lines_nativeObj, double rho, double theta, int threshold, double srn, double stn);
  4708. [DllImport (LIBNAME)]
  4709. private static extern void imgproc_Imgproc_HoughLines_13 (IntPtr image_nativeObj, IntPtr lines_nativeObj, double rho, double theta, int threshold, double srn);
  4710. [DllImport (LIBNAME)]
  4711. private static extern void imgproc_Imgproc_HoughLines_14 (IntPtr image_nativeObj, IntPtr lines_nativeObj, double rho, double theta, int threshold);
  4712. // C++: void cv::HoughLinesP(Mat image, Mat& lines, double rho, double theta, int threshold, double minLineLength = 0, double maxLineGap = 0)
  4713. [DllImport (LIBNAME)]
  4714. private static extern void imgproc_Imgproc_HoughLinesP_10 (IntPtr image_nativeObj, IntPtr lines_nativeObj, double rho, double theta, int threshold, double minLineLength, double maxLineGap);
  4715. [DllImport (LIBNAME)]
  4716. private static extern void imgproc_Imgproc_HoughLinesP_11 (IntPtr image_nativeObj, IntPtr lines_nativeObj, double rho, double theta, int threshold, double minLineLength);
  4717. [DllImport (LIBNAME)]
  4718. private static extern void imgproc_Imgproc_HoughLinesP_12 (IntPtr image_nativeObj, IntPtr lines_nativeObj, double rho, double theta, int threshold);
  4719. // 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)
  4720. [DllImport (LIBNAME)]
  4721. 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);
  4722. // C++: void cv::HuMoments(Moments m, Mat& hu)
  4723. [DllImport (LIBNAME)]
  4724. 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);
  4725. // C++: void cv::Laplacian(Mat src, Mat& dst, int ddepth, int ksize = 1, double scale = 1, double delta = 0, int borderType = BORDER_DEFAULT)
  4726. [DllImport (LIBNAME)]
  4727. private static extern void imgproc_Imgproc_Laplacian_10 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, int ksize, double scale, double delta, int borderType);
  4728. [DllImport (LIBNAME)]
  4729. private static extern void imgproc_Imgproc_Laplacian_11 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, int ksize, double scale, double delta);
  4730. [DllImport (LIBNAME)]
  4731. private static extern void imgproc_Imgproc_Laplacian_12 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, int ksize, double scale);
  4732. [DllImport (LIBNAME)]
  4733. private static extern void imgproc_Imgproc_Laplacian_13 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, int ksize);
  4734. [DllImport (LIBNAME)]
  4735. private static extern void imgproc_Imgproc_Laplacian_14 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth);
  4736. // C++: void cv::Scharr(Mat src, Mat& dst, int ddepth, int dx, int dy, double scale = 1, double delta = 0, int borderType = BORDER_DEFAULT)
  4737. [DllImport (LIBNAME)]
  4738. 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);
  4739. [DllImport (LIBNAME)]
  4740. private static extern void imgproc_Imgproc_Scharr_11 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, int dx, int dy, double scale, double delta);
  4741. [DllImport (LIBNAME)]
  4742. private static extern void imgproc_Imgproc_Scharr_12 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, int dx, int dy, double scale);
  4743. [DllImport (LIBNAME)]
  4744. private static extern void imgproc_Imgproc_Scharr_13 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, int dx, int dy);
  4745. // 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)
  4746. [DllImport (LIBNAME)]
  4747. 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);
  4748. [DllImport (LIBNAME)]
  4749. 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);
  4750. [DllImport (LIBNAME)]
  4751. private static extern void imgproc_Imgproc_Sobel_12 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, int dx, int dy, int ksize, double scale);
  4752. [DllImport (LIBNAME)]
  4753. private static extern void imgproc_Imgproc_Sobel_13 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, int dx, int dy, int ksize);
  4754. [DllImport (LIBNAME)]
  4755. private static extern void imgproc_Imgproc_Sobel_14 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, int dx, int dy);
  4756. // C++: void cv::accumulate(Mat src, Mat& dst, Mat mask = Mat())
  4757. [DllImport (LIBNAME)]
  4758. private static extern void imgproc_Imgproc_accumulate_10 (IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr mask_nativeObj);
  4759. [DllImport (LIBNAME)]
  4760. private static extern void imgproc_Imgproc_accumulate_11 (IntPtr src_nativeObj, IntPtr dst_nativeObj);
  4761. // C++: void cv::accumulateProduct(Mat src1, Mat src2, Mat& dst, Mat mask = Mat())
  4762. [DllImport (LIBNAME)]
  4763. private static extern void imgproc_Imgproc_accumulateProduct_10 (IntPtr src1_nativeObj, IntPtr src2_nativeObj, IntPtr dst_nativeObj, IntPtr mask_nativeObj);
  4764. [DllImport (LIBNAME)]
  4765. private static extern void imgproc_Imgproc_accumulateProduct_11 (IntPtr src1_nativeObj, IntPtr src2_nativeObj, IntPtr dst_nativeObj);
  4766. // C++: void cv::accumulateSquare(Mat src, Mat& dst, Mat mask = Mat())
  4767. [DllImport (LIBNAME)]
  4768. private static extern void imgproc_Imgproc_accumulateSquare_10 (IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr mask_nativeObj);
  4769. [DllImport (LIBNAME)]
  4770. private static extern void imgproc_Imgproc_accumulateSquare_11 (IntPtr src_nativeObj, IntPtr dst_nativeObj);
  4771. // C++: void cv::accumulateWeighted(Mat src, Mat& dst, double alpha, Mat mask = Mat())
  4772. [DllImport (LIBNAME)]
  4773. private static extern void imgproc_Imgproc_accumulateWeighted_10 (IntPtr src_nativeObj, IntPtr dst_nativeObj, double alpha, IntPtr mask_nativeObj);
  4774. [DllImport (LIBNAME)]
  4775. private static extern void imgproc_Imgproc_accumulateWeighted_11 (IntPtr src_nativeObj, IntPtr dst_nativeObj, double alpha);
  4776. // C++: void cv::adaptiveThreshold(Mat src, Mat& dst, double maxValue, int adaptiveMethod, int thresholdType, int blockSize, double C)
  4777. [DllImport (LIBNAME)]
  4778. private static extern void imgproc_Imgproc_adaptiveThreshold_10 (IntPtr src_nativeObj, IntPtr dst_nativeObj, double maxValue, int adaptiveMethod, int thresholdType, int blockSize, double C);
  4779. // C++: void cv::applyColorMap(Mat src, Mat& dst, Mat userColor)
  4780. [DllImport (LIBNAME)]
  4781. private static extern void imgproc_Imgproc_applyColorMap_10 (IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr userColor_nativeObj);
  4782. // C++: void cv::applyColorMap(Mat src, Mat& dst, int colormap)
  4783. [DllImport (LIBNAME)]
  4784. private static extern void imgproc_Imgproc_applyColorMap_11 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int colormap);
  4785. // C++: void cv::approxPolyDP(vector_Point2f curve, vector_Point2f& approxCurve, double epsilon, bool closed)
  4786. [DllImport (LIBNAME)]
  4787. private static extern void imgproc_Imgproc_approxPolyDP_10 (IntPtr curve_mat_nativeObj, IntPtr approxCurve_mat_nativeObj, double epsilon, bool closed);
  4788. // 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)
  4789. [DllImport (LIBNAME)]
  4790. 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);
  4791. [DllImport (LIBNAME)]
  4792. 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);
  4793. [DllImport (LIBNAME)]
  4794. 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);
  4795. [DllImport (LIBNAME)]
  4796. 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);
  4797. [DllImport (LIBNAME)]
  4798. 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);
  4799. // C++: void cv::bilateralFilter(Mat src, Mat& dst, int d, double sigmaColor, double sigmaSpace, int borderType = BORDER_DEFAULT)
  4800. [DllImport (LIBNAME)]
  4801. private static extern void imgproc_Imgproc_bilateralFilter_10 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int d, double sigmaColor, double sigmaSpace, int borderType);
  4802. [DllImport (LIBNAME)]
  4803. private static extern void imgproc_Imgproc_bilateralFilter_11 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int d, double sigmaColor, double sigmaSpace);
  4804. // C++: void cv::blur(Mat src, Mat& dst, Size ksize, Point anchor = Point(-1,-1), int borderType = BORDER_DEFAULT)
  4805. [DllImport (LIBNAME)]
  4806. 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);
  4807. [DllImport (LIBNAME)]
  4808. 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);
  4809. [DllImport (LIBNAME)]
  4810. private static extern void imgproc_Imgproc_blur_12 (IntPtr src_nativeObj, IntPtr dst_nativeObj, double ksize_width, double ksize_height);
  4811. // C++: void cv::boxFilter(Mat src, Mat& dst, int ddepth, Size ksize, Point anchor = Point(-1,-1), bool normalize = true, int borderType = BORDER_DEFAULT)
  4812. [DllImport (LIBNAME)]
  4813. 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);
  4814. [DllImport (LIBNAME)]
  4815. 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);
  4816. [DllImport (LIBNAME)]
  4817. 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);
  4818. [DllImport (LIBNAME)]
  4819. private static extern void imgproc_Imgproc_boxFilter_13 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, double ksize_width, double ksize_height);
  4820. // C++: void cv::boxPoints(RotatedRect box, Mat& points)
  4821. [DllImport (LIBNAME)]
  4822. 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);
  4823. // C++: void cv::calcBackProject(vector_Mat images, vector_int channels, Mat hist, Mat& dst, vector_float ranges, double scale)
  4824. [DllImport (LIBNAME)]
  4825. 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);
  4826. // C++: void cv::calcHist(vector_Mat images, vector_int channels, Mat mask, Mat& hist, vector_int histSize, vector_float ranges, bool accumulate = false)
  4827. [DllImport (LIBNAME)]
  4828. 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);
  4829. [DllImport (LIBNAME)]
  4830. 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);
  4831. // C++: void cv::circle(Mat& img, Point center, int radius, Scalar color, int thickness = 1, int lineType = LINE_8, int shift = 0)
  4832. [DllImport (LIBNAME)]
  4833. 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);
  4834. [DllImport (LIBNAME)]
  4835. 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);
  4836. [DllImport (LIBNAME)]
  4837. 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);
  4838. [DllImport (LIBNAME)]
  4839. 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);
  4840. // C++: void cv::convertMaps(Mat map1, Mat map2, Mat& dstmap1, Mat& dstmap2, int dstmap1type, bool nninterpolation = false)
  4841. [DllImport (LIBNAME)]
  4842. private static extern void imgproc_Imgproc_convertMaps_10 (IntPtr map1_nativeObj, IntPtr map2_nativeObj, IntPtr dstmap1_nativeObj, IntPtr dstmap2_nativeObj, int dstmap1type, bool nninterpolation);
  4843. [DllImport (LIBNAME)]
  4844. private static extern void imgproc_Imgproc_convertMaps_11 (IntPtr map1_nativeObj, IntPtr map2_nativeObj, IntPtr dstmap1_nativeObj, IntPtr dstmap2_nativeObj, int dstmap1type);
  4845. // C++: void cv::convexHull(vector_Point points, vector_int& hull, bool clockwise = false, _hidden_ returnPoints = true)
  4846. [DllImport (LIBNAME)]
  4847. private static extern void imgproc_Imgproc_convexHull_10 (IntPtr points_mat_nativeObj, IntPtr hull_mat_nativeObj, bool clockwise);
  4848. [DllImport (LIBNAME)]
  4849. private static extern void imgproc_Imgproc_convexHull_12 (IntPtr points_mat_nativeObj, IntPtr hull_mat_nativeObj);
  4850. // C++: void cv::convexityDefects(vector_Point contour, vector_int convexhull, vector_Vec4i& convexityDefects)
  4851. [DllImport (LIBNAME)]
  4852. private static extern void imgproc_Imgproc_convexityDefects_10 (IntPtr contour_mat_nativeObj, IntPtr convexhull_mat_nativeObj, IntPtr convexityDefects_mat_nativeObj);
  4853. // C++: void cv::cornerEigenValsAndVecs(Mat src, Mat& dst, int blockSize, int ksize, int borderType = BORDER_DEFAULT)
  4854. [DllImport (LIBNAME)]
  4855. private static extern void imgproc_Imgproc_cornerEigenValsAndVecs_10 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int blockSize, int ksize, int borderType);
  4856. [DllImport (LIBNAME)]
  4857. private static extern void imgproc_Imgproc_cornerEigenValsAndVecs_11 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int blockSize, int ksize);
  4858. // C++: void cv::cornerHarris(Mat src, Mat& dst, int blockSize, int ksize, double k, int borderType = BORDER_DEFAULT)
  4859. [DllImport (LIBNAME)]
  4860. private static extern void imgproc_Imgproc_cornerHarris_10 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int blockSize, int ksize, double k, int borderType);
  4861. [DllImport (LIBNAME)]
  4862. private static extern void imgproc_Imgproc_cornerHarris_11 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int blockSize, int ksize, double k);
  4863. // C++: void cv::cornerMinEigenVal(Mat src, Mat& dst, int blockSize, int ksize = 3, int borderType = BORDER_DEFAULT)
  4864. [DllImport (LIBNAME)]
  4865. private static extern void imgproc_Imgproc_cornerMinEigenVal_10 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int blockSize, int ksize, int borderType);
  4866. [DllImport (LIBNAME)]
  4867. private static extern void imgproc_Imgproc_cornerMinEigenVal_11 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int blockSize, int ksize);
  4868. [DllImport (LIBNAME)]
  4869. private static extern void imgproc_Imgproc_cornerMinEigenVal_12 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int blockSize);
  4870. // C++: void cv::cornerSubPix(Mat image, Mat& corners, Size winSize, Size zeroZone, TermCriteria criteria)
  4871. [DllImport (LIBNAME)]
  4872. 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);
  4873. // C++: void cv::createHanningWindow(Mat& dst, Size winSize, int type)
  4874. [DllImport (LIBNAME)]
  4875. private static extern void imgproc_Imgproc_createHanningWindow_10 (IntPtr dst_nativeObj, double winSize_width, double winSize_height, int type);
  4876. // C++: void cv::cvtColor(Mat src, Mat& dst, int code, int dstCn = 0)
  4877. [DllImport (LIBNAME)]
  4878. private static extern void imgproc_Imgproc_cvtColor_10 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int code, int dstCn);
  4879. [DllImport (LIBNAME)]
  4880. private static extern void imgproc_Imgproc_cvtColor_11 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int code);
  4881. // C++: void cv::cvtColorTwoPlane(Mat src1, Mat src2, Mat& dst, int code)
  4882. [DllImport (LIBNAME)]
  4883. private static extern void imgproc_Imgproc_cvtColorTwoPlane_10 (IntPtr src1_nativeObj, IntPtr src2_nativeObj, IntPtr dst_nativeObj, int code);
  4884. // C++: void cv::demosaicing(Mat src, Mat& dst, int code, int dstCn = 0)
  4885. [DllImport (LIBNAME)]
  4886. private static extern void imgproc_Imgproc_demosaicing_10 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int code, int dstCn);
  4887. [DllImport (LIBNAME)]
  4888. private static extern void imgproc_Imgproc_demosaicing_11 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int code);
  4889. // 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())
  4890. [DllImport (LIBNAME)]
  4891. 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);
  4892. [DllImport (LIBNAME)]
  4893. 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);
  4894. [DllImport (LIBNAME)]
  4895. 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);
  4896. [DllImport (LIBNAME)]
  4897. private static extern void imgproc_Imgproc_dilate_13 (IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr kernel_nativeObj, double anchor_x, double anchor_y);
  4898. [DllImport (LIBNAME)]
  4899. private static extern void imgproc_Imgproc_dilate_14 (IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr kernel_nativeObj);
  4900. // C++: void cv::distanceTransform(Mat src, Mat& dst, Mat& labels, int distanceType, int maskSize, int labelType = DIST_LABEL_CCOMP)
  4901. [DllImport (LIBNAME)]
  4902. private static extern void imgproc_Imgproc_distanceTransformWithLabels_10 (IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr labels_nativeObj, int distanceType, int maskSize, int labelType);
  4903. [DllImport (LIBNAME)]
  4904. private static extern void imgproc_Imgproc_distanceTransformWithLabels_11 (IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr labels_nativeObj, int distanceType, int maskSize);
  4905. // C++: void cv::distanceTransform(Mat src, Mat& dst, int distanceType, int maskSize, int dstType = CV_32F)
  4906. [DllImport (LIBNAME)]
  4907. private static extern void imgproc_Imgproc_distanceTransform_10 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int distanceType, int maskSize, int dstType);
  4908. [DllImport (LIBNAME)]
  4909. private static extern void imgproc_Imgproc_distanceTransform_11 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int distanceType, int maskSize);
  4910. // 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())
  4911. [DllImport (LIBNAME)]
  4912. 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);
  4913. [DllImport (LIBNAME)]
  4914. 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);
  4915. [DllImport (LIBNAME)]
  4916. 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);
  4917. [DllImport (LIBNAME)]
  4918. 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);
  4919. [DllImport (LIBNAME)]
  4920. 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);
  4921. [DllImport (LIBNAME)]
  4922. 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);
  4923. // C++: void cv::drawMarker(Mat& img, Point position, Scalar color, int markerType = MARKER_CROSS, int markerSize = 20, int thickness = 1, int line_type = 8)
  4924. [DllImport (LIBNAME)]
  4925. 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);
  4926. [DllImport (LIBNAME)]
  4927. 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);
  4928. [DllImport (LIBNAME)]
  4929. 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);
  4930. [DllImport (LIBNAME)]
  4931. 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);
  4932. [DllImport (LIBNAME)]
  4933. 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);
  4934. // 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)
  4935. [DllImport (LIBNAME)]
  4936. 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);
  4937. [DllImport (LIBNAME)]
  4938. 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);
  4939. [DllImport (LIBNAME)]
  4940. 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);
  4941. [DllImport (LIBNAME)]
  4942. 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);
  4943. // C++: void cv::ellipse(Mat& img, RotatedRect box, Scalar color, int thickness = 1, int lineType = LINE_8)
  4944. [DllImport (LIBNAME)]
  4945. 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);
  4946. [DllImport (LIBNAME)]
  4947. 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);
  4948. [DllImport (LIBNAME)]
  4949. 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);
  4950. // C++: void cv::ellipse2Poly(Point center, Size axes, int angle, int arcStart, int arcEnd, int delta, vector_Point& pts)
  4951. [DllImport (LIBNAME)]
  4952. 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);
  4953. // C++: void cv::equalizeHist(Mat src, Mat& dst)
  4954. [DllImport (LIBNAME)]
  4955. private static extern void imgproc_Imgproc_equalizeHist_10 (IntPtr src_nativeObj, IntPtr dst_nativeObj);
  4956. // 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())
  4957. [DllImport (LIBNAME)]
  4958. 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);
  4959. [DllImport (LIBNAME)]
  4960. 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);
  4961. [DllImport (LIBNAME)]
  4962. 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);
  4963. [DllImport (LIBNAME)]
  4964. private static extern void imgproc_Imgproc_erode_13 (IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr kernel_nativeObj, double anchor_x, double anchor_y);
  4965. [DllImport (LIBNAME)]
  4966. private static extern void imgproc_Imgproc_erode_14 (IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr kernel_nativeObj);
  4967. // C++: void cv::fillConvexPoly(Mat& img, vector_Point points, Scalar color, int lineType = LINE_8, int shift = 0)
  4968. [DllImport (LIBNAME)]
  4969. 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);
  4970. [DllImport (LIBNAME)]
  4971. 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);
  4972. [DllImport (LIBNAME)]
  4973. 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);
  4974. // C++: void cv::fillPoly(Mat& img, vector_vector_Point pts, Scalar color, int lineType = LINE_8, int shift = 0, Point offset = Point())
  4975. [DllImport (LIBNAME)]
  4976. 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);
  4977. [DllImport (LIBNAME)]
  4978. 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);
  4979. [DllImport (LIBNAME)]
  4980. 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);
  4981. [DllImport (LIBNAME)]
  4982. 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);
  4983. // C++: void cv::filter2D(Mat src, Mat& dst, int ddepth, Mat kernel, Point anchor = Point(-1,-1), double delta = 0, int borderType = BORDER_DEFAULT)
  4984. [DllImport (LIBNAME)]
  4985. 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);
  4986. [DllImport (LIBNAME)]
  4987. 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);
  4988. [DllImport (LIBNAME)]
  4989. 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);
  4990. [DllImport (LIBNAME)]
  4991. private static extern void imgproc_Imgproc_filter2D_13 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, IntPtr kernel_nativeObj);
  4992. // C++: void cv::findContours(Mat image, vector_vector_Point& contours, Mat& hierarchy, int mode, int method, Point offset = Point())
  4993. [DllImport (LIBNAME)]
  4994. 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);
  4995. [DllImport (LIBNAME)]
  4996. private static extern void imgproc_Imgproc_findContours_11 (IntPtr image_nativeObj, IntPtr contours_mat_nativeObj, IntPtr hierarchy_nativeObj, int mode, int method);
  4997. // C++: void cv::fitLine(Mat points, Mat& line, int distType, double param, double reps, double aeps)
  4998. [DllImport (LIBNAME)]
  4999. private static extern void imgproc_Imgproc_fitLine_10 (IntPtr points_nativeObj, IntPtr line_nativeObj, int distType, double param, double reps, double aeps);
  5000. // C++: void cv::getDerivKernels(Mat& kx, Mat& ky, int dx, int dy, int ksize, bool normalize = false, int ktype = CV_32F)
  5001. [DllImport (LIBNAME)]
  5002. private static extern void imgproc_Imgproc_getDerivKernels_10 (IntPtr kx_nativeObj, IntPtr ky_nativeObj, int dx, int dy, int ksize, bool normalize, int ktype);
  5003. [DllImport (LIBNAME)]
  5004. private static extern void imgproc_Imgproc_getDerivKernels_11 (IntPtr kx_nativeObj, IntPtr ky_nativeObj, int dx, int dy, int ksize, bool normalize);
  5005. [DllImport (LIBNAME)]
  5006. private static extern void imgproc_Imgproc_getDerivKernels_12 (IntPtr kx_nativeObj, IntPtr ky_nativeObj, int dx, int dy, int ksize);
  5007. // C++: void cv::getRectSubPix(Mat image, Size patchSize, Point2f center, Mat& patch, int patchType = -1)
  5008. [DllImport (LIBNAME)]
  5009. 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);
  5010. [DllImport (LIBNAME)]
  5011. 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);
  5012. // 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)
  5013. [DllImport (LIBNAME)]
  5014. 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);
  5015. [DllImport (LIBNAME)]
  5016. 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);
  5017. [DllImport (LIBNAME)]
  5018. 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);
  5019. // 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)
  5020. [DllImport (LIBNAME)]
  5021. 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);
  5022. [DllImport (LIBNAME)]
  5023. 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);
  5024. [DllImport (LIBNAME)]
  5025. 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);
  5026. [DllImport (LIBNAME)]
  5027. private static extern void imgproc_Imgproc_goodFeaturesToTrack_16 (IntPtr image_nativeObj, IntPtr corners_mat_nativeObj, int maxCorners, double qualityLevel, double minDistance, IntPtr mask_nativeObj);
  5028. [DllImport (LIBNAME)]
  5029. private static extern void imgproc_Imgproc_goodFeaturesToTrack_17 (IntPtr image_nativeObj, IntPtr corners_mat_nativeObj, int maxCorners, double qualityLevel, double minDistance);
  5030. // C++: void cv::grabCut(Mat img, Mat& mask, Rect rect, Mat& bgdModel, Mat& fgdModel, int iterCount, int mode = GC_EVAL)
  5031. [DllImport (LIBNAME)]
  5032. 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);
  5033. [DllImport (LIBNAME)]
  5034. 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);
  5035. // C++: void cv::integral(Mat src, Mat& sum, Mat& sqsum, Mat& tilted, int sdepth = -1, int sqdepth = -1)
  5036. [DllImport (LIBNAME)]
  5037. private static extern void imgproc_Imgproc_integral3_10 (IntPtr src_nativeObj, IntPtr sum_nativeObj, IntPtr sqsum_nativeObj, IntPtr tilted_nativeObj, int sdepth, int sqdepth);
  5038. [DllImport (LIBNAME)]
  5039. private static extern void imgproc_Imgproc_integral3_11 (IntPtr src_nativeObj, IntPtr sum_nativeObj, IntPtr sqsum_nativeObj, IntPtr tilted_nativeObj, int sdepth);
  5040. [DllImport (LIBNAME)]
  5041. private static extern void imgproc_Imgproc_integral3_12 (IntPtr src_nativeObj, IntPtr sum_nativeObj, IntPtr sqsum_nativeObj, IntPtr tilted_nativeObj);
  5042. // C++: void cv::integral(Mat src, Mat& sum, Mat& sqsum, int sdepth = -1, int sqdepth = -1)
  5043. [DllImport (LIBNAME)]
  5044. private static extern void imgproc_Imgproc_integral2_10 (IntPtr src_nativeObj, IntPtr sum_nativeObj, IntPtr sqsum_nativeObj, int sdepth, int sqdepth);
  5045. [DllImport (LIBNAME)]
  5046. private static extern void imgproc_Imgproc_integral2_11 (IntPtr src_nativeObj, IntPtr sum_nativeObj, IntPtr sqsum_nativeObj, int sdepth);
  5047. [DllImport (LIBNAME)]
  5048. private static extern void imgproc_Imgproc_integral2_12 (IntPtr src_nativeObj, IntPtr sum_nativeObj, IntPtr sqsum_nativeObj);
  5049. // C++: void cv::integral(Mat src, Mat& sum, int sdepth = -1)
  5050. [DllImport (LIBNAME)]
  5051. private static extern void imgproc_Imgproc_integral_10 (IntPtr src_nativeObj, IntPtr sum_nativeObj, int sdepth);
  5052. [DllImport (LIBNAME)]
  5053. private static extern void imgproc_Imgproc_integral_11 (IntPtr src_nativeObj, IntPtr sum_nativeObj);
  5054. // C++: void cv::invertAffineTransform(Mat M, Mat& iM)
  5055. [DllImport (LIBNAME)]
  5056. private static extern void imgproc_Imgproc_invertAffineTransform_10 (IntPtr M_nativeObj, IntPtr iM_nativeObj);
  5057. // C++: void cv::line(Mat& img, Point pt1, Point pt2, Scalar color, int thickness = 1, int lineType = LINE_8, int shift = 0)
  5058. [DllImport (LIBNAME)]
  5059. 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);
  5060. [DllImport (LIBNAME)]
  5061. 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);
  5062. [DllImport (LIBNAME)]
  5063. 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);
  5064. [DllImport (LIBNAME)]
  5065. 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);
  5066. // C++: void cv::linearPolar(Mat src, Mat& dst, Point2f center, double maxRadius, int flags)
  5067. [DllImport (LIBNAME)]
  5068. private static extern void imgproc_Imgproc_linearPolar_10 (IntPtr src_nativeObj, IntPtr dst_nativeObj, double center_x, double center_y, double maxRadius, int flags);
  5069. // C++: void cv::logPolar(Mat src, Mat& dst, Point2f center, double M, int flags)
  5070. [DllImport (LIBNAME)]
  5071. private static extern void imgproc_Imgproc_logPolar_10 (IntPtr src_nativeObj, IntPtr dst_nativeObj, double center_x, double center_y, double M, int flags);
  5072. // C++: void cv::matchTemplate(Mat image, Mat templ, Mat& result, int method, Mat mask = Mat())
  5073. [DllImport (LIBNAME)]
  5074. private static extern void imgproc_Imgproc_matchTemplate_10 (IntPtr image_nativeObj, IntPtr templ_nativeObj, IntPtr result_nativeObj, int method, IntPtr mask_nativeObj);
  5075. [DllImport (LIBNAME)]
  5076. private static extern void imgproc_Imgproc_matchTemplate_11 (IntPtr image_nativeObj, IntPtr templ_nativeObj, IntPtr result_nativeObj, int method);
  5077. // C++: void cv::medianBlur(Mat src, Mat& dst, int ksize)
  5078. [DllImport (LIBNAME)]
  5079. private static extern void imgproc_Imgproc_medianBlur_10 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int ksize);
  5080. // C++: void cv::minEnclosingCircle(vector_Point2f points, Point2f& center, float& radius)
  5081. [DllImport (LIBNAME)]
  5082. private static extern void imgproc_Imgproc_minEnclosingCircle_10 (IntPtr points_mat_nativeObj, double[] center_out, double[] radius_out);
  5083. // 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())
  5084. [DllImport (LIBNAME)]
  5085. 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);
  5086. [DllImport (LIBNAME)]
  5087. 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);
  5088. [DllImport (LIBNAME)]
  5089. 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);
  5090. [DllImport (LIBNAME)]
  5091. 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);
  5092. [DllImport (LIBNAME)]
  5093. private static extern void imgproc_Imgproc_morphologyEx_14 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int op, IntPtr kernel_nativeObj);
  5094. // C++: void cv::polylines(Mat& img, vector_vector_Point pts, bool isClosed, Scalar color, int thickness = 1, int lineType = LINE_8, int shift = 0)
  5095. [DllImport (LIBNAME)]
  5096. 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);
  5097. [DllImport (LIBNAME)]
  5098. 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);
  5099. [DllImport (LIBNAME)]
  5100. 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);
  5101. [DllImport (LIBNAME)]
  5102. 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);
  5103. // C++: void cv::preCornerDetect(Mat src, Mat& dst, int ksize, int borderType = BORDER_DEFAULT)
  5104. [DllImport (LIBNAME)]
  5105. private static extern void imgproc_Imgproc_preCornerDetect_10 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int ksize, int borderType);
  5106. [DllImport (LIBNAME)]
  5107. private static extern void imgproc_Imgproc_preCornerDetect_11 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int ksize);
  5108. // 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)
  5109. [DllImport (LIBNAME)]
  5110. 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);
  5111. [DllImport (LIBNAME)]
  5112. 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);
  5113. [DllImport (LIBNAME)]
  5114. 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);
  5115. [DllImport (LIBNAME)]
  5116. 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);
  5117. // C++: void cv::pyrDown(Mat src, Mat& dst, Size dstsize = Size(), int borderType = BORDER_DEFAULT)
  5118. [DllImport (LIBNAME)]
  5119. private static extern void imgproc_Imgproc_pyrDown_10 (IntPtr src_nativeObj, IntPtr dst_nativeObj, double dstsize_width, double dstsize_height, int borderType);
  5120. [DllImport (LIBNAME)]
  5121. private static extern void imgproc_Imgproc_pyrDown_11 (IntPtr src_nativeObj, IntPtr dst_nativeObj, double dstsize_width, double dstsize_height);
  5122. [DllImport (LIBNAME)]
  5123. private static extern void imgproc_Imgproc_pyrDown_12 (IntPtr src_nativeObj, IntPtr dst_nativeObj);
  5124. // 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))
  5125. [DllImport (LIBNAME)]
  5126. 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);
  5127. [DllImport (LIBNAME)]
  5128. private static extern void imgproc_Imgproc_pyrMeanShiftFiltering_11 (IntPtr src_nativeObj, IntPtr dst_nativeObj, double sp, double sr, int maxLevel);
  5129. [DllImport (LIBNAME)]
  5130. private static extern void imgproc_Imgproc_pyrMeanShiftFiltering_12 (IntPtr src_nativeObj, IntPtr dst_nativeObj, double sp, double sr);
  5131. // C++: void cv::pyrUp(Mat src, Mat& dst, Size dstsize = Size(), int borderType = BORDER_DEFAULT)
  5132. [DllImport (LIBNAME)]
  5133. private static extern void imgproc_Imgproc_pyrUp_10 (IntPtr src_nativeObj, IntPtr dst_nativeObj, double dstsize_width, double dstsize_height, int borderType);
  5134. [DllImport (LIBNAME)]
  5135. private static extern void imgproc_Imgproc_pyrUp_11 (IntPtr src_nativeObj, IntPtr dst_nativeObj, double dstsize_width, double dstsize_height);
  5136. [DllImport (LIBNAME)]
  5137. private static extern void imgproc_Imgproc_pyrUp_12 (IntPtr src_nativeObj, IntPtr dst_nativeObj);
  5138. // C++: void cv::rectangle(Mat& img, Point pt1, Point pt2, Scalar color, int thickness = 1, int lineType = LINE_8, int shift = 0)
  5139. [DllImport (LIBNAME)]
  5140. 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);
  5141. [DllImport (LIBNAME)]
  5142. 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);
  5143. [DllImport (LIBNAME)]
  5144. 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);
  5145. [DllImport (LIBNAME)]
  5146. 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);
  5147. // C++: void cv::rectangle(Mat& img, Rect rec, Scalar color, int thickness = 1, int lineType = LINE_8, int shift = 0)
  5148. [DllImport (LIBNAME)]
  5149. 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);
  5150. [DllImport (LIBNAME)]
  5151. 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);
  5152. [DllImport (LIBNAME)]
  5153. 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);
  5154. [DllImport (LIBNAME)]
  5155. 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);
  5156. // C++: void cv::remap(Mat src, Mat& dst, Mat map1, Mat map2, int interpolation, int borderMode = BORDER_CONSTANT, Scalar borderValue = Scalar())
  5157. [DllImport (LIBNAME)]
  5158. 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);
  5159. [DllImport (LIBNAME)]
  5160. private static extern void imgproc_Imgproc_remap_11 (IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr map1_nativeObj, IntPtr map2_nativeObj, int interpolation, int borderMode);
  5161. [DllImport (LIBNAME)]
  5162. private static extern void imgproc_Imgproc_remap_12 (IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr map1_nativeObj, IntPtr map2_nativeObj, int interpolation);
  5163. // C++: void cv::resize(Mat src, Mat& dst, Size dsize, double fx = 0, double fy = 0, int interpolation = INTER_LINEAR)
  5164. [DllImport (LIBNAME)]
  5165. 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);
  5166. [DllImport (LIBNAME)]
  5167. private static extern void imgproc_Imgproc_resize_11 (IntPtr src_nativeObj, IntPtr dst_nativeObj, double dsize_width, double dsize_height, double fx, double fy);
  5168. [DllImport (LIBNAME)]
  5169. private static extern void imgproc_Imgproc_resize_12 (IntPtr src_nativeObj, IntPtr dst_nativeObj, double dsize_width, double dsize_height, double fx);
  5170. [DllImport (LIBNAME)]
  5171. private static extern void imgproc_Imgproc_resize_13 (IntPtr src_nativeObj, IntPtr dst_nativeObj, double dsize_width, double dsize_height);
  5172. // 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)
  5173. [DllImport (LIBNAME)]
  5174. 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);
  5175. [DllImport (LIBNAME)]
  5176. 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);
  5177. [DllImport (LIBNAME)]
  5178. 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);
  5179. [DllImport (LIBNAME)]
  5180. private static extern void imgproc_Imgproc_sepFilter2D_13 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, IntPtr kernelX_nativeObj, IntPtr kernelY_nativeObj);
  5181. // C++: void cv::spatialGradient(Mat src, Mat& dx, Mat& dy, int ksize = 3, int borderType = BORDER_DEFAULT)
  5182. [DllImport (LIBNAME)]
  5183. private static extern void imgproc_Imgproc_spatialGradient_10 (IntPtr src_nativeObj, IntPtr dx_nativeObj, IntPtr dy_nativeObj, int ksize, int borderType);
  5184. [DllImport (LIBNAME)]
  5185. private static extern void imgproc_Imgproc_spatialGradient_11 (IntPtr src_nativeObj, IntPtr dx_nativeObj, IntPtr dy_nativeObj, int ksize);
  5186. [DllImport (LIBNAME)]
  5187. private static extern void imgproc_Imgproc_spatialGradient_12 (IntPtr src_nativeObj, IntPtr dx_nativeObj, IntPtr dy_nativeObj);
  5188. // C++: void cv::sqrBoxFilter(Mat src, Mat& dst, int ddepth, Size ksize, Point anchor = Point(-1, -1), bool normalize = true, int borderType = BORDER_DEFAULT)
  5189. [DllImport (LIBNAME)]
  5190. 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);
  5191. [DllImport (LIBNAME)]
  5192. 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);
  5193. [DllImport (LIBNAME)]
  5194. 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);
  5195. [DllImport (LIBNAME)]
  5196. private static extern void imgproc_Imgproc_sqrBoxFilter_13 (IntPtr src_nativeObj, IntPtr dst_nativeObj, int ddepth, double ksize_width, double ksize_height);
  5197. // C++: void cv::warpAffine(Mat src, Mat& dst, Mat M, Size dsize, int flags = INTER_LINEAR, int borderMode = BORDER_CONSTANT, Scalar borderValue = Scalar())
  5198. [DllImport (LIBNAME)]
  5199. 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);
  5200. [DllImport (LIBNAME)]
  5201. 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);
  5202. [DllImport (LIBNAME)]
  5203. 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);
  5204. [DllImport (LIBNAME)]
  5205. private static extern void imgproc_Imgproc_warpAffine_13 (IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr M_nativeObj, double dsize_width, double dsize_height);
  5206. // C++: void cv::warpPerspective(Mat src, Mat& dst, Mat M, Size dsize, int flags = INTER_LINEAR, int borderMode = BORDER_CONSTANT, Scalar borderValue = Scalar())
  5207. [DllImport (LIBNAME)]
  5208. 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);
  5209. [DllImport (LIBNAME)]
  5210. 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);
  5211. [DllImport (LIBNAME)]
  5212. 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);
  5213. [DllImport (LIBNAME)]
  5214. private static extern void imgproc_Imgproc_warpPerspective_13 (IntPtr src_nativeObj, IntPtr dst_nativeObj, IntPtr M_nativeObj, double dsize_width, double dsize_height);
  5215. // C++: void cv::warpPolar(Mat src, Mat& dst, Size dsize, Point2f center, double maxRadius, int flags)
  5216. [DllImport (LIBNAME)]
  5217. 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);
  5218. // C++: void cv::watershed(Mat image, Mat& markers)
  5219. [DllImport (LIBNAME)]
  5220. private static extern void imgproc_Imgproc_watershed_10 (IntPtr image_nativeObj, IntPtr markers_nativeObj);
  5221. [DllImport (LIBNAME)]
  5222. private static extern void imgproc_Imgproc_n_1getTextSize (string text, int fontFace, double fontScale, int thickness, int[] baseLine, double[] vals);
  5223. }
  5224. }