123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106 |
- /* ///////////////////////////////////////////////////////////////////////////////////////
- //
- // INTEL CORPORATION PROPRIETARY INFORMATION
- // This software is supplied under the terms of a license agreement or
- // nondisclosure agreement with Intel Corporation and may not be copied
- // or disclosed except in accordance with the terms of that agreement.
- // Copyright (c) 1999-2009 Intel Corporation. All Rights Reserved.
- //
- // Intel(R) Integrated Performance Primitives
- // Computer Vision (ippCV)
- //
- */
- #if !defined( __IPPCV_H__ ) || defined( _OWN_BLDPCS )
- #define __IPPCV_H__
- #if defined (_WIN32_WCE) && defined (_M_IX86) && defined (__stdcall)
- #define _IPP_STDCALL_CDECL
- #undef __stdcall
- #endif
- #ifndef __IPPDEFS_H__
- #include "ippdefs.h"
- #endif
- #ifdef __cplusplus
- extern "C" {
- #endif
- #if !defined( _OWN_BLDPCS )
- typedef enum _IppiKernelType {
- ippKernelSobel = 0,
- ippKernelScharr = 1
- } IppiKernelType;
- typedef enum _IppiNorm {
- ippiNormInf = 0,
- ippiNormL1 = 1,
- ippiNormL2 = 2,
- ippiNormFM = 3
- } IppiNorm;
- struct ipcvMorphState;
- typedef struct ipcvMorphState IppiMorphState;
- struct ipcvMorphAdvState;
- typedef struct ipcvMorphAdvState IppiMorphAdvState;
- struct ipcvMorphGrayState_8u;
- typedef struct ipcvMorphGrayState_8u IppiMorphGrayState_8u;
- struct ipcvMorphGrayState_32f;
- typedef struct ipcvMorphGrayState_32f IppiMorphGrayState_32f;
- struct ipcvConvState;
- typedef struct ipcvConvState IppiConvState;
- typedef struct _IppiConnectedComp {
- Ipp64f area; /* area of the segmented component */
- Ipp64f value[3];/* gray scale value of the segmented component */
- IppiRect rect; /* bounding rectangle of the segmented component */
- } IppiConnectedComp;
- struct PyramidState;
- typedef struct PyramidState IppiPyramidState;
- typedef IppiPyramidState IppiPyramidDownState_8u_C1R;
- typedef IppiPyramidState IppiPyramidDownState_16u_C1R;
- typedef IppiPyramidState IppiPyramidDownState_32f_C1R;
- typedef IppiPyramidState IppiPyramidDownState_8u_C3R;
- typedef IppiPyramidState IppiPyramidDownState_16u_C3R;
- typedef IppiPyramidState IppiPyramidDownState_32f_C3R;
- typedef IppiPyramidState IppiPyramidUpState_8u_C1R;
- typedef IppiPyramidState IppiPyramidUpState_16u_C1R;
- typedef IppiPyramidState IppiPyramidUpState_32f_C1R;
- typedef IppiPyramidState IppiPyramidUpState_8u_C3R;
- typedef IppiPyramidState IppiPyramidUpState_16u_C3R;
- typedef IppiPyramidState IppiPyramidUpState_32f_C3R;
- typedef struct _IppiPyramid {
- Ipp8u **pImage;
- IppiSize *pRoi;
- Ipp64f *pRate;
- int *pStep;
- Ipp8u *pState;
- int level;
- } IppiPyramid;
- struct OptFlowPyrLK;
- typedef struct OptFlowPyrLK IppiOptFlowPyrLK;
- typedef IppiOptFlowPyrLK IppiOptFlowPyrLK_8u_C1R;
- typedef IppiOptFlowPyrLK IppiOptFlowPyrLK_16u_C1R;
- typedef IppiOptFlowPyrLK IppiOptFlowPyrLK_32f_C1R;
- struct ipcvHaarClassifier_32f;
- typedef struct ipcvHaarClassifier_32f IppiHaarClassifier_32f;
- struct ipcvHaarClassifier_32s;
- typedef struct ipcvHaarClassifier_32s IppiHaarClassifier_32s;
- struct ipcvFGHistogramState_8u_C1R;
- typedef struct ipcvFGHistogramState_8u_C1R IppFGHistogramState_8u_C1R;
- struct ipcvFGHistogramState_8u_C3R;
- typedef struct ipcvFGHistogramState_8u_C3R IppFGHistogramState_8u_C3R;
- struct ipcvFGGaussianState_8u_C1R;
- typedef struct ipcvFGGaussianState_8u_C1R IppFGGaussianState_8u_C1R;
- struct ipcvFGGaussianState_8u_C3R;
- typedef struct ipcvFGGaussianState_8u_C3R IppFGGaussianState_8u_C3R;
- typedef struct _IppFGHistogramModel { /* for C3 image */
- int valueQuant; /* 64 */
- int changeQuant; /* 32 */
- int valueUse; /* 30 */
- int valueAll; /* 50 */
- int changeUse; /* 50 */
- int changeAll; /* 80 */
- Ipp32f updBGChange; /* 0.0046 */
- Ipp32f updBGRef; /* 0.0010 */
- int numFrame;
- float detectionRate;
- float brightnessDistortion;
- int shadowBG;
- } IppFGHistogramModel;
- typedef struct _IppFGGaussianModel {
- int numGauss;
- Ipp32f priorBack;
- Ipp32f updBGProb;
- int winSize;
- int numFrame;
- float detectionRate;
- float brightnessDistortion;
- int shadowBG;
- } IppFGGaussianModel;
- typedef enum _IppiInpaintFlag {
- IPP_INPAINT_TELEA = 0,
- IPP_INPAINT_NS = 1
- } IppiInpaintFlag;
- struct ipcvInpaintState_8u;
- typedef struct ipcvInpaintState_8u IppiInpaintState_8u_C1R;
- typedef struct ipcvInpaintState_8u IppiInpaintState_8u_C3R;
- #endif /* _OWN_BLDPCS */
- #define IPP_SEGMENT_QUEUE 0x01
- #define IPP_SEGMENT_DISTANCE 0x02
- #define IPP_SEGMENT_BORDER_4 0x40
- #define IPP_SEGMENT_BORDER_8 0x80
- #define IPP_TRUNC(a,b) ((a)&~((b)-1))
- #define IPP_APPEND(a,b) (((a)+(b)-1)&~((b)-1))
- /* ///////////////////////////////////////////////////////////////////////////////////////
- //////////////////////////////////////////////////////////////////////////////////////////
- // Functions declarations
- //////////////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////////////// */
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippcvGetLibVersion
- //
- // Purpose: getting of the library version
- //
- // Returns: the structure of information about version of ippcv library
- //
- // Parameters:
- //
- // Notes: not necessary to release the returned structure
- */
- IPPAPI( const IppLibraryVersion*, ippcvGetLibVersion, (void) )
- /****************************************************************************************\
- * Copy with Subpixel Precision *
- \****************************************************************************************/
- /*F///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiCopySubpix_8u_C1R, ippiCopySubpix_16u_C1R,
- // ippiCopySubpix_8u16u_C1R_Sfs, ippiCopySubpix_16u32f_C1R,
- // ippiCopySubpix_8u32f_C1R, ippiCopySubpix_32f_C1R
- //
- // Purpose: copies source image to destination image with interpolation
- //
- // Returns:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width or height of images is less or equal zero
- // ippStsStepErr The steps in images are too small
- // ippStsNotEvenStepErr Step is not multiple of element.
- //
- // Parameters:
- // pSrc Pointer to source image
- // srcStep Step in source image
- // pDst Pointer to destination image
- // dstStep Step in destination image
- // roiSize Source and destination image ROI size.
- // dx x coeff of linear interpolation
- // dy y coeff of linear interpolation
- // scaleFactor Output scale factor, >= 0
- //
- // Notes:
- //F*/
- IPPAPI(IppStatus, ippiCopySubpix_8u_C1R, (const Ipp8u* pSrc, int srcStep,
- Ipp8u* pDst, int dstStep, IppiSize roiSize, Ipp32f dx, Ipp32f dy))
- IPPAPI(IppStatus, ippiCopySubpix_8u16u_C1R_Sfs, (const Ipp8u* pSrc, int srcStep,
- Ipp16u* pDst, int dstStep, IppiSize roiSize, Ipp32f dx, Ipp32f dy, int scaleFactor))
- IPPAPI(IppStatus, ippiCopySubpix_8u32f_C1R, (const Ipp8u* pSrc, int srcStep,
- Ipp32f* pDst, int dstStep, IppiSize roiSize, Ipp32f dx, Ipp32f dy))
- IPPAPI(IppStatus, ippiCopySubpix_16u_C1R, (const Ipp16u* pSrc, int srcStep,
- Ipp16u* pDst, int dstStep, IppiSize roiSize, Ipp32f dx, Ipp32f dy))
- IPPAPI(IppStatus, ippiCopySubpix_16u32f_C1R, (const Ipp16u* pSrc, int srcStep,
- Ipp32f* pDst, int dstStep, IppiSize roiSize, Ipp32f dx, Ipp32f dy))
- IPPAPI(IppStatus, ippiCopySubpix_32f_C1R, (const Ipp32f* pSrc, int srcStep,
- Ipp32f* pDst, int dstStep, IppiSize roiSize, Ipp32f dx, Ipp32f dy))
- /*F////////////////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiCopySubpixIntersect_8u_C1R, ippiCopySubpixIntersect_16u_C1R,
- // ippiCopySubpixIntersect_8u16u_C1R_Sfs, ippiCopySubpixIntersect_16u32f_C1R,
- // ippiCopySubpixIntersect_8u32f_C1R, ippiCopySubpixIntersect_32f_C1R
- //
- // Purpose: finds intersection of centered window in the source image and copies
- // in to destination image with the border
- // border pixel are taken from the source image or replicated if they are outside it
- //
- // Returns:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width or height of images is less or equal zero
- // ippStsStepErr The steps in images are too small
- // ippStsNotEvenStepErr Step is not multiple of element.
- //
- // Parameters:
- // pSrc Pointer to source image
- // srcStep Step in source image
- // srcRoiSize Source image ROI size.
- // pDst Pointer to destination image
- // dstStep Step in destination image
- // dstRoiSize Destination image ROI size.
- // point Center of dst window in src image (subpixel)
- // pMin Top left corner of dst filled part
- // pMax Bottom right corner of dst filled part
- // scaleFactor Output scale factor, >= 0
- //
- // Notes: For integer point.x or point.y pixels from the last row
- // or column are not copied. Branches are possible.
- //F*/
- IPPAPI(IppStatus, ippiCopySubpixIntersect_8u_C1R, (const Ipp8u* pSrc, int srcStep,
- IppiSize srcRoiSize, Ipp8u* pDst, int dstStep, IppiSize dstRoiSize,
- IppiPoint_32f point, IppiPoint *pMin, IppiPoint *pMax))
- IPPAPI(IppStatus, ippiCopySubpixIntersect_8u16u_C1R_Sfs, (const Ipp8u* pSrc, int srcStep,
- IppiSize srcRoiSize, Ipp16u* pDst, int dstStep, IppiSize dstRoiSize,
- IppiPoint_32f point, IppiPoint *pMin, IppiPoint *pMax, int scaleFactor))
- IPPAPI(IppStatus, ippiCopySubpixIntersect_8u32f_C1R, (const Ipp8u* pSrc, int srcStep,
- IppiSize srcRoiSize, Ipp32f* pDst, int dstStep, IppiSize dstRoiSize,
- IppiPoint_32f point, IppiPoint *pMin, IppiPoint *pMax))
- IPPAPI(IppStatus, ippiCopySubpixIntersect_16u_C1R, (const Ipp16u* pSrc, int srcStep,
- IppiSize srcRoiSize, Ipp16u* pDst, int dstStep, IppiSize dstRoiSize,
- IppiPoint_32f point, IppiPoint *pMin, IppiPoint *pMax))
- IPPAPI(IppStatus, ippiCopySubpixIntersect_16u32f_C1R, (const Ipp16u* pSrc, int srcStep,
- IppiSize srcRoiSize, Ipp32f* pDst, int dstStep, IppiSize dstRoiSize,
- IppiPoint_32f point, IppiPoint *pMin, IppiPoint *pMax))
- IPPAPI(IppStatus, ippiCopySubpixIntersect_32f_C1R, (const Ipp32f* pSrc, int srcStep,
- IppiSize srcRoiSize, Ipp32f* pDst, int dstStep, IppiSize dstRoiSize,
- IppiPoint_32f point, IppiPoint *pMin, IppiPoint *pMax))
- /****************************************************************************************\
- * Line sampling *
- \****************************************************************************************/
- /*F///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiSampleLine_8u_C1R, ippiSampleLine_8u_C3R,
- // ippiSampleLine_16u_C1R, ippiSampleLine_16u_C3R,
- // ippiSampleLine_32f_C1R, ippiSampleLine_32f_C3R,
- //
- // Purpose: Reads values of pixels on the raster
- // line between two given points and write them to buffer.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width or height of images is less or equal zero
- // ippStsStepErr The steps in images are too small
- // ippStsNotEvenStepErr Step is not multiple of element.
- // ippStsOutOfRangeErr At least one of the points is outside the image ROI.
- //
- // Parameters:
- // pSrc Source image
- // srcStep Its step
- // roiSize ROI size
- // pBuffer Pointer to buffer where the pixels are stored.
- // It must have size >= max(abs(pt2.y - pt1.y)+1,
- // abs(pt2.x - pt1.x)+1)*
- // <size_of_pixel>.
- // pt1 Starting point of the line segment.
- // The pixel value will be stored to buffer first.
- // pt2 Ending point of the line segment.
- // The pixel value will be stored to buffer last.
- //F*/
- IPPAPI(IppStatus, ippiSampleLine_8u_C1R, ( const Ipp8u* pSrc, int srcStep,
- IppiSize roiSize, Ipp8u* pDst,
- IppiPoint pt1, IppiPoint pt2 ))
- IPPAPI(IppStatus, ippiSampleLine_8u_C3R, ( const Ipp8u* pSrc, int srcStep,
- IppiSize roiSize, Ipp8u* pDst,
- IppiPoint pt1, IppiPoint pt2 ))
- IPPAPI(IppStatus, ippiSampleLine_16u_C1R, ( const Ipp16u* pSrc, int srcStep,
- IppiSize roiSize, Ipp16u* pDst,
- IppiPoint pt1, IppiPoint pt2 ))
- IPPAPI(IppStatus, ippiSampleLine_16u_C3R, ( const Ipp16u* pSrc, int srcStep,
- IppiSize roiSize, Ipp16u* pDst,
- IppiPoint pt1, IppiPoint pt2 ))
- IPPAPI(IppStatus, ippiSampleLine_32f_C1R, ( const Ipp32f* pSrc, int srcStep,
- IppiSize roiSize, Ipp32f* pDst,
- IppiPoint pt1, IppiPoint pt2 ))
- IPPAPI(IppStatus, ippiSampleLine_32f_C3R, ( const Ipp32f* pSrc, int srcStep,
- IppiSize roiSize, Ipp32f* pDst,
- IppiPoint pt1, IppiPoint pt2 ))
- /****************************************************************************************\
- * Accumulation *
- \****************************************************************************************/
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiAdd_8u32f_C1IR, ippiAdd_8s32f_C1IR,
- // ippiAdd_16u32f_C1IR,
- // ippiAdd_8u32f_C1IMR, ippiAdd_8s32f_C1IMR,
- // ippiAdd_16u32f_C1IMR, ippiAdd_32f_C1IMR
- //
- // Purpose: Add image to accumulator.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width or height of images is less or equal zero
- // ippStsStepErr Step is too small to fit image.
- // ippStsNotEvenStepErr Step is not multiple of element.
- //
- // Arguments:
- // pSrc Pointer to source image
- // srcStep Step in the source image
- // pMask Pointer to mask
- // maskStep Step in the mask image
- // pSrcDst Pointer to accumulator image
- // srcDstStep Step in the accumulator image
- // roiSize Image size
- */
- IPPAPI(IppStatus, ippiAdd_8u32f_C1IR, (const Ipp8u* pSrc, int srcStep,
- Ipp32f* pSrcDst, int srcDstStep,
- IppiSize roiSize ))
- IPPAPI(IppStatus, ippiAdd_8s32f_C1IR, (const Ipp8s* pSrc, int srcStep,
- Ipp32f* pSrcDst, int srcDstStep,
- IppiSize roiSize ))
- IPPAPI(IppStatus, ippiAdd_16u32f_C1IR, (const Ipp16u* pSrc, int srcStep,
- Ipp32f* pSrcDst, int srcDstStep,
- IppiSize roiSize ))
- IPPAPI(IppStatus, ippiAdd_8u32f_C1IMR,(const Ipp8u* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- Ipp32f* pSrcDst, int srcDstStep,
- IppiSize roiSize ))
- IPPAPI(IppStatus, ippiAdd_8s32f_C1IMR,(const Ipp8s* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- Ipp32f* pSrcDst, int srcDstStep,
- IppiSize roiSize ))
- IPPAPI(IppStatus, ippiAdd_16u32f_C1IMR,(const Ipp16u* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- Ipp32f* pSrcDst, int srcDstStep,
- IppiSize roiSize ))
- IPPAPI(IppStatus, ippiAdd_32f_C1IMR, (const Ipp32f* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- Ipp32f* pSrcDst, int srcDstStep,
- IppiSize roiSize ))
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiAddSquare_8u32f_C1IR, ippiAddSquare_8s32f_C1IR,
- // ippiAddSquare_16u32f_C1IR, ippiAddSquare_32f_C1IR,
- // ippiAddSquare_8u32f_C1IMR, ippiAddSquare_8s32f_C1IMR,
- // ippiAddSquare_16u32f_C1IMR, ippiAddSquare_32f_C1IMR
- //
- // Purpose: Add squared image (i.e. multiplied by itself) to accumulator.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width or height of images is less or equal zero
- // ippStsStepErr Step is too small to fit image.
- // ippStsNotEvenStepErr Step is not multiple of element.
- //
- // Arguments:
- // pSrc Pointer to source image
- // srcStep Step in the source image
- // pMask Pointer to mask
- // maskStep Step in the mask image
- // pSrcDst Pointer to accumulator image
- // srcDstStep Step in the accumulator image
- // roiSize Image size
- */
- IPPAPI(IppStatus, ippiAddSquare_8u32f_C1IR, (const Ipp8u* pSrc, int srcStep,
- Ipp32f* pSrcDst, int srcDstStep,
- IppiSize roiSize ))
- IPPAPI(IppStatus, ippiAddSquare_8s32f_C1IR, (const Ipp8s* pSrc, int srcStep,
- Ipp32f* pSrcDst, int srcDstStep,
- IppiSize roiSize ))
- IPPAPI(IppStatus, ippiAddSquare_16u32f_C1IR, (const Ipp16u* pSrc, int srcStep,
- Ipp32f* pSrcDst, int srcDstStep,
- IppiSize roiSize ))
- IPPAPI(IppStatus, ippiAddSquare_32f_C1IR, (const Ipp32f* pSrc, int srcStep,
- Ipp32f* pSrcDst, int srcDstStep,
- IppiSize roiSize ))
- IPPAPI(IppStatus, ippiAddSquare_8u32f_C1IMR,(const Ipp8u* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- Ipp32f* pSrcDst, int srcDstStep,
- IppiSize roiSize ))
- IPPAPI(IppStatus, ippiAddSquare_8s32f_C1IMR,(const Ipp8s* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- Ipp32f* pSrcDst, int srcDstStep,
- IppiSize roiSize ))
- IPPAPI(IppStatus, ippiAddSquare_16u32f_C1IMR,(const Ipp16u* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- Ipp32f* pSrcDst, int srcDstStep,
- IppiSize roiSize ))
- IPPAPI(IppStatus, ippiAddSquare_32f_C1IMR, (const Ipp32f* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- Ipp32f* pSrcDst, int srcDstStep,
- IppiSize roiSize ))
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiAddProduct_8u32f_C1IR, ippiAddProduct_8s32f_C1IR,
- // ippiAddProduct_16u32f_C1IR, ippiAddProduct_32f_C1IR,
- // ippiAddProduct_8u32f_C1IMR, ippiAddProduct_8s32f_C1IMR,
- // ippiAddProduct_16u32f_C1IMR, ippiAddProduct_32f_C1IMR
- //
- // Purpose: Add product of two images to accumulator.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width or height of images is less or equal zero
- // ippStsStepErr Step is too small to fit image.
- // ippStsNotEvenStepErr Step is not multiple of element.
- //
- // Arguments:
- // pSrc1 Pointer to first source image
- // src1Step Step in the first source image
- // pSrc2 Pointer to second source image
- // src2Step Step in the second source image
- // pMask Pointer to mask
- // maskStep Step in the mask image
- // pSrcDst Pointer to accumulator image
- // srcDstStep Step in the accumulator image
- // roiSize Image size
- */
- IPPAPI(IppStatus, ippiAddProduct_8u32f_C1IR, (const Ipp8u* pSrc1, int src1Step,
- const Ipp8u* pSrc2, int src2Step,
- Ipp32f* pSrcDst, int srcDstStep,
- IppiSize roiSize ))
- IPPAPI(IppStatus, ippiAddProduct_8s32f_C1IR, (const Ipp8s* pSrc1, int src1Step,
- const Ipp8s* pSrc2, int src2Step,
- Ipp32f* pSrcDst, int srcDstStep,
- IppiSize roiSize ))
- IPPAPI(IppStatus, ippiAddProduct_16u32f_C1IR, (const Ipp16u* pSrc1, int src1Step,
- const Ipp16u* pSrc2, int src2Step,
- Ipp32f* pSrcDst, int srcDstStep,
- IppiSize roiSize ))
- IPPAPI(IppStatus, ippiAddProduct_32f_C1IR, (const Ipp32f* pSrc1, int src1Step,
- const Ipp32f* pSrc2, int src2Step,
- Ipp32f* pSrcDst, int srcDstStep,
- IppiSize roiSize ))
- IPPAPI(IppStatus, ippiAddProduct_8u32f_C1IMR,(const Ipp8u* pSrc1, int src1Step,
- const Ipp8u* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- Ipp32f* pSrcDst, int srcDstStep,
- IppiSize roiSize ))
- IPPAPI(IppStatus, ippiAddProduct_8s32f_C1IMR,(const Ipp8s* pSrc1, int src1Step,
- const Ipp8s* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- Ipp32f* pSrcDst, int srcDstStep,
- IppiSize roiSize ))
- IPPAPI(IppStatus, ippiAddProduct_16u32f_C1IMR,(const Ipp16u* pSrc1, int src1Step,
- const Ipp16u* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- Ipp32f* pSrcDst, int srcDstStep,
- IppiSize roiSize ))
- IPPAPI(IppStatus, ippiAddProduct_32f_C1IMR, (const Ipp32f* pSrc1, int src1Step,
- const Ipp32f* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- Ipp32f* pSrcDst, int srcDstStep,
- IppiSize roiSize ))
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiAddWeighted_8u32f_C1IR, ippiAddWeighted_8s32f_C1IR,
- // ippiAddWeighted_16u32f_C1IR, ippiAddWeighted_32f_C1IR,
- // ippiAddWeighted_8u32f_C1IMR, ippiAddWeighted_8s32f_C1IMR,
- // ippiAddWeighted_16u32f_C1IMR,ippiAddWeighted_32f_C1IMR
- // ippiAddWeighted_32f_C1R
- //
- // Purpose: Add image, multiplied by alpha, to accumulator, multiplied by (1 - alpha).
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width or height of images is less or equal zero
- // ippStsStepErr Step is too small to fit image.
- // ippStsNotEvenStepErr Step is not multiple of element.
- //
- // Arguments:
- // pSrc1 Pointer to first source image
- // src1Step Step in the first source image
- // pSrc2 Pointer to second source image
- // src2Step Step in the second source image
- // pMask Pointer to mask
- // maskStep Step in the mask image
- // pSrcDst Pointer to accumulator image
- // srcDstStep Step in the accumulator image
- // pDst Pointer to destination image
- // dstStep Step in the destination image
- // roiSize Image size
- // alpha Weight of source image
- */
- IPPAPI(IppStatus, ippiAddWeighted_8u32f_C1IR, (const Ipp8u* pSrc, int srcStep,
- Ipp32f* pSrcDst, int srcDstStep,
- IppiSize roiSize, Ipp32f alpha ))
- IPPAPI(IppStatus, ippiAddWeighted_8s32f_C1IR, (const Ipp8s* pSrc, int srcStep,
- Ipp32f* pSrcDst, int srcDstStep,
- IppiSize roiSize, Ipp32f alpha ))
- IPPAPI(IppStatus, ippiAddWeighted_16u32f_C1IR, (const Ipp16u* pSrc, int srcStep,
- Ipp32f* pSrcDst, int srcDstStep,
- IppiSize roiSize, Ipp32f alpha ))
- IPPAPI(IppStatus, ippiAddWeighted_32f_C1IR, (const Ipp32f* pSrc, int srcStep,
- Ipp32f* pSrcDst, int srcDstStep,
- IppiSize roiSize, Ipp32f alpha ))
- IPPAPI(IppStatus, ippiAddWeighted_8u32f_C1IMR,(const Ipp8u* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- Ipp32f* pSrcDst, int srcDstStep,
- IppiSize roiSize, Ipp32f alpha ))
- IPPAPI(IppStatus, ippiAddWeighted_8s32f_C1IMR,(const Ipp8s* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- Ipp32f* pSrcDst, int srcDstStep,
- IppiSize roiSize, Ipp32f alpha ))
- IPPAPI(IppStatus, ippiAddWeighted_16u32f_C1IMR,(const Ipp16u* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- Ipp32f* pSrcDst, int srcDstStep,
- IppiSize roiSize, Ipp32f alpha ))
- IPPAPI(IppStatus, ippiAddWeighted_32f_C1IMR, (const Ipp32f* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- Ipp32f* pSrcDst, int srcDstStep,
- IppiSize roiSize, Ipp32f alpha ))
- IPPAPI(IppStatus, ippiAddWeighted_32f_C1R, ( const Ipp32f* pSrc1, int src1Step,
- const Ipp32f* pSrc2, int src2Step,
- Ipp32f* pDst, int dstStep,
- IppiSize roiSize, Ipp32f alpha ))
- /****************************************************************************************\
- * Absolute difference *
- \****************************************************************************************/
- /*F///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiAbsDiff_8u_C1R, ippiAbsDiff_8u_C3R, ippiAbsDiff_16u_C1R, ippiAbsDiff_32f_C1R,
- //
- // Purpose: Calculate absolute difference between corresponding pixels of the two images
- // or between image pixels and scalar.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width or height of images is less or equal zero
- // ippStsStepErr The steps in images are too small
- // ippStsNotEvenStepErr Step is not multiple of element.
- //
- // Parameters:
- // pSrc1 Source image
- // src1Step Its step
- // pSrc2 Second source image
- // src2Step Its step
- // pDst Destination image
- // dstStep Its step
- // roiSize ROI size
- //F*/
- IPPAPI(IppStatus, ippiAbsDiff_8u_C1R, ( const Ipp8u* pSrc1, int src1Step,
- const Ipp8u* pSrc2, int src2Step,
- Ipp8u* pDst, int dstStep, IppiSize roiSize ))
- IPPAPI(IppStatus, ippiAbsDiff_8u_C3R, ( const Ipp8u* pSrc1, int src1Step,
- const Ipp8u* pSrc2, int src2Step,
- Ipp8u* pDst, int dstStep, IppiSize roiSize ))
- IPPAPI(IppStatus, ippiAbsDiff_16u_C1R, ( const Ipp16u* pSrc1, int src1Step,
- const Ipp16u* pSrc2, int src2Step,
- Ipp16u* pDst, int dstStep, IppiSize roiSize ))
- IPPAPI(IppStatus, ippiAbsDiff_32f_C1R, ( const Ipp32f* pSrc1, int src1Step,
- const Ipp32f* pSrc2, int src2Step,
- Ipp32f* pDst, int dstStep, IppiSize roiSize ))
- /*F///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiAbsDiffC_8u_C1R, ippiAbsDiffC_16u_C1R, ippiAbsDiffC_32f_C1R,
- //
- // Purpose: Calculate absolute difference between image pixels and scalar.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width or height of images is less or equal zero
- // ippStsStepErr The steps in images are too small
- // ippStsNotEvenStepErr Step is not multiple of element.
- //
- // Parameters:
- // pSrc Source image
- // srcStep Its step
- // pDst Destination image: dst(x,y) = abs(src(x,y) - value)
- // dstStep Its step
- // roiSize ROI size
- // value Scalar value to compare with. For 8u function
- // If scalar is not within [0,255], it is clipped
- // ( value = value < 0 ? 0 : value > 255 ? 255 : value )
- //F*/
- IPPAPI(IppStatus, ippiAbsDiffC_8u_C1R, ( const Ipp8u* pSrc, int srcStep,
- Ipp8u* pDst, int dstStep,
- IppiSize roiSize, int value ))
- IPPAPI(IppStatus, ippiAbsDiffC_16u_C1R, ( const Ipp16u* pSrc, int srcStep,
- Ipp16u* pDst, int dstStep,
- IppiSize roiSize, int value ))
- IPPAPI(IppStatus, ippiAbsDiffC_32f_C1R, ( const Ipp32f* pSrc, int srcStep,
- Ipp32f* pDst, int dstStep,
- IppiSize roiSize, Ipp32f value ))
- /****************************************************************************************\
- * Morphological Operations *
- \****************************************************************************************/
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiMorphologyGetSize_8u_C1R, ippiMorphologyGetSize_32f_C1R,
- // ippiMorphologyGetSize_8u_C3R, ippiMorphologyGetSize_32f_C3R,
- // ippiMorphologyGetSize_8u_C4R, ippiMorphologyGetSize_32f_C4R
- //
- // Purpose: Gets size of internal state of morphological operation.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width of image or width or height of structuring
- // element is less or equal zero.
- //
- // Arguments:
- // roiWidth Width of image ROI in pixels
- // pMask Pointer to structuring element (mask)
- // maskSize Size of structuring element
- // pSize Pointer to state length (GetSize)
- */
- IPPAPI(IppStatus, ippiMorphologyGetSize_8u_C1R,(int roiWidth, const Ipp8u* pMask, IppiSize maskSize, int* pSize))
- IPPAPI(IppStatus, ippiMorphologyGetSize_8u_C3R,(int roiWidth, const Ipp8u* pMask, IppiSize maskSize, int* pSize))
- IPPAPI(IppStatus, ippiMorphologyGetSize_8u_C4R,(int roiWidth, const Ipp8u* pMask, IppiSize maskSize, int* pSize))
- IPPAPI(IppStatus, ippiMorphologyGetSize_32f_C1R,(int roiWidth, const Ipp8u* pMask, IppiSize maskSize, int* pSize))
- IPPAPI(IppStatus, ippiMorphologyGetSize_32f_C3R,(int roiWidth, const Ipp8u* pMask, IppiSize maskSize, int* pSize))
- IPPAPI(IppStatus, ippiMorphologyGetSize_32f_C4R,(int roiWidth, const Ipp8u* pMask, IppiSize maskSize, int* pSize))
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiMorphologyInit_8u_C1R, ippiMorphologyInit_32f_C1R,
- // ippiMorphologyInit_8u_C3R, ippiMorphologyInit_32f_C3R,
- // ippiMorphologyInit_8u_C4R, ippiMorphologyInit_32f_C4R,
- //
- // Purpose: Initialize internal state of morphological operation.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width of image or width or height of structuring
- // element is less or equal zero.
- // ippStsAnchorErr Anchor point is outside the structuring element
- //
- // Arguments:
- // roiWidth Width of image ROI in pixels
- // pMask Pointer to structuring element (mask)
- // maskSize Size of structuring element
- // anchor Anchor of the structuring element
- // pState Pointer to morphological state (Init)
- */
- IPPAPI(IppStatus, ippiMorphologyInit_8u_C1R,(int roiWidth, const Ipp8u* pMask, IppiSize maskSize,
- IppiPoint anchor, IppiMorphState* pState))
- IPPAPI(IppStatus, ippiMorphologyInit_8u_C3R,(int roiWidth, const Ipp8u* pMask, IppiSize maskSize,
- IppiPoint anchor, IppiMorphState* pState))
- IPPAPI(IppStatus, ippiMorphologyInit_8u_C4R,(int roiWidth, const Ipp8u* pMask, IppiSize maskSize,
- IppiPoint anchor, IppiMorphState* pState))
- IPPAPI(IppStatus, ippiMorphologyInit_32f_C1R,(int roiWidth, const Ipp8u* pMask, IppiSize maskSize,
- IppiPoint anchor, IppiMorphState* pState))
- IPPAPI(IppStatus, ippiMorphologyInit_32f_C3R,(int roiWidth, const Ipp8u* pMask, IppiSize maskSize,
- IppiPoint anchor, IppiMorphState* pState))
- IPPAPI(IppStatus, ippiMorphologyInit_32f_C4R,(int roiWidth, const Ipp8u* pMask, IppiSize maskSize,
- IppiPoint anchor, IppiMorphState* pState))
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiMorphologyInitAlloc_8u_C1R, ippiMorphologyInitAlloc_32f_C1R,
- // ippiMorphologyInitAlloc_8u_C3R, ippiMorphologyInitAlloc_32f_C3R,
- // ippiMorphologyInitAlloc_8u_C4R, ippiMorphologyInitAlloc_32f_C4R
- //
- // Purpose: Allocate buffers and initialize internal state of morphological operation.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width of image or width or height of structuring
- // element is less or equal zero.
- // ippStsAnchorErr Anchor point is outside the structuring element
- // ippStsMemAllocErr Memory allocation error
- //
- // Arguments:
- // roiWidth Width of image ROI in pixels
- // pMask Pointer to structuring element (mask)
- // maskSize Size of structuring element
- // anchor Anchor of the structuring element
- // ppState Double pointer to morphological state (InitAlloc)
- */
- IPPAPI(IppStatus, ippiMorphologyInitAlloc_8u_C1R,(int roiWidth, const Ipp8u* pMask, IppiSize maskSize,
- IppiPoint anchor, IppiMorphState** ppState))
- IPPAPI(IppStatus, ippiMorphologyInitAlloc_8u_C3R,(int roiWidth, const Ipp8u* pMask, IppiSize maskSize,
- IppiPoint anchor, IppiMorphState** ppState))
- IPPAPI(IppStatus, ippiMorphologyInitAlloc_8u_C4R,(int roiWidth, const Ipp8u* pMask, IppiSize maskSize,
- IppiPoint anchor, IppiMorphState** ppState))
- IPPAPI(IppStatus, ippiMorphologyInitAlloc_32f_C1R,(int roiWidth, const Ipp8u* pMask, IppiSize maskSize,
- IppiPoint anchor, IppiMorphState** ppState))
- IPPAPI(IppStatus, ippiMorphologyInitAlloc_32f_C3R,(int roiWidth, const Ipp8u* pMask, IppiSize maskSize,
- IppiPoint anchor, IppiMorphState** ppState))
- IPPAPI(IppStatus, ippiMorphologyInitAlloc_32f_C4R,(int roiWidth, const Ipp8u* pMask, IppiSize maskSize,
- IppiPoint anchor, IppiMorphState** ppState))
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiMorphologyFree
- //
- // Purpose: Releases buffers, allocated by ippiMorphologyInitAlloc
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- //
- // Arguments:
- // morphState Pointer to morphological state.
- */
- IPPAPI(IppStatus, ippiMorphologyFree,(IppiMorphState* pState))
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiDilateBorderReplicate_8u_C1R, ippiDilateBorderReplicate_8u_C3R,
- // ippiDilateBorderReplicate_8u_C4R, ippiDilateBorderReplicate_32f_C1R,
- // ippiDilateBorderReplicate_32f_C3R, ippiDilateBorderReplicate_32f_C4R
- //
- // ippiErodeBorderReplicate_8u_C1R, ippiErodeBorderReplicate_8u_C3R,
- // ippiErodeBorderReplicate_8u_C4R, ippiErodeBorderReplicate_32f_C1R,
- // ippiErodeBorderReplicate_32f_C3R, ippiErodeBorderReplicate_32f_C4R,
- //
- // Purpose: Perform erosion/dilation of image arbitrary shape structuring element.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The ROI width or height is less than 1
- // or ROI width is bigger than ROI width in state
- // ippStsStepErr Step is too small to fit image.
- // ippStsNotEvenStepErr Step is not multiple of element.
- // ippStsBadArgErr Bad border type
- //
- // Arguments:
- // pSrc The pointer to source image
- // srcStep The step in source image
- // pDst The pointer to destination image
- // dstStep The step in destination image
- // roiSize ROI size
- // borderType Type of border (ippBorderRepl now)
- // pState Pointer to morphological operation state
- */
- IPPAPI(IppStatus, ippiDilateBorderReplicate_8u_C1R,(const Ipp8u* pSrc, int srcStep,
- Ipp8u* pDst, int dstStep, IppiSize roiSize,
- IppiBorderType borderType, IppiMorphState* pState))
- IPPAPI(IppStatus, ippiDilateBorderReplicate_8u_C3R,(const Ipp8u* pSrc, int srcStep,
- Ipp8u* pDst, int dstStep, IppiSize roiSize,
- IppiBorderType borderType, IppiMorphState* pState))
- IPPAPI(IppStatus, ippiDilateBorderReplicate_8u_C4R,(const Ipp8u* pSrc, int srcStep,
- Ipp8u* pDst, int dstStep, IppiSize roiSize,
- IppiBorderType borderType, IppiMorphState* pState))
- IPPAPI(IppStatus, ippiDilateBorderReplicate_32f_C1R,(const Ipp32f* pSrc, int srcStep,
- Ipp32f* pDst, int dstStep, IppiSize roiSize,
- IppiBorderType borderType, IppiMorphState* pState))
- IPPAPI(IppStatus, ippiDilateBorderReplicate_32f_C3R,(const Ipp32f* pSrc, int srcStep,
- Ipp32f* pDst, int dstStep, IppiSize roiSize,
- IppiBorderType borderType, IppiMorphState* pState))
- IPPAPI(IppStatus, ippiDilateBorderReplicate_32f_C4R,(const Ipp32f* pSrc, int srcStep,
- Ipp32f* pDst, int dstStep, IppiSize roiSize,
- IppiBorderType borderType, IppiMorphState* pState))
- IPPAPI(IppStatus, ippiErodeBorderReplicate_8u_C1R,(const Ipp8u* pSrc, int srcStep,
- Ipp8u* pDst, int dstStep, IppiSize roiSize,
- IppiBorderType borderType, IppiMorphState* pState))
- IPPAPI(IppStatus, ippiErodeBorderReplicate_8u_C3R,(const Ipp8u* pSrc, int srcStep,
- Ipp8u* pDst, int dstStep, IppiSize roiSize,
- IppiBorderType borderType, IppiMorphState* pState))
- IPPAPI(IppStatus, ippiErodeBorderReplicate_8u_C4R,(const Ipp8u* pSrc, int srcStep,
- Ipp8u* pDst, int dstStep, IppiSize roiSize,
- IppiBorderType borderType, IppiMorphState* pState))
- IPPAPI(IppStatus, ippiErodeBorderReplicate_32f_C1R,(const Ipp32f* pSrc, int srcStep,
- Ipp32f* pDst, int dstStep, IppiSize roiSize,
- IppiBorderType borderType, IppiMorphState* pState))
- IPPAPI(IppStatus, ippiErodeBorderReplicate_32f_C3R,(const Ipp32f* pSrc, int srcStep,
- Ipp32f* pDst, int dstStep, IppiSize roiSize,
- IppiBorderType borderType, IppiMorphState* pState))
- IPPAPI(IppStatus, ippiErodeBorderReplicate_32f_C4R,(const Ipp32f* pSrc, int srcStep,
- Ipp32f* pDst, int dstStep, IppiSize roiSize,
- IppiBorderType borderType, IppiMorphState* pState))
- /****************************************************************************************\
- * Advanced Morphological Operations *
- \****************************************************************************************/
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiMorphAdvGetSize_8u_C1R, ippiMorphAdvGetSize_32f_C1R,
- // ippiMorphAdvGetSize_8u_C3R, ippiMorphAdvGetSize_32f_C3R,
- // ippiMorphAdvGetSize_8u_C4R, ippiMorphAdvGetSize_32f_C4R
- //
- // Purpose: Gets size of internal state of advanced morphological operation.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width of image or width or height of structuring
- // element is less or equal zero.
- //
- // Arguments:
- // roiSize Maximal image ROI in pixels
- // pMask Pointer to structuring element (mask)
- // maskSize Size of structuring element
- // pSize Pointer to state length (GetSize)
- */
- IPPAPI(IppStatus, ippiMorphAdvGetSize_8u_C1R,(IppiSize roiSize, const Ipp8u* pMask,
- IppiSize maskSize, int* stateSize))
- IPPAPI(IppStatus, ippiMorphAdvGetSize_8u_C3R,(IppiSize roiSize, const Ipp8u* pMask,
- IppiSize maskSize, int* stateSize))
- IPPAPI(IppStatus, ippiMorphAdvGetSize_8u_C4R,(IppiSize roiSize, const Ipp8u* pMask,
- IppiSize maskSize, int* stateSize))
- IPPAPI(IppStatus, ippiMorphAdvGetSize_32f_C1R,(IppiSize roiSize, const Ipp8u* pMask,
- IppiSize maskSize, int* stateSize))
- IPPAPI(IppStatus, ippiMorphAdvGetSize_32f_C3R,(IppiSize roiSize, const Ipp8u* pMask,
- IppiSize maskSize, int* stateSize))
- IPPAPI(IppStatus, ippiMorphAdvGetSize_32f_C4R,(IppiSize roiSize, const Ipp8u* pMask,
- IppiSize maskSize, int* stateSize))
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiMorphAdvInit_8u_C1R, ippiMorphAdvInit_32f_C1R,
- // ippiMorphAdvInit_8u_C3R, ippiMorphAdvInit_32f_C3R,
- // ippiMorphAdvInit_8u_C4R, ippiMorphAdvInit_32f_C4R,
- //
- // Purpose: Initialize internal state of advanced morphological operation.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width of image or width or height of structuring
- // element is less or equal zero.
- // ippStsAnchorErr Anchor point is outside the structuring element
- //
- // Arguments:
- // pState Pointer to morphological state (Init)
- // roiSize Maximal image ROI in pixels
- // pMask Pointer to structuring element (mask)
- // maskSize Size of structuring element
- // anchor Anchor of the structuring element
- */
- IPPAPI(IppStatus, ippiMorphAdvInit_8u_C1R,(IppiMorphAdvState* morphState, IppiSize roiSize, const Ipp8u* pMask,
- IppiSize maskSize, IppiPoint anchor))
- IPPAPI(IppStatus, ippiMorphAdvInit_8u_C3R,(IppiMorphAdvState* morphState, IppiSize roiSize, const Ipp8u* pMask,
- IppiSize maskSize, IppiPoint anchor))
- IPPAPI(IppStatus, ippiMorphAdvInit_8u_C4R,(IppiMorphAdvState* morphState, IppiSize roiSize, const Ipp8u* pMask,
- IppiSize maskSize, IppiPoint anchor))
- IPPAPI(IppStatus, ippiMorphAdvInit_32f_C1R,(IppiMorphAdvState* morphState, IppiSize roiSize, const Ipp8u* pMask,
- IppiSize maskSize, IppiPoint anchor))
- IPPAPI(IppStatus, ippiMorphAdvInit_32f_C3R,(IppiMorphAdvState* morphState, IppiSize roiSize, const Ipp8u* pMask,
- IppiSize maskSize, IppiPoint anchor))
- IPPAPI(IppStatus, ippiMorphAdvInit_32f_C4R,(IppiMorphAdvState* morphState, IppiSize roiSize, const Ipp8u* pMask,
- IppiSize maskSize, IppiPoint anchor))
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiMorphAdvInitAlloc_8u_C1R, ippiMorphAdvInitAlloc_32f_C1R,
- // ippiMorphAdvInitAlloc_8u_C3R, ippiMorphAdvInitAlloc_32f_C3R,
- // ippiMorphAdvInitAlloc_8u_C4R, ippiMorphAdvInitAlloc_32f_C4R
- //
- // Purpose: Allocate buffers and initialize internal state of advanced morphological operation.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width of image or width or height of structuring
- // element is less or equal zero.
- // ippStsAnchorErr Anchor point is outside the structuring element
- // ippStsMemAllocErr Memory allocation error
- //
- // Arguments:
- // ppState Double pointer to morphological state (InitAlloc)
- // roiSize Maximal image ROI in pixels
- // pMask Pointer to structuring element (mask)
- // maskSize Size of structuring element
- // anchor Anchor of the structuring element
- */
- IPPAPI(IppStatus, ippiMorphAdvInitAlloc_8u_C1R,(IppiMorphAdvState** morphState, IppiSize roiSize, const Ipp8u* pMask,
- IppiSize maskSize, IppiPoint anchor))
- IPPAPI(IppStatus, ippiMorphAdvInitAlloc_8u_C3R,(IppiMorphAdvState** morphState, IppiSize roiSize, const Ipp8u* pMask,
- IppiSize maskSize, IppiPoint anchor))
- IPPAPI(IppStatus, ippiMorphAdvInitAlloc_8u_C4R,(IppiMorphAdvState** morphState, IppiSize roiSize, const Ipp8u* pMask,
- IppiSize maskSize, IppiPoint anchor))
- IPPAPI(IppStatus, ippiMorphAdvInitAlloc_32f_C1R,(IppiMorphAdvState** morphState, IppiSize roiSize, const Ipp8u* pMask,
- IppiSize maskSize, IppiPoint anchor))
- IPPAPI(IppStatus, ippiMorphAdvInitAlloc_32f_C3R,(IppiMorphAdvState** morphState, IppiSize roiSize, const Ipp8u* pMask,
- IppiSize maskSize, IppiPoint anchor))
- IPPAPI(IppStatus, ippiMorphAdvInitAlloc_32f_C4R,(IppiMorphAdvState** morphState, IppiSize roiSize, const Ipp8u* pMask,
- IppiSize maskSize, IppiPoint anchor))
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiMorphAdvFree
- //
- // Purpose: Releases buffers, allocated by rippiMorphAdvInitAlloc
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr Null pointer to pointer to morphological state.
- //
- // Arguments:
- // pState double pointer to morphological state.
- */
- IPPAPI(IppStatus, ippiMorphAdvFree,(IppiMorphAdvState* pState))
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiMorphCloseBorder_8u_C1R, ippiMorphCloseBorder_8u_C3R,
- // ippiMorphCloseBorder_8u_C4R, ippiMorphCloseBorder_32f_C1R,
- // ippiMorphCloseBorder_32f_C3R, ippiMorphCloseBorder_32f_C4R
- //
- // ippiMorphOpenBorder_8u_C1R, ippiMorphOpenBorder_8u_C3R,
- // ippiMorphOpenBorder_8u_C4R, ippiMorphOpenBorder_32f_C1R,
- // ippiMorphOpenBorder_32f_C3R, ippiMorphOpenBorder_32f_C4R,
- //
- // ippiMorphTophatBorder_8u_C1R, ippiMorphTophatBorder_8u_C3R,
- // ippiMorphTophatBorder_8u_C4R, ippiMorphTophatBorder_32f_C1R,
- // ippiMorphTophatBorder_32f_C3R, ippiMorphTophatBorder_32f_C4R,
- //
- // ippiMorphBlackhatBorder_8u_C1R, ippiMorphBlackhatBorder_8u_C3R,
- // ippiMorphBlackhatBorder_8u_C4R, ippiMorphBlackhatBorder_32f_C1R,
- // ippiMorphBlackhatBorder_32f_C3R, ippiMorphBlackhatBorder_32f_C4R,
- //
- // ippiMorphGradientBorder_8u_C1R, ippiMorphGradientBorder_8u_C3R,
- // ippiMorphGradientBorder_8u_C4R, ippiMorphGradientBorder_32f_C1R,
- // ippiMorphGradientBorder_32f_C3R, ippiMorphGradientBorder_32f_C4R,
- //
- // Purpose: Perform advanced morphology of image arbitrary shape structuring element.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The ROI width or height is less than 1
- // or ROI width is bigger than ROI width in state
- // ippStsStepErr Step is too small to fit image.
- // ippStsNotEvenStepErr Step is not multiple of element.
- // ippStsBadArgErr Bad border type
- //
- // Arguments:
- // pSrc The pointer to source image
- // srcStep The step in source image
- // pDst The pointer to destination image
- // dstStep The step in destination image
- // roiSize ROI size
- // borderType Type of border (ippBorderRepl now)
- // pState Pointer to morphological operation state
- */
- IPPAPI(IppStatus, ippiMorphOpenBorder_8u_C1R,(
- const Ipp8u* pSrc, int srcStep, Ipp8u* pDst, int dstStep,
- IppiSize roiSize, IppiBorderType borderType, IppiMorphAdvState* pState))
- IPPAPI(IppStatus, ippiMorphOpenBorder_8u_C3R,(
- const Ipp8u* pSrc, int srcStep, Ipp8u* pDst, int dstStep,
- IppiSize roiSize, IppiBorderType borderType, IppiMorphAdvState* pState))
- IPPAPI(IppStatus, ippiMorphOpenBorder_8u_C4R,(
- const Ipp8u* pSrc, int srcStep, Ipp8u* pDst, int dstStep,
- IppiSize roiSize, IppiBorderType borderType, IppiMorphAdvState* pState))
- IPPAPI(IppStatus, ippiMorphOpenBorder_32f_C1R,(
- const Ipp32f* pSrc, int srcStep, Ipp32f* pDst, int dstStep,
- IppiSize roiSize, IppiBorderType borderType, IppiMorphAdvState* pState))
- IPPAPI(IppStatus, ippiMorphOpenBorder_32f_C3R,(
- const Ipp32f* pSrc, int srcStep, Ipp32f* pDst, int dstStep,
- IppiSize roiSize, IppiBorderType borderType, IppiMorphAdvState* pState))
- IPPAPI(IppStatus, ippiMorphOpenBorder_32f_C4R,(
- const Ipp32f* pSrc, int srcStep, Ipp32f* pDst, int dstStep,
- IppiSize roiSize, IppiBorderType borderType, IppiMorphAdvState* pState))
- IPPAPI(IppStatus, ippiMorphCloseBorder_8u_C1R,(
- const Ipp8u* pSrc, int srcStep, Ipp8u* pDst, int dstStep,
- IppiSize roiSize, IppiBorderType borderType, IppiMorphAdvState* pState))
- IPPAPI(IppStatus, ippiMorphCloseBorder_8u_C3R,(
- const Ipp8u* pSrc, int srcStep, Ipp8u* pDst, int dstStep,
- IppiSize roiSize, IppiBorderType borderType, IppiMorphAdvState* pState))
- IPPAPI(IppStatus, ippiMorphCloseBorder_8u_C4R,(
- const Ipp8u* pSrc, int srcStep, Ipp8u* pDst, int dstStep,
- IppiSize roiSize, IppiBorderType borderType, IppiMorphAdvState* pState))
- IPPAPI(IppStatus, ippiMorphCloseBorder_32f_C1R,(
- const Ipp32f* pSrc, int srcStep, Ipp32f* pDst, int dstStep,
- IppiSize roiSize, IppiBorderType borderType, IppiMorphAdvState* pState))
- IPPAPI(IppStatus, ippiMorphCloseBorder_32f_C3R,(
- const Ipp32f* pSrc, int srcStep, Ipp32f* pDst, int dstStep,
- IppiSize roiSize, IppiBorderType borderType, IppiMorphAdvState* pState))
- IPPAPI(IppStatus, ippiMorphCloseBorder_32f_C4R,(
- const Ipp32f* pSrc, int srcStep, Ipp32f* pDst, int dstStep,
- IppiSize roiSize, IppiBorderType borderType, IppiMorphAdvState* pState))
- IPPAPI(IppStatus, ippiMorphTophatBorder_8u_C1R,(
- const Ipp8u* pSrc, int srcStep, Ipp8u* pDst, int dstStep,
- IppiSize roiSize, IppiBorderType borderType, IppiMorphAdvState* pState))
- IPPAPI(IppStatus, ippiMorphTophatBorder_8u_C3R,(
- const Ipp8u* pSrc, int srcStep, Ipp8u* pDst, int dstStep,
- IppiSize roiSize, IppiBorderType borderType, IppiMorphAdvState* pState))
- IPPAPI(IppStatus, ippiMorphTophatBorder_8u_C4R,(
- const Ipp8u* pSrc, int srcStep, Ipp8u* pDst, int dstStep,
- IppiSize roiSize, IppiBorderType borderType, IppiMorphAdvState* pState))
- IPPAPI(IppStatus, ippiMorphTophatBorder_32f_C1R,(
- const Ipp32f* pSrc, int srcStep, Ipp32f* pDst, int dstStep,
- IppiSize roiSize, IppiBorderType borderType, IppiMorphAdvState* pState))
- IPPAPI(IppStatus, ippiMorphTophatBorder_32f_C3R,(
- const Ipp32f* pSrc, int srcStep, Ipp32f* pDst, int dstStep,
- IppiSize roiSize, IppiBorderType borderType, IppiMorphAdvState* pState))
- IPPAPI(IppStatus, ippiMorphTophatBorder_32f_C4R,(
- const Ipp32f* pSrc, int srcStep, Ipp32f* pDst, int dstStep,
- IppiSize roiSize, IppiBorderType borderType, IppiMorphAdvState* pState))
- IPPAPI(IppStatus, ippiMorphBlackhatBorder_8u_C1R,(
- const Ipp8u* pSrc, int srcStep, Ipp8u* pDst, int dstStep,
- IppiSize roiSize, IppiBorderType borderType, IppiMorphAdvState* pState))
- IPPAPI(IppStatus, ippiMorphBlackhatBorder_8u_C3R,(
- const Ipp8u* pSrc, int srcStep, Ipp8u* pDst, int dstStep,
- IppiSize roiSize, IppiBorderType borderType, IppiMorphAdvState* pState))
- IPPAPI(IppStatus, ippiMorphBlackhatBorder_8u_C4R,(
- const Ipp8u* pSrc, int srcStep, Ipp8u* pDst, int dstStep,
- IppiSize roiSize, IppiBorderType borderType, IppiMorphAdvState* pState))
- IPPAPI(IppStatus, ippiMorphBlackhatBorder_32f_C1R,(
- const Ipp32f* pSrc, int srcStep, Ipp32f* pDst, int dstStep,
- IppiSize roiSize, IppiBorderType borderType, IppiMorphAdvState* pState))
- IPPAPI(IppStatus, ippiMorphBlackhatBorder_32f_C3R,(
- const Ipp32f* pSrc, int srcStep, Ipp32f* pDst, int dstStep,
- IppiSize roiSize, IppiBorderType borderType, IppiMorphAdvState* pState))
- IPPAPI(IppStatus, ippiMorphBlackhatBorder_32f_C4R,(
- const Ipp32f* pSrc, int srcStep, Ipp32f* pDst, int dstStep,
- IppiSize roiSize, IppiBorderType borderType, IppiMorphAdvState* pState))
- IPPAPI(IppStatus, ippiMorphGradientBorder_8u_C1R,(
- const Ipp8u* pSrc, int srcStep, Ipp8u* pDst, int dstStep,
- IppiSize roiSize, IppiBorderType borderType, IppiMorphAdvState* pState))
- IPPAPI(IppStatus, ippiMorphGradientBorder_8u_C3R,(
- const Ipp8u* pSrc, int srcStep, Ipp8u* pDst, int dstStep,
- IppiSize roiSize, IppiBorderType borderType, IppiMorphAdvState* pState))
- IPPAPI(IppStatus, ippiMorphGradientBorder_8u_C4R,(
- const Ipp8u* pSrc, int srcStep, Ipp8u* pDst, int dstStep,
- IppiSize roiSize, IppiBorderType borderType, IppiMorphAdvState* pState))
- IPPAPI(IppStatus, ippiMorphGradientBorder_32f_C1R,(
- const Ipp32f* pSrc, int srcStep, Ipp32f* pDst, int dstStep,
- IppiSize roiSize, IppiBorderType borderType, IppiMorphAdvState* pState))
- IPPAPI(IppStatus, ippiMorphGradientBorder_32f_C3R,(
- const Ipp32f* pSrc, int srcStep, Ipp32f* pDst, int dstStep,
- IppiSize roiSize, IppiBorderType borderType, IppiMorphAdvState* pState))
- IPPAPI(IppStatus, ippiMorphGradientBorder_32f_C4R,(
- const Ipp32f* pSrc, int srcStep, Ipp32f* pDst, int dstStep,
- IppiSize roiSize, IppiBorderType borderType, IppiMorphAdvState* pState))
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiMorphGrayGetSize_8u_C1R, ippiMorphGrayGetSize_32f_C1R
- //
- // Purpose: Gets size of internal state of gray-kernel morphological operation.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width of image or width or height of structuring
- // element is less or equal zero.
- //
- // Arguments:
- // roiSize Maximal image ROI in pixels
- // pMask Pointer to structuring element
- // maskSize Size of structuring element
- // pSize Pointer to state length
- */
- IPPAPI(IppStatus, ippiMorphGrayGetSize_8u_C1R,(IppiSize roiSize, const Ipp32s* pMask, IppiSize maskSize, int* pSize))
- IPPAPI(IppStatus, ippiMorphGrayGetSize_32f_C1R,(IppiSize roiSize, const Ipp32f* pMask, IppiSize maskSize, int* pSize))
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiMorphGrayInit_8u_C1R, ippiMorphGrayInit_32f_C1R
- //
- // Purpose: Initialize internal state of gray-scale morphological operation.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width of image or width or height of structuring
- // element is less or equal zero.
- // ippStsAnchorErr Anchor point is outside the structuring element
- //
- // Arguments:
- // roiSize Maximal image roiSize in pixels
- // pMask Pointer to structuring element (mask)
- // maskSize Size of structuring element
- // anchor Anchor of the structuring element
- // pState Pointer to morphological state (Init)
- */
- IPPAPI(IppStatus, ippiMorphGrayInit_8u_C1R,(IppiMorphGrayState_8u* pState, IppiSize roiSize, const Ipp32s* pMask,
- IppiSize maskSize, IppiPoint anchor))
- IPPAPI(IppStatus, ippiMorphGrayInit_32f_C1R,(IppiMorphGrayState_32f* pState, IppiSize roiSize, const Ipp32f* pMask,
- IppiSize maskSize, IppiPoint anchor))
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiMorphGrayInitAlloc_8u_C1R, ippiMorphGrayInitAlloc_32f_C1R
- //
- // Purpose: Allocate buffers and initialize internal state of gray-scale morphological operation.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width of image or width or height of structuring
- // element is less or equal zero.
- // ippStsAnchorErr Anchor point is outside the structuring element
- // ippStsMemAllocErr Memory allocation error
- //
- // Arguments:
- // roiSize Maximal image roiSize in pixels
- // pMask Pointer to structuring element (mask)
- // maskSize Size of structuring element
- // anchor Anchor of the structuring element
- // ppState Double pointer to morphological state (InitAlloc)
- */
- IPPAPI(IppStatus, ippiMorphGrayInitAlloc_8u_C1R,(IppiMorphGrayState_8u** ppState, IppiSize roiSize, const Ipp32s* pMask,
- IppiSize maskSize, IppiPoint anchor))
- IPPAPI(IppStatus, ippiMorphGrayInitAlloc_32f_C1R,(IppiMorphGrayState_32f** ppState, IppiSize roiSize, const Ipp32f* pMask,
- IppiSize maskSize, IppiPoint anchor))
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiMorphGrayFree_8u_C1R, ippiMorphGrayFree_32f_C1R
- //
- // Purpose: Releases buffers, allocated by rippiMorphGrayInitAlloc
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr Null pointer to pointer to morphological state.
- //
- // Arguments:
- // pState Double pointer to morphological state.
- */
- IPPAPI(IppStatus, ippiMorphGrayFree_8u_C1R,(IppiMorphGrayState_8u* pState))
- IPPAPI(IppStatus, ippiMorphGrayFree_32f_C1R,(IppiMorphGrayState_32f* pState))
- /*F///////////////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiGrayDilateBorder_8u_C1R, ippiGrayDilateBorder_32f_C1R,
- // ippiGrayErodeBorder_8u_C1R, ippiGrayErodeBorder_32f_C1R
- //
- // Purpose: Perform erosion/dilation of image with gray-scale structuring element.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The ROI width or height is less than 1
- // or ROI width is bigger than ROI width in state
- // ippStsStepErr Step is too small to fit image.
- // ippStsNotEvenStepErr Step is not multiple of element.
- // ippStsBadArgErr Bad border type
- //
- // Arguments:
- // pSrc The pointer to source image
- // srcStep The step in source image
- // pDst The pointer to destination image
- // dstStep The step in destination image
- // roiSize ROI size
- // border Type of border (ippBorderRepl now)
- // pState Pointer to morphological operation state
- */
- IPPAPI(IppStatus, ippiGrayErodeBorder_8u_C1R,(const Ipp8u* pSrc, int srcStep,
- Ipp8u* pDst, int dstStep, IppiSize roiSize,
- IppiBorderType border, IppiMorphGrayState_8u* pState))
- IPPAPI(IppStatus, ippiGrayErodeBorder_32f_C1R,(const Ipp32f* pSrc, int srcStep,
- Ipp32f* pDst, int dstStep, IppiSize roiSize,
- IppiBorderType border, IppiMorphGrayState_32f* pState))
- IPPAPI(IppStatus, ippiGrayDilateBorder_8u_C1R,(const Ipp8u* pSrc, int srcStep,
- Ipp8u* pDst, int dstStep, IppiSize roiSize,
- IppiBorderType border, IppiMorphGrayState_8u* pState))
- IPPAPI(IppStatus, ippiGrayDilateBorder_32f_C1R,(const Ipp32f* pSrc, int srcStep,
- Ipp32f* pDst, int dstStep, IppiSize roiSize,
- IppiBorderType border, IppiMorphGrayState_32f* pState))
- /*F/////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiMorphReconstructGetBufferSize_8u_C1, ippiMorphReconstructGetBufferSize_8u_C1
- //
- // Purpose: returns buffer size for morphological reconstruction
- //
- // Returns:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width or height of images is less or equal zero
- // ippStsStepErr The steps in images are too small
- // ippStsNotEvenStepErr Step is not multiple of element.
- //
- // Parameters:
- // roiSize The maximal ROI size.
- // pBufSize The pointer to the buffer size.
- //
- // Notes:
- //F*/
- IPPAPI(IppStatus, ippiMorphReconstructGetBufferSize_8u_C1,(IppiSize roiSize, int *pSize))
- IPPAPI(IppStatus, ippiMorphReconstructGetBufferSize_32f_C1,(IppiSize roiSize, int *pSize))
- /*F/////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiMorphReconstructDilate_8u_C1IR, ippiMorphReconstructErode_8u_C1IR,
- // ippiMorphReconstructDilate_32f_C1IR, ippiMorphReconstructErode_32f_C1IR
- //
- // Purpose: performs morphological reconstruction of pSrcDst under/above pSrc
- //
- // Returns:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width or height of images is less or equal zero
- // ippStsStepErr The steps in images are too small
- // ippStsNotEvenStepErr Step is not multiple of element.
- //
- // Parameters:
- // pSrc The pointer to source above/under image
- // srcStep The step in source image
- // pSrcDst The pointer to image to reconstruct
- // srcDstStep The step in destination image
- // roiSize The source and destination image ROI size.
- // norm The norm type for dilation
- // ippiNormInf = Linf norm (8-connectivity)
- // ippiNormL1 = L1 norm (4-connectivity)
- // pBuffer The pointer to working buffer
- //
- // Notes:
- //F*/
- IPPAPI(IppStatus, ippiMorphReconstructDilate_8u_C1IR, (const Ipp8u* pSrc, int srcStep,
- Ipp8u* pSrcDst, int srcDstStep, IppiSize roiSize, Ipp8u *pBuf, IppiNorm norm))
- IPPAPI(IppStatus, ippiMorphReconstructErode_8u_C1IR, (const Ipp8u* pSrc, int srcStep,
- Ipp8u* pSrcDst, int srcDstStep, IppiSize roiSize, Ipp8u *pBuf, IppiNorm norm))
- IPPAPI(IppStatus, ippiMorphReconstructDilate_32f_C1IR, (const Ipp32f* pSrc, int srcStep,
- Ipp32f* pSrcDst, int srcDstStep, IppiSize roiSize, Ipp32f *pBuf, IppiNorm norm))
- IPPAPI(IppStatus, ippiMorphReconstructErode_32f_C1IR, (const Ipp32f* pSrc, int srcStep,
- Ipp32f* pSrcDst, int srcDstStep, IppiSize roiSize, Ipp32f *pBuf, IppiNorm norm))
- /****************************************************************************************\
- * Min/Max Filters *
- \****************************************************************************************/
- /* ///////////////////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiFilterMinGetBufferSize_8u_C1R, ippiFilterMaxGetBufferSize_8u_C1R,
- // ippiFilterMinGetBufferSize_32f_C1R, ippiFilterMaxGetBufferSize_32f_C1R,
- // ippiFilterMinGetBufferSize_8u_C3R, ippiFilterMaxGetBufferSize_8u_C3R,
- // ippiFilterMinGetBufferSize_32f_C3R, ippiFilterMaxGetBufferSize_32f_C3R,
- // ippiFilterMinGetBufferSize_8u_C4R, ippiFilterMaxGetBufferSize_8u_C4R,
- // ippiFilterMinGetBufferSize_32f_C4R, ippiFilterMaxGetBufferSize_32f_C4R
- //
- // Purpose: Calculate buffer size for morphology operations with rectangular kernel
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width of the image is less or equal zero
- // ippStsMaskSizeErr Wrong mask size
- //
- // Parameters:
- // roiWidth The image ROI width
- // maskSize The mask size
- // pBufferSize The pointer to the buffer size
- */
- IPPAPI(IppStatus, ippiFilterMinGetBufferSize_8u_C1R, (int roiWidth, IppiSize maskSize, int *pBufferSize))
- IPPAPI(IppStatus, ippiFilterMaxGetBufferSize_8u_C1R, (int roiWidth, IppiSize maskSize, int *pBufferSize))
- IPPAPI(IppStatus, ippiFilterMinGetBufferSize_32f_C1R, (int roiWidth, IppiSize maskSize, int *pBufferSize))
- IPPAPI(IppStatus, ippiFilterMaxGetBufferSize_32f_C1R, (int roiWidth, IppiSize maskSize, int *pBufferSize))
- IPPAPI(IppStatus, ippiFilterMinGetBufferSize_8u_C3R, (int roiWidth, IppiSize maskSize, int *pBufferSize))
- IPPAPI(IppStatus, ippiFilterMaxGetBufferSize_8u_C3R, (int roiWidth, IppiSize maskSize, int *pBufferSize))
- IPPAPI(IppStatus, ippiFilterMinGetBufferSize_32f_C3R, (int roiWidth, IppiSize maskSize, int *pBufferSize))
- IPPAPI(IppStatus, ippiFilterMaxGetBufferSize_32f_C3R, (int roiWidth, IppiSize maskSize, int *pBufferSize))
- IPPAPI(IppStatus, ippiFilterMinGetBufferSize_8u_C4R, (int roiWidth, IppiSize maskSize, int *pBufferSize))
- IPPAPI(IppStatus, ippiFilterMaxGetBufferSize_8u_C4R, (int roiWidth, IppiSize maskSize, int *pBufferSize))
- IPPAPI(IppStatus, ippiFilterMinGetBufferSize_32f_C4R, (int roiWidth, IppiSize maskSize, int *pBufferSize))
- IPPAPI(IppStatus, ippiFilterMaxGetBufferSize_32f_C4R, (int roiWidth, IppiSize maskSize, int *pBufferSize))
- /*F///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiFilterMaxBorderReplicate_8u_C1R, ippiFilterMinBorderReplicate_8u_C1R,
- // ippiFilterMaxBorderReplicate_32f_C1R, ippiFilterMinBorderReplicate_32f_C1R
- // ippiFilterMaxBorderReplicate_8u_C3R, ippiFilterMinBorderReplicate_8u_C3R,
- // ippiFilterMaxBorderReplicate_32f_C3R, ippiFilterMinBorderReplicate_32f_C3R
- // ippiFilterMaxBorderReplicate_8u_C4R, ippiFilterMinBorderReplicate_8u_C4R,
- // ippiFilterMaxBorderReplicate_32f_C4R, ippiFilterMinBorderReplicate_32f_C4R
- //
- // Purpose: Perform morphology operations with rectangular kernel
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width or height of images is less or equal zero
- // ippStsStepErr The steps in images are too small
- // ippStsNotEvenStepErr Step is not multiple of element.
- // ippStsMaskSizeErr Wrong mask size
- // ippStsAnchorErr Anchor is outside the mask size.
- //
- // Parameters:
- // pSrc The pointer to the source image
- // srcStep The step in the source image
- // pDst The pointer to the destination image
- // dstStep The step in the destination image
- // roiSize The image ROI size
- // maskSize The mask size
- // anchor The anchor position
- // pBuffer The pointer to the working buffer
- //F*/
- IPPAPI(IppStatus, ippiFilterMinBorderReplicate_8u_C1R, (const Ipp8u* pSrc, int srcStep, Ipp8u* pDst, int dstStep,
- IppiSize roiSize, IppiSize maskSize, IppiPoint anchor, Ipp8u *pBuffer))
- IPPAPI(IppStatus, ippiFilterMaxBorderReplicate_8u_C1R, (const Ipp8u* pSrc, int srcStep, Ipp8u* pDst, int dstStep,
- IppiSize roiSize, IppiSize maskSize, IppiPoint anchor, Ipp8u *pBuffer))
- IPPAPI(IppStatus, ippiFilterMinBorderReplicate_32f_C1R, (const Ipp32f* pSrc, int srcStep, Ipp32f* pDst, int dstStep,
- IppiSize roiSize, IppiSize maskSize, IppiPoint anchor, Ipp8u *pBuffer))
- IPPAPI(IppStatus, ippiFilterMaxBorderReplicate_32f_C1R, (const Ipp32f* pSrc, int srcStep, Ipp32f* pDst, int dstStep,
- IppiSize roiSize, IppiSize maskSize, IppiPoint anchor, Ipp8u *pBuffer))
- IPPAPI(IppStatus, ippiFilterMinBorderReplicate_8u_C3R, (const Ipp8u* pSrc, int srcStep, Ipp8u* pDst, int dstStep,
- IppiSize roiSize, IppiSize maskSize, IppiPoint anchor, Ipp8u *pBuffer))
- IPPAPI(IppStatus, ippiFilterMaxBorderReplicate_8u_C3R, (const Ipp8u* pSrc, int srcStep, Ipp8u* pDst, int dstStep,
- IppiSize roiSize, IppiSize maskSize, IppiPoint anchor, Ipp8u *pBuffer))
- IPPAPI(IppStatus, ippiFilterMinBorderReplicate_32f_C3R, (const Ipp32f* pSrc, int srcStep, Ipp32f* pDst, int dstStep,
- IppiSize roiSize, IppiSize maskSize, IppiPoint anchor, Ipp8u *pBuffer))
- IPPAPI(IppStatus, ippiFilterMaxBorderReplicate_32f_C3R, (const Ipp32f* pSrc, int srcStep, Ipp32f* pDst, int dstStep,
- IppiSize roiSize, IppiSize maskSize, IppiPoint anchor, Ipp8u *pBuffer))
- IPPAPI(IppStatus, ippiFilterMinBorderReplicate_8u_C4R, (const Ipp8u* pSrc, int srcStep, Ipp8u* pDst, int dstStep,
- IppiSize roiSize, IppiSize maskSize, IppiPoint anchor, Ipp8u *pBuffer))
- IPPAPI(IppStatus, ippiFilterMaxBorderReplicate_8u_C4R, (const Ipp8u* pSrc, int srcStep, Ipp8u* pDst, int dstStep,
- IppiSize roiSize, IppiSize maskSize, IppiPoint anchor, Ipp8u *pBuffer))
- IPPAPI(IppStatus, ippiFilterMinBorderReplicate_32f_C4R, (const Ipp32f* pSrc, int srcStep, Ipp32f* pDst, int dstStep,
- IppiSize roiSize, IppiSize maskSize, IppiPoint anchor, Ipp8u *pBuffer))
- IPPAPI(IppStatus, ippiFilterMaxBorderReplicate_32f_C4R, (const Ipp32f* pSrc, int srcStep, Ipp32f* pDst, int dstStep,
- IppiSize roiSize, IppiSize maskSize, IppiPoint anchor, Ipp8u *pBuffer))
- /****************************************************************************************\
- * Separable Filters *
- \****************************************************************************************/
- /* ///////////////////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiFilterRowBorderPipelineGetBufferSize_8u16s_C1R, ippiFilterRowBorderPipelineGetBufferSize_8u16s_C3R
- // ippiFilterRowBorderPipelineGetBufferSize_16s_C1R, ippiFilterRowBorderPipelineGetBufferSize_16s_C3R
- // ippiFilterRowBorderPipelineGetBufferSize_Low_16s_C1R, ippiFilterRowBorderPipelineGetBufferSize_Low_16s_C3R
- // ippiFilterRowBorderPipelineGetBufferSize_32f_C1R, ippiFilterRowBorderPipelineGetBufferSize_32f_C3R
- //
- // Purpose: Get size of external buffer.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width of the image or kernel size are less or equal zero
- //
- // Parameters:
- // roiSize The image ROI size
- // kernelSize The size of the kernel
- // pBufferSize The pointer to the buffer size
- */
- IPPAPI(IppStatus, ippiFilterRowBorderPipelineGetBufferSize_8u16s_C1R, (IppiSize roiSize, int kernelSize, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterRowBorderPipelineGetBufferSize_8u16s_C3R, (IppiSize roiSize, int kernelSize, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterRowBorderPipelineGetBufferSize_16s_C1R, (IppiSize roiSize, int kernelSize, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterRowBorderPipelineGetBufferSize_16s_C3R, (IppiSize roiSize, int kernelSize, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterRowBorderPipelineGetBufferSize_Low_16s_C1R, (IppiSize roiSize, int kernelSize, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterRowBorderPipelineGetBufferSize_Low_16s_C3R, (IppiSize roiSize, int kernelSize, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterRowBorderPipelineGetBufferSize_32f_C1R, (IppiSize roiSize, int kernelSize, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterRowBorderPipelineGetBufferSize_32f_C3R, (IppiSize roiSize, int kernelSize, int* pBufferSize))
- /*F///////////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiFilterRowBorderPipeline_8u16s_C1R, ippiFilterRowBorderPipeline_8u16s_C3R
- // ippiFilterRowBorderPipeline_16s_C1R, ippiFilterRowBorderPipeline_16s_C3R
- // ippiFilterRowBorderPipeline_Low_16s_C1R, ippiFilterRowBorderPipeline_Low_16s_C3R
- // ippiFilterRowBorderPipeline_32f_C1R, ippiFilterRowBorderPipeline_32f_C3R
- //
- // Purpose: Convolves source image rows with the row kernel
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width or height of images is less or equal zero
- // ippStsStepErr The steps in images are too small
- // ippStsNotEvenStepErr Step is not multiple of element.
- // ippStsAnchorErr The anchor outside the kernel
- // ippStsBadArgErr Wrong border type or zero divisor
- //
- // Parameters:
- // pSrc The pointer to the source image
- // srcStep The step in the source image
- // ppDst The double pointer to the destination image
- // roiSize The image ROI size
- // pKernel The pointer to the kernel
- // kernelSize The size of the kernel
- // xAnchor The anchor value , (0<=xAnchor<kernelSize)
- // borderType The type of the border
- // borderValue The value for the constant border
- // divisor The value to divide output pixels by , (for integer functions)
- // pBuffer The pointer to the working buffer
- // Notes: The output is the doulble pointer to support the circle buffer
- //F*/
- IPPAPI(IppStatus, ippiFilterRowBorderPipeline_8u16s_C1R, (const Ipp8u* pSrc, int srcStep, Ipp16s** ppDst,
- IppiSize roiSize, const Ipp16s* pKernel, int kernelSize, int xAnchor,
- IppiBorderType borderType, Ipp8u borderValue, int divisor, Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterRowBorderPipeline_8u16s_C3R, (const Ipp8u* pSrc, int srcStep, Ipp16s** ppDst,
- IppiSize roiSize, const Ipp16s* pKernel, int kernelSize, int xAnchor,
- IppiBorderType borderType, Ipp8u borderValue[3], int divisor, Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterRowBorderPipeline_16s_C1R, (const Ipp16s* pSrc, int srcStep, Ipp16s** ppDst,
- IppiSize roiSize, const Ipp16s* pKernel, int kernelSize, int xAnchor,
- IppiBorderType borderType, Ipp16s borderValue, int divisor, Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterRowBorderPipeline_16s_C3R, (const Ipp16s* pSrc, int srcStep, Ipp16s** ppDst,
- IppiSize roiSize, const Ipp16s* pKernel, int kernelSize, int xAnchor,
- IppiBorderType borderType, Ipp16s borderValue[3], int divisor, Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterRowBorderPipeline_Low_16s_C1R, (const Ipp16s* pSrc, int srcStep, Ipp16s** ppDst,
- IppiSize roiSize, const Ipp16s* pKernel, int kernelSize, int xAnchor,
- IppiBorderType borderType, Ipp16s borderValue, int divisor, Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterRowBorderPipeline_Low_16s_C3R, (const Ipp16s* pSrc, int srcStep, Ipp16s** ppDst,
- IppiSize roiSize, const Ipp16s* pKernel, int kernelSize, int xAnchor,
- IppiBorderType borderType, Ipp16s borderValue[3], int divisor, Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterRowBorderPipeline_32f_C1R, (const Ipp32f* pSrc, int srcStep, Ipp32f** ppDst,
- IppiSize roiSize, const Ipp32f* pKernel, int kernelSize, int xAnchor,
- IppiBorderType borderType, Ipp32f borderValue, Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterRowBorderPipeline_32f_C3R, (const Ipp32f* pSrc, int srcStep, Ipp32f** ppDst,
- IppiSize roiSize, const Ipp32f* pKernel, int kernelSize, int xAnchor,
- IppiBorderType borderType, Ipp32f borderValue[3], Ipp8u* pBuffer))
- /* ///////////////////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiFilterColumnPipelineGetBufferSize_16s_C1R, ippiFilterColumnPipelineGetBufferSize_16s_C3R
- // ippiFilterColumnPipelineGetBufferSize_Low_16s_C1R, ippiFilterColumnPipelineGetBufferSize_Low_16s_C3R
- // ippiFilterColumnPipelineGetBufferSize_16s8u_C1R, ippiFilterColumnPipelineGetBufferSize_16s8u_C3R
- // ippiFilterColumnPipelineGetBufferSize_16s8s_C1R, ippiFilterColumnPipelineGetBufferSize_16s8s_C3R
- // ippiFilterColumnPipelineGetBufferSize_32f_C1R, ippiFilterColumnPipelineGetBufferSize_32f_C3R
- //
- // Purpose: Get size of external buffer.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width of the image or kernel size are less or equal zero
- //
- // Parameters:
- // roiSize The image ROI size
- // kernelSize The size of the kernel
- // pBufferSize The pointer to the buffer size
- */
- IPPAPI(IppStatus, ippiFilterColumnPipelineGetBufferSize_16s_C1R, (IppiSize roiSize, int kernelSize, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterColumnPipelineGetBufferSize_16s_C3R, (IppiSize roiSize, int kernelSize, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterColumnPipelineGetBufferSize_Low_16s_C1R, (IppiSize roiSize, int kernelSize, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterColumnPipelineGetBufferSize_Low_16s_C3R, (IppiSize roiSize, int kernelSize, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterColumnPipelineGetBufferSize_16s8u_C1R, (IppiSize roiSize, int kernelSize, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterColumnPipelineGetBufferSize_16s8u_C3R, (IppiSize roiSize, int kernelSize, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterColumnPipelineGetBufferSize_16s8s_C1R, (IppiSize roiSize, int kernelSize, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterColumnPipelineGetBufferSize_16s8s_C3R, (IppiSize roiSize, int kernelSize, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterColumnPipelineGetBufferSize_32f_C1R, (IppiSize roiSize, int kernelSize, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterColumnPipelineGetBufferSize_32f_C3R, (IppiSize roiSize, int kernelSize, int* pBufferSize))
- /*F///////////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiFilterColumnPipeline_16s_C1R, ippiFilterColumnPipeline_16s_C3R
- // ippiFilterColumnPipeline_Low_16s_C1R, ippiFilterColumnPipeline_Low_16s_C3R
- // ippiFilterColumnPipeline_16s8u_C1R, ippiFilterColumnPipeline_16s8u_C3R
- // ippiFilterColumnPipeline_16s8s_C1R, ippiFilterColumnPipeline_16s8s_C3R
- // ippiFilterColumnPipeline_32f_C1R, ippiFilterColumnPipeline_32f_C3R
- // Purpose: Convolves source image rows with the row kernel
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width or height of images is less or equal zero
- // ippStsStepErr The steps in images are too small
- // ippStsNotEvenStepErr Step is not multiple of element.
- // ippStsBadArgErr Zero divisor
- //
- // Parameters:
- // ppSrc The double pointer to the source image
- // pDst The pointer to the destination image
- // dstStep The step in the destination image
- // roiSize The image ROI size
- // pKernel The pointer to the kernel
- // kernelSize The size of the kernel
- // divisor The value to divide output pixels by , (for integer functions)
- // pBuffer The pointer to the working buffer
- // Notes: The input is the doulble pointer to support the circle buffer
- //F*/
- IPPAPI(IppStatus, ippiFilterColumnPipeline_16s_C1R, (const Ipp16s** ppSrc, Ipp16s* pDst, int dstStep, IppiSize roiSize,
- const Ipp16s* pKernel, int kernelSize, int divisor, Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterColumnPipeline_16s_C3R, (const Ipp16s** ppSrc, Ipp16s* pDst, int dstStep, IppiSize roiSize,
- const Ipp16s* pKernel, int kernelSize, int divisor, Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterColumnPipeline_Low_16s_C1R, (const Ipp16s** ppSrc, Ipp16s* pDst, int dstStep, IppiSize roiSize,
- const Ipp16s* pKernel, int kernelSize, int divisor, Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterColumnPipeline_Low_16s_C3R, (const Ipp16s** ppSrc, Ipp16s* pDst, int dstStep, IppiSize roiSize,
- const Ipp16s* pKernel, int kernelSize, int divisor, Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterColumnPipeline_16s8u_C1R, (const Ipp16s** ppSrc, Ipp8u* pDst, int dstStep, IppiSize roiSize,
- const Ipp16s* pKernel, int kernelSize, int divisor, Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterColumnPipeline_16s8u_C3R, (const Ipp16s** ppSrc, Ipp8u* pDst, int dstStep, IppiSize roiSize,
- const Ipp16s* pKernel, int kernelSize, int divisor, Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterColumnPipeline_16s8s_C1R, (const Ipp16s** ppSrc, Ipp8s* pDst, int dstStep, IppiSize roiSize,
- const Ipp16s* pKernel, int kernelSize, int divisor, Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterColumnPipeline_16s8s_C3R, (const Ipp16s** ppSrc, Ipp8s* pDst, int dstStep, IppiSize roiSize,
- const Ipp16s* pKernel, int kernelSize, int divisor, Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterColumnPipeline_32f_C1R, (const Ipp32f** ppSrc, Ipp32f* pDst, int dstStep, IppiSize roiSize,
- const Ipp32f* pKernel, int kernelSize, Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterColumnPipeline_32f_C3R, (const Ipp32f** ppSrc, Ipp32f* pDst, int dstStep, IppiSize roiSize,
- const Ipp32f* pKernel, int kernelSize, Ipp8u* pBuffer))
- /****************************************************************************************\
- * Fixed Filters *
- \****************************************************************************************/
- /* ///////////////////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiFilterScharrHorizGetBufferSize_8u16s_C1R, ippiFilterScharrHorizGetBufferSize_32f_C1R,
- // ippiFilterScharrVertGetBufferSize_8u16s_C1R, ippiFilterScharrVertGetBufferSize_32f_C1R,
- // ippiFilterSobelHorizGetBufferSize_8u16s_C1R, ippiFilterSobelHorizGetBufferSize_32f_C1R,
- // ippiFilterSobelVertGetBufferSize_8u16s_C1R, ippiFilterSobelVertGetBufferSize_32f_C1R,
- // ippiFilterSobelNegVertGetBufferSize_8u16s_C1R, ippiFilterSobelNegVertGetBufferSize_32f_C1R,
- // ippiFilterSobelHorizSecondGetBufferSize_8u16s_C1R, ippiFilterSobelHorizSecondGetBufferSize_32f_C1R,
- // ippiFilterSobelVertSecondGetBufferSize_8u16s_C1R, ippiFilterSobelVertSecondGetBufferSize_32f_C1R,
- // ippiFilterSobelCrossGetBufferSize_8u16s_C1R, ippiFilterSobelCrossGetBufferSize_32f_C1R,
- // ippiFilterLaplacianGetBufferSize_8u16s_C1R, ippiFilterLaplacianGetBufferSize_32f_C1R,
- // ippiFilterLowpassGetBufferSize_8u_C1R, ippiFilterLowpassGetBufferSize_32f_C1R,
- // ippiFilterScharrHorizGetBufferSize_8u8s_C1R,
- // ippiFilterScharrVertGetBufferSize_8u8s_C1R,
- // ippiFilterSobelHorizGetBufferSize_8u8s_C1R,
- // ippiFilterSobelVertGetBufferSize_8u8s_C1R,
- // ippiFilterSobelNegVertGetBufferSize_8u8s_C1R,
- // ippiFilterSobelHorizSecondGetBufferSize_8u8s_C1R,
- // ippiFilterSobelVertSecondGetBufferSize_8u8s_C1R,
- // ippiFilterSobelCrossGetBufferSize_8u8s_C1R,
- // ippiFilterLaplacianGetBufferSize_8u8s_C1R,
- //
- //
- // Purpose: Perform convolution operation with fixed kernels 3x3 and 5x5
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width of the image is less or equal zero
- // ippStsMaskSizeErr Wrong mask size
- //
- // Parameters:
- // roiSize The image ROI size
- // mask The mask size
- // pBufferSize The pointer to the buffer size
- */
- IPPAPI(IppStatus, ippiFilterScharrHorizGetBufferSize_8u16s_C1R, (IppiSize roiSize, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterScharrVertGetBufferSize_8u16s_C1R, (IppiSize roiSize, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterSobelHorizGetBufferSize_8u16s_C1R, (IppiSize roiSize, IppiMaskSize mask, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterSobelVertGetBufferSize_8u16s_C1R, (IppiSize roiSize, IppiMaskSize mask, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterSobelNegVertGetBufferSize_8u16s_C1R, (IppiSize roiSize, IppiMaskSize mask, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterSobelHorizSecondGetBufferSize_8u16s_C1R,(IppiSize roiSize, IppiMaskSize mask, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterSobelVertSecondGetBufferSize_8u16s_C1R, (IppiSize roiSize, IppiMaskSize mask, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterSobelCrossGetBufferSize_8u16s_C1R, (IppiSize roiSize, IppiMaskSize mask, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterLaplacianGetBufferSize_8u16s_C1R, (IppiSize roiSize, IppiMaskSize mask, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterScharrHorizGetBufferSize_8u8s_C1R, (IppiSize roiSize, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterScharrVertGetBufferSize_8u8s_C1R, (IppiSize roiSize, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterSobelHorizGetBufferSize_8u8s_C1R, (IppiSize roiSize, IppiMaskSize mask, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterSobelVertGetBufferSize_8u8s_C1R, (IppiSize roiSize, IppiMaskSize mask, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterSobelNegVertGetBufferSize_8u8s_C1R, (IppiSize roiSize, IppiMaskSize mask, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterSobelHorizSecondGetBufferSize_8u8s_C1R,(IppiSize roiSize, IppiMaskSize mask, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterSobelVertSecondGetBufferSize_8u8s_C1R, (IppiSize roiSize, IppiMaskSize mask, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterSobelCrossGetBufferSize_8u8s_C1R, (IppiSize roiSize, IppiMaskSize mask, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterLaplacianGetBufferSize_8u8s_C1R, (IppiSize roiSize, IppiMaskSize mask, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterLowpassGetBufferSize_8u_C1R, (IppiSize roiSize, IppiMaskSize mask, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterScharrHorizGetBufferSize_32f_C1R, (IppiSize roiSize, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterScharrVertGetBufferSize_32f_C1R, (IppiSize roiSize, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterSobelHorizGetBufferSize_32f_C1R, (IppiSize roiSize, IppiMaskSize mask, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterSobelVertGetBufferSize_32f_C1R, (IppiSize roiSize, IppiMaskSize mask, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterSobelNegVertGetBufferSize_32f_C1R, (IppiSize roiSize, IppiMaskSize mask, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterSobelHorizSecondGetBufferSize_32f_C1R,(IppiSize roiSize, IppiMaskSize mask, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterSobelVertSecondGetBufferSize_32f_C1R, (IppiSize roiSize, IppiMaskSize mask, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterSobelCrossGetBufferSize_32f_C1R, (IppiSize roiSize, IppiMaskSize mask, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterLaplacianGetBufferSize_32f_C1R, (IppiSize roiSize, IppiMaskSize mask, int* pBufferSize))
- IPPAPI(IppStatus, ippiFilterLowpassGetBufferSize_32f_C1R, (IppiSize roiSize, IppiMaskSize mask, int* pBufferSize))
- /*F///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiFilterScharrHorizBorder_8u16s_C1R, ippiFilterScharrHorizBorder_32f_C1R
- // ippiFilterScharrVertBorder_8u16s_C1R, ippiFilterScharrVertBorder_32f_C1R
- // ippiFilterSobelHorizBorder_8u16s_C1R, ippiFilterSobelHorizBorder_32f_C1R
- // ippiFilterSobelVertBorder_8u16s_C1R, ippiFilterSobelVertBorder_32f_C1R
- // ippiFilterSobelNegVertBorder_8u16s_C1R, ippiFilterSobelNegVertBorder_32f_C1R
- // ippiFilterSobelHorizSecondBorder_8u16s_C1R, ippiFilterSobelHorizSecondBorder_32f_C1R
- // ippiFilterSobelVertSecondBorder_8u16s_C1R, ippiFilterSobelVertSecondBorder_32f_C1R
- // ippiFilterSobelCrossBorder_8u16s_C1R, ippiFilterSobelCrossBorder_32f_C1R
- // ippiFilterLaplacianBorder_8u16s_C1R, ippiFilterLaplacianBorder_32f_C1R
- // ippiFilterLowpassBorder_8u_C1R, ippiFilterLowpassBorder_32f_C1R,
- // ippiFilterScharrHorizBorder_8u8s_C1R,
- // ippiFilterScharrVertBorder_8u8s_C1R,
- // ippiFilterSobelHorizBorder_8u8s_C1R,
- // ippiFilterSobelVertBorder_8u8s_C1R,
- // ippiFilterSobelNegVertBorder_8u8s_C1R,
- // ippiFilterSobelHorizSecondBorder_8u8s_C1R,
- // ippiFilterSobelVertSecondBorder_8u8s_C1R,
- // ippiFilterSobelCrossBorder_8u8s_C1R,
- // ippiFilterLaplacianBorder_8u8s_C1R
- //
- // Purpose: Perform convolution operation with fixed kernels 3x3 and 5x5
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width or height of images is less or equal zero
- // ippStsStepErr The steps in images are too small
- // ippStsNotEvenStepErr Step is not multiple of element.
- // ippStsMaskSizeErr Wrong mask size
- // ippStsBadArgErr Wrong border type or zero divisor
- //
- // Parameters:
- // pSrc The pointer to the source image
- // srcStep The step in the source image
- // pDst The pointer to the destination image
- // dstStep The step in the destination image
- // roiSize The image ROI size
- // mask The mask size
- // borderType The type of the border
- // borderValue The value for the constant border
- // pBuffer The pointer to the working buffer
- // divisor The value to divide output pixels by , (for integer functions)
- //F*/
- IPPAPI(IppStatus, ippiFilterScharrHorizBorder_8u16s_C1R, (const Ipp8u* pSrc, int srcStep,
- Ipp16s* pDst, int dstStep, IppiSize roiSize,
- IppiBorderType borderType, Ipp8u borderValue, Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterScharrVertBorder_8u16s_C1R, (const Ipp8u* pSrc, int srcStep,
- Ipp16s* pDst, int dstStep, IppiSize roiSize,
- IppiBorderType borderType, Ipp8u borderValue, Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterSobelHorizBorder_8u16s_C1R, (const Ipp8u* pSrc, int srcStep,
- Ipp16s* pDst, int dstStep, IppiSize roiSize, IppiMaskSize mask,
- IppiBorderType borderType, Ipp8u borderValue, Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterSobelVertBorder_8u16s_C1R, (const Ipp8u* pSrc, int srcStep,
- Ipp16s* pDst, int dstStep, IppiSize roiSize, IppiMaskSize mask,
- IppiBorderType borderType, Ipp8u borderValue, Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterSobelNegVertBorder_8u16s_C1R, (const Ipp8u* pSrc, int srcStep,
- Ipp16s* pDst, int dstStep, IppiSize roiSize, IppiMaskSize mask,
- IppiBorderType borderType, Ipp8u borderValue, Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterSobelHorizSecondBorder_8u16s_C1R, (const Ipp8u* pSrc, int srcStep,
- Ipp16s* pDst, int dstStep, IppiSize roiSize, IppiMaskSize mask,
- IppiBorderType borderType, Ipp8u borderValue, Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterSobelVertSecondBorder_8u16s_C1R, (const Ipp8u* pSrc, int srcStep,
- Ipp16s* pDst, int dstStep, IppiSize roiSize, IppiMaskSize mask,
- IppiBorderType borderType, Ipp8u borderValue, Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterSobelCrossBorder_8u16s_C1R, (const Ipp8u* pSrc, int srcStep,
- Ipp16s* pDst, int dstStep, IppiSize roiSize, IppiMaskSize mask,
- IppiBorderType borderType, Ipp8u borderValue, Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterLaplacianBorder_8u16s_C1R, (const Ipp8u* pSrc, int srcStep,
- Ipp16s* pDst, int dstStep, IppiSize roiSize, IppiMaskSize mask,
- IppiBorderType borderType, Ipp8u borderValue, Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterLowpassBorder_8u_C1R, (const Ipp8u* pSrc, int srcStep,
- Ipp8u* pDst, int dstStep, IppiSize roiSize, IppiMaskSize mask,
- IppiBorderType borderType, Ipp8u borderValue, Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterScharrHorizBorder_8u8s_C1R, (const Ipp8u* pSrc, int srcStep,
- Ipp8s* pDst, int dstStep, IppiSize roiSize,
- IppiBorderType borderType, Ipp8u borderValue, int divisor,
- Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterScharrVertBorder_8u8s_C1R, (const Ipp8u* pSrc, int srcStep,
- Ipp8s* pDst, int dstStep, IppiSize roiSize,
- IppiBorderType borderType, Ipp8u borderValue, int divisor,
- Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterSobelHorizBorder_8u8s_C1R, (const Ipp8u* pSrc, int srcStep,
- Ipp8s* pDst, int dstStep, IppiSize roiSize, IppiMaskSize mask,
- IppiBorderType borderType, Ipp8u borderValue, int divisor,
- Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterSobelVertBorder_8u8s_C1R, (const Ipp8u* pSrc, int srcStep,
- Ipp8s* pDst, int dstStep, IppiSize roiSize, IppiMaskSize mask,
- IppiBorderType borderType, Ipp8u borderValue, int divisor,
- Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterSobelNegVertBorder_8u8s_C1R, (const Ipp8u* pSrc, int srcStep,
- Ipp8s* pDst, int dstStep, IppiSize roiSize, IppiMaskSize mask,
- IppiBorderType borderType, Ipp8u borderValue, int divisor,
- Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterSobelHorizSecondBorder_8u8s_C1R, (const Ipp8u* pSrc, int srcStep,
- Ipp8s* pDst, int dstStep, IppiSize roiSize, IppiMaskSize mask,
- IppiBorderType borderType, Ipp8u borderValue, int divisor,
- Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterSobelVertSecondBorder_8u8s_C1R, (const Ipp8u* pSrc, int srcStep,
- Ipp8s* pDst, int dstStep, IppiSize roiSize, IppiMaskSize mask,
- IppiBorderType borderType, Ipp8u borderValue, int divisor,
- Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterSobelCrossBorder_8u8s_C1R, (const Ipp8u* pSrc, int srcStep,
- Ipp8s* pDst, int dstStep, IppiSize roiSize, IppiMaskSize mask,
- IppiBorderType borderType, Ipp8u borderValue, int divisor,
- Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterLaplacianBorder_8u8s_C1R, (const Ipp8u* pSrc, int srcStep,
- Ipp8s* pDst, int dstStep, IppiSize roiSize, IppiMaskSize mask,
- IppiBorderType borderType, Ipp8u borderValue, int divisor,
- Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterScharrHorizBorder_32f_C1R, (const Ipp32f* pSrc, int srcStep,
- Ipp32f* pDst, int dstStep, IppiSize roiSize,
- IppiBorderType borderType, Ipp32f borderValue, Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterScharrVertBorder_32f_C1R, (const Ipp32f* pSrc, int srcStep,
- Ipp32f* pDst, int dstStep, IppiSize roiSize,
- IppiBorderType borderType, Ipp32f borderValue, Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterSobelHorizBorder_32f_C1R, (const Ipp32f* pSrc, int srcStep,
- Ipp32f* pDst, int dstStep, IppiSize roiSize, IppiMaskSize mask,
- IppiBorderType borderType, Ipp32f borderValue, Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterSobelVertBorder_32f_C1R, (const Ipp32f* pSrc, int srcStep,
- Ipp32f* pDst, int dstStep, IppiSize roiSize, IppiMaskSize mask,
- IppiBorderType borderType, Ipp32f borderValue, Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterSobelNegVertBorder_32f_C1R, (const Ipp32f* pSrc, int srcStep,
- Ipp32f* pDst, int dstStep, IppiSize roiSize, IppiMaskSize mask,
- IppiBorderType borderType, Ipp32f borderValue, Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterSobelHorizSecondBorder_32f_C1R, (const Ipp32f* pSrc, int srcStep,
- Ipp32f* pDst, int dstStep, IppiSize roiSize, IppiMaskSize mask,
- IppiBorderType borderType, Ipp32f borderValue, Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterSobelVertSecondBorder_32f_C1R, (const Ipp32f* pSrc, int srcStep,
- Ipp32f* pDst, int dstStep, IppiSize roiSize, IppiMaskSize mask,
- IppiBorderType borderType, Ipp32f borderValue, Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterSobelCrossBorder_32f_C1R, (const Ipp32f* pSrc, int srcStep,
- Ipp32f* pDst, int dstStep, IppiSize roiSize, IppiMaskSize mask,
- IppiBorderType borderType, Ipp32f borderValue, Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterLowpassBorder_32f_C1R, (const Ipp32f* pSrc, int srcStep,
- Ipp32f* pDst, int dstStep, IppiSize roiSize, IppiMaskSize mask,
- IppiBorderType borderType, Ipp32f borderValue, Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFilterLaplacianBorder_32f_C1R, (const Ipp32f* pSrc, int srcStep,
- Ipp32f* pDst, int dstStep, IppiSize roiSize, IppiMaskSize mask,
- IppiBorderType borderType, Ipp32f borderValue, Ipp8u* pBuffer))
- /* ///////////////////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiGenSobelKernel_16s, ippiGenSobelKernel_32f
- //
- // Purpose: Generate kernel for Sobel differential operator
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The size of kernel is less or equal zero
- // ippStsBadArgErr derivative order is less than 0
- //
- // Parameters:
- // pDst The pointer to the destination kernel
- // kernelSize The kernel size, odd
- // dx The order of derivative (0<=dx<kernelSize)
- // sign Reverse signs in sign < 0
- */
- IPPAPI (IppStatus, ippiGenSobelKernel_16s, (Ipp16s* pDst, int kernelSize, int dx, int sign))
- IPPAPI (IppStatus, ippiGenSobelKernel_32f, (Ipp32f *pDst, int kernelSize, int dx, int sign))
- /****************************************************************************************\
- * Image Integrals *
- \****************************************************************************************/
- /*F/////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiIntegral_8u32s_C1R, ippiIntegral_8u32f_C1R,
- // ippiSqrIntegral_8u32s64f_C1R, ippiSqrIntegral_8u32f64f_C1R,
- // ippiTiltedIntegral_8u32s_C1R, ippiTiltedIntegral_8u32f_C1R
- // ippiTiltedSqrIntegral_8u32s64f_C1R, ippiTiltedSqrIntegral_8u32f64f_C1R,
- // ippiSqrIntegral_8u32s_C1R, ippiTiltedSqrIntegral_8u32s_C1R
- //
- // Purpose: calculates pixel sum on subimage
- //
- // Returns:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width or height of images is less or equal zero
- // ippStsStepErr The steps in images are too small
- // ippStsNotEvenStepErr Step is not multiple of element.
- //
- // Parameters:
- // pSrc The pointer to source image
- // srcStep The step in source image
- // pDst The pointer to destination integral image
- // dstStep The step in destination image
- // pSq The pointer to destination square integral image
- // sqStep The step in destination image
- // roiSize The source and destination image ROI size.
- // val The value to add to pDst image pixels.
- // valSqr The value to add to pSq image pixels.
- //
- // Notes:
- //F*/
- IPPAPI(IppStatus, ippiIntegral_8u32s_C1R, (const Ipp8u* pSrc, int srcStep,
- Ipp32s* pDst, int dstStep, IppiSize roiSize, Ipp32s val))
- IPPAPI(IppStatus, ippiTiltedIntegral_8u32s_C1R, (const Ipp8u* pSrc, int srcStep,
- Ipp32s* pDst, int dstStep, IppiSize roiSize, Ipp32s val))
- IPPAPI(IppStatus, ippiSqrIntegral_8u32s_C1R, (const Ipp8u* pSrc, int srcStep,
- Ipp32s* pDst, int dstStep, Ipp32s* pSqr, int sqrStep, IppiSize roi,
- Ipp32s val, Ipp32s valSqr))
- IPPAPI(IppStatus, ippiTiltedSqrIntegral_8u32s_C1R, (const Ipp8u* pSrc, int srcStep,
- Ipp32s* pDst, int dstStep, Ipp32s* pSqr, int sqrStep, IppiSize roi,
- Ipp32s val, Ipp32s valSqr))
- IPPAPI(IppStatus, ippiSqrIntegral_8u32s64f_C1R, (const Ipp8u* pSrc, int srcStep,
- Ipp32s* pDst, int dstStep, Ipp64f* pSqr, int sqrStep, IppiSize roiSize,
- Ipp32s val, Ipp64f valSqr))
- IPPAPI(IppStatus, ippiTiltedSqrIntegral_8u32s64f_C1R, (const Ipp8u* pSrc, int srcStep,
- Ipp32s* pDst, int dstStep, Ipp64f* pSqr, int sqrStep, IppiSize roiSize,
- Ipp32s val, Ipp64f valSqr))
- IPPAPI(IppStatus, ippiIntegral_8u32f_C1R, (const Ipp8u* pSrc, int srcStep,
- Ipp32f* pDst, int dstStep, IppiSize roiSize, Ipp32f val))
- IPPAPI(IppStatus, ippiTiltedIntegral_8u32f_C1R, (const Ipp8u* pSrc, int srcStep,
- Ipp32f* pDst, int dstStep, IppiSize roiSize, Ipp32f val))
- IPPAPI(IppStatus, ippiSqrIntegral_8u32f64f_C1R, (const Ipp8u* pSrc, int srcStep,
- Ipp32f* pDst, int dstStep, Ipp64f* pSqr, int sqrStep, IppiSize roiSize,
- Ipp32f val, Ipp64f valSqr))
- IPPAPI(IppStatus, ippiTiltedSqrIntegral_8u32f64f_C1R, (const Ipp8u* pSrc, int srcStep,
- Ipp32f* pDst, int dstStep, Ipp64f* pSqr, int sqrStep, IppiSize roiSize,
- Ipp32f val, Ipp64f valSqr))
- /****************************************************************************************\
- * Image Mean and Variance *
- \****************************************************************************************/
- /*F///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiMean_8u_C1MR, ippiMean_8s_C1MR, ippiMean_16u_C1MR, ippiMean_32f_C1MR,
- // ippiMean_8u_C3CMR, ippiMean_8s_C3CMR, ippiMean_16u_C3CMR, ippiMean_32f_C3CMR
- //
- // Purpose: Find mean value for selected region
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width or height of images is less or equal zero
- // ippStsStepErr The steps in images are too small
- // ippStsNotEvenStepErr Step is not multiple of element.
- // ippStsCOIErr COI index is illegal (coi<1 || coi>3)
- //
- // Parameters:
- // pSrc Pointer to image
- // srcStep Image step
- // pMask Pointer to mask image
- // maskStep Step in the mask image
- // roiSize Size of image ROI
- // coi Index of color channel (1..3) (if color image)
- // pMean Returned mean value
- //
- // Notes:
- //F*/
- IPPAPI( IppStatus, ippiMean_8u_C1MR, ( const Ipp8u* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, Ipp64f* pMean ))
- IPPAPI( IppStatus, ippiMean_8u_C3CMR, ( const Ipp8u* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int coi, Ipp64f* pMean ))
- IPPAPI( IppStatus, ippiMean_8s_C1MR, ( const Ipp8s* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, Ipp64f* pMean ))
- IPPAPI( IppStatus, ippiMean_8s_C3CMR, ( const Ipp8s* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int coi, Ipp64f* pMean ))
- IPPAPI( IppStatus, ippiMean_16u_C1MR, ( const Ipp16u* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, Ipp64f* pMean ))
- IPPAPI( IppStatus, ippiMean_16u_C3CMR, ( const Ipp16u* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int coi, Ipp64f* pMean ))
- IPPAPI( IppStatus, ippiMean_32f_C1MR, ( const Ipp32f* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, Ipp64f* pMean ))
- IPPAPI( IppStatus, ippiMean_32f_C3CMR, ( const Ipp32f* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int coi, Ipp64f* pMean ))
- /*F///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiMean_StdDev_8u_C1R, ippiMean_StdDev_8s_C1R,
- // ippiMean_StdDev_16u_C1R, ippiMean_StdDev_32f_C1R,
- // ippiMean_StdDev_8u_C3CR, ippiMean_StdDev_8s_C3CR,
- // ippiMean_StdDev_16u_C3CR, ippiMean_StdDev_32f_C3CR
- //
- // Purpose: Find mean and standard deviation values for selected region
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width or height of images is less or equal zero
- // ippStsStepErr The steps in images are too small
- // ippStsNotEvenStepErr Step is not multiple of element.
- // ippStsCOIErr COI index is illegal (coi<1 || coi>3)
- //
- // Parameters:
- // pSrc Pointer to image
- // srcStep Image step
- // roiSize Size of image ROI
- // coi Index of color channel (1..3) (if color image)
- // pMean Returned mean value
- // pStdDev Returned standard deviation
- //
- // Notes:
- //F*/
- IPPAPI( IppStatus, ippiMean_StdDev_8u_C1R, ( const Ipp8u* pSrc, int srcStep,
- IppiSize roiSize,
- Ipp64f* pMean, Ipp64f* pStdDev ))
- IPPAPI( IppStatus, ippiMean_StdDev_8u_C3CR, ( const Ipp8u* pSrc, int srcStep,
- IppiSize roiSize, int coi,
- Ipp64f* pMean, Ipp64f* pStdDev ))
- IPPAPI( IppStatus, ippiMean_StdDev_8s_C1R, ( const Ipp8s* pSrc, int srcStep,
- IppiSize roiSize,
- Ipp64f* pMean, Ipp64f* pStdDev ))
- IPPAPI( IppStatus, ippiMean_StdDev_8s_C3CR, ( const Ipp8s* pSrc, int srcStep,
- IppiSize roiSize, int coi,
- Ipp64f* pMean, Ipp64f* pStdDev ))
- IPPAPI( IppStatus, ippiMean_StdDev_16u_C1R, ( const Ipp16u* pSrc, int srcStep,
- IppiSize roiSize,
- Ipp64f* pMean, Ipp64f* pStdDev ))
- IPPAPI( IppStatus, ippiMean_StdDev_16u_C3CR, ( const Ipp16u* pSrc, int srcStep,
- IppiSize roiSize, int coi,
- Ipp64f* pMean, Ipp64f* pStdDev ))
- IPPAPI( IppStatus, ippiMean_StdDev_32f_C1R, ( const Ipp32f* pSrc, int srcStep,
- IppiSize roiSize,
- Ipp64f* pMean, Ipp64f* pStdDev ))
- IPPAPI( IppStatus, ippiMean_StdDev_32f_C3CR, ( const Ipp32f* pSrc, int srcStep,
- IppiSize roiSize, int coi,
- Ipp64f* pMean, Ipp64f* pStdDev ))
- /*F///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiMean_StdDev_8u_C1MR, ippiMean_StdDev_8s_C1MR,
- // ippiMean_StdDev_16u_C1MR, ippiMean_StdDev_32f_C1MR,
- // ippiMean_StdDev_8u_C3CMR, ippiMean_StdDev_8s_C3CMR,
- // ippiMean_StdDev_16u_C3CMR, ippiMean_StdDev_32f_C3CMR
- //
- // Purpose: Find mean and standard deviation values for selected region
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width or height of images is less or equal zero
- // ippStsStepErr The steps in images are too small
- // ippStsNotEvenStepErr Step is not multiple of element.
- //
- // Parameters:
- // pSrc Pointer to image
- // srcStep Image step
- // pMask Pointer to mask image
- // maskStep Step in the mask image
- // roiSize Size of image ROI
- // coi Index of color channel (1..3) (if color image)
- // pMean Returned mean value
- // pStdDev Returned standard deviation
- //
- // Notes:
- //F*/
- IPPAPI( IppStatus, ippiMean_StdDev_8u_C1MR, ( const Ipp8u* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize,
- Ipp64f* pMean, Ipp64f* pStdDev ))
- IPPAPI( IppStatus, ippiMean_StdDev_8u_C3CMR, ( const Ipp8u* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int coi,
- Ipp64f* pMean, Ipp64f* pStdDev ))
- IPPAPI( IppStatus, ippiMean_StdDev_8s_C1MR, ( const Ipp8s* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize,
- Ipp64f* pMean, Ipp64f* pStdDev ))
- IPPAPI( IppStatus, ippiMean_StdDev_8s_C3CMR, ( const Ipp8s* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int coi,
- Ipp64f* pMean, Ipp64f* pStdDev ))
- IPPAPI( IppStatus, ippiMean_StdDev_16u_C1MR, ( const Ipp16u* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize,
- Ipp64f* pMean, Ipp64f* pStdDev ))
- IPPAPI( IppStatus, ippiMean_StdDev_16u_C3CMR, ( const Ipp16u* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int coi,
- Ipp64f* pMean, Ipp64f* pStdDev ))
- IPPAPI( IppStatus, ippiMean_StdDev_32f_C1MR, ( const Ipp32f* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize,
- Ipp64f* pMean, Ipp64f* pStdDev ))
- IPPAPI( IppStatus, ippiMean_StdDev_32f_C3CMR, ( const Ipp32f* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int coi,
- Ipp64f* pMean, Ipp64f* pStdDev ))
- /****************************************************************************************\
- * Variance on Window *
- \****************************************************************************************/
- /*F/////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiRectStdDev_32s32f_C1R, ippiRectStdDev_32f_C1R
- // ippiTiltedRectStdDev_32s32f_C1R, ippiTiltedRectStdDev_32f_C1R
- // ippiRectStdDev_32s_C1RSfs, ippiTiltedRectStdDev_32s_C1RSfs
- //
- // Purpose: Calculates standard deviation on rectangular window
- //
- // Returns:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width or height of images is less or equal zero
- // ippStsStepErr The steps in images are too small
- // ippStsNotEvenStepErr Step is not multiple of element.
- //
- // Parameters:
- // pSrc The pointer to source image of integrals
- // srcStep The step in source image
- // pSqr The pointer to destination square integral image
- // sqrStep The step in destination image
- // pDst The pointer to destination image
- // dstStep The step in destination image
- // roiSize The destination image ROI size.
- // rect The rectangular window for standard deviation calculation.
- // scaleFactor Output scale factor
- //
- // Notes:
- //F*/
- IPPAPI(IppStatus, ippiRectStdDev_32s_C1RSfs, (const Ipp32s* pSrc, int srcStep,
- const Ipp32s* pSqr, int sqrStep, Ipp32s* pDst, int dstStep, IppiSize roi,
- IppiRect rect, int scaleFactor))
- IPPAPI(IppStatus, ippiRectStdDev_32s32f_C1R, (const Ipp32s* pSrc, int srcStep,
- const Ipp64f* pSqr, int sqrStep, Ipp32f* pDst, int dstStep,
- IppiSize roiSize, IppiRect rect))
- IPPAPI(IppStatus, ippiTiltedRectStdDev_32s32f_C1R, (const Ipp32s* pSrc, int srcStep,
- const Ipp64f* pSqr, int sqrStep, Ipp32f* pDst, int dstStep,
- IppiSize roiSize, IppiRect rect))
- IPPAPI(IppStatus, ippiTiltedRectStdDev_32s_C1RSfs, (const Ipp32s* pSrc, int srcStep,
- const Ipp32s* pSqr, int sqrStep, Ipp32s* pDst, int dstStep, IppiSize roi,
- IppiRect rect, int scaleFactor))
- IPPAPI(IppStatus, ippiRectStdDev_32f_C1R, (const Ipp32f* pSrc, int srcStep,
- const Ipp64f* pSqr, int sqrStep, Ipp32f* pDst, int dstStep,
- IppiSize roiSize, IppiRect rect))
- IPPAPI(IppStatus, ippiTiltedRectStdDev_32f_C1R, (const Ipp32f* pSrc, int srcStep,
- const Ipp64f* pSqr, int sqrStep, Ipp32f* pDst, int dstStep,
- IppiSize roiSize, IppiRect rect))
- /****************************************************************************************\
- * Image Minimum and Maximum *
- \****************************************************************************************/
- /*F///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiMinMaxIndx_8u_C1R, ippiMinMaxIndx_8s_C1R,
- // ippiMinMaxIndx_16u_C1R, ippiMinMaxIndx_32f_C1R,
- // ippiMinMaxIndx_8u_C3CR, ippiMinMaxIndx_8s_C3CR,
- // ippiMinMaxIndx_16u_C3CR, ippiMinMaxIndx_32f_C3CR,
- //
- // Purpose: Finds minimum and maximum values in the image and their coordinates
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width or height of images is less or equal zero
- // ippStsStepErr The steps in images are too small
- // ippStsNotEvenStepErr Step is not multiple of element.
- //
- // Parameters:
- // pSrc Pointer to image
- // srcStep Image step
- // roiSize Size of image ROI
- // coi Index of color channel (1..3) (if color image)
- // pMinVal Pointer to minimum value
- // pMaxVal Pointer to maximum value
- // pMinIndex Minimum's coordinates
- // pMaxIndex Maximum's coordinates
- //
- // Notes:
- // Any of output parameters is optional
- //F*/
- IPPAPI(IppStatus, ippiMinMaxIndx_8u_C1R,( const Ipp8u* pSrc, int srcStep, IppiSize roiSize,
- Ipp32f* pMinVal, Ipp32f* pMaxVal,
- IppiPoint* pMinIndex, IppiPoint* pMaxIndex ))
- IPPAPI(IppStatus, ippiMinMaxIndx_8u_C3CR,( const Ipp8u* pSrc, int srcStep,
- IppiSize roiSize, int coi,
- Ipp32f* pMinVal, Ipp32f* pMaxVal,
- IppiPoint* pMinIndex, IppiPoint* pMaxIndex ))
- IPPAPI(IppStatus, ippiMinMaxIndx_8s_C1R,( const Ipp8s* pSrc, int step, IppiSize roiSize,
- Ipp32f* pMinVal, Ipp32f* pMaxVal,
- IppiPoint* pMinIndex, IppiPoint* pMaxIndex ))
- IPPAPI(IppStatus, ippiMinMaxIndx_8s_C3CR,( const Ipp8s* pSrc, int step, IppiSize roiSize,
- int coi, Ipp32f* pMinVal, Ipp32f* pMaxVal,
- IppiPoint* pMinIndex, IppiPoint* pMaxIndex ))
- IPPAPI(IppStatus, ippiMinMaxIndx_16u_C1R,( const Ipp16u* pSrc, int srcStep, IppiSize roiSize,
- Ipp32f* pMinVal, Ipp32f* pMaxVal,
- IppiPoint* pMinIndex, IppiPoint* pMaxIndex ))
- IPPAPI(IppStatus, ippiMinMaxIndx_16u_C3CR,( const Ipp16u* pSrc, int srcStep,
- IppiSize roiSize, int coi,
- Ipp32f* pMinVal, Ipp32f* pMaxVal,
- IppiPoint* pMinIndex, IppiPoint* pMaxIndex ))
- IPPAPI(IppStatus, ippiMinMaxIndx_32f_C1R,( const Ipp32f* pSrc, int step, IppiSize roiSize,
- Ipp32f* pMinVal, Ipp32f* pMaxVal,
- IppiPoint* pMinIndex, IppiPoint* pMaxIndex ))
- IPPAPI(IppStatus, ippiMinMaxIndx_32f_C3CR,( const Ipp32f* pSrc, int step, IppiSize roiSize,
- int coi, Ipp32f* pMinVal, Ipp32f* pMaxVal,
- IppiPoint* pMinIndex, IppiPoint* pMaxIndex))
- /*F///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiMinMaxIndx_8u_C1MR, ippiMinMaxIndx_8s_C1MR,
- // ippiMinMaxIndx_16u_C1MR, ippiMinMaxIndx_32f_C1MR,
- // ippiMinMaxIndx_8u_C3CMR, ippiMinMaxIndx_8s_C3CMR,
- // ippiMinMaxIndx_16u_C3CMR, ippiMinMaxIndx_32f_C3CMR,
- //
- // Purpose: Finds minimum and maximum values in the image and their coordinates
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width or height of images is less or equal zero
- // ippStsStepErr The steps in images are too small
- // ippStsNotEvenStepErr Step is not multiple of element.
- //
- // Parameters:
- // pSrc Pointer to image
- // srcStep Image step
- // pMask Pointer to mask image
- // maskStep Step in the mask image
- // roiSize Size of image ROI
- // coi Index of color channel (1..3) (if color image)
- // pMinVal Pointer to minimum value
- // pMaxVal Pointer to maximum value
- // pMinIndex Minimum's coordinates
- // pMaxIndex Maximum's coordinates
- //
- // Notes:
- // Any of output parameters is optional
- //F*/
- IPPAPI(IppStatus, ippiMinMaxIndx_8u_C1MR,( const Ipp8u* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize,
- Ipp32f* pMinVal, Ipp32f* pMaxVal,
- IppiPoint* pMinIndex, IppiPoint* pMaxIndex ))
- IPPAPI( IppStatus, ippiMinMaxIndx_8u_C3CMR, ( const Ipp8u* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int coi,
- Ipp32f* pMinVal, Ipp32f* pMaxVal,
- IppiPoint* pMinIndex, IppiPoint* pMaxIndex ))
- IPPAPI( IppStatus, ippiMinMaxIndx_8s_C1MR, ( const Ipp8s* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize,
- Ipp32f* pMinVal, Ipp32f* pMaxVal,
- IppiPoint* pMinIndex, IppiPoint* pMaxIndex ))
- IPPAPI( IppStatus, ippiMinMaxIndx_8s_C3CMR, ( const Ipp8s* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int coi,
- Ipp32f* pMinVal, Ipp32f* pMaxVal,
- IppiPoint* pMinIndex, IppiPoint* pMaxIndex ))
- IPPAPI(IppStatus, ippiMinMaxIndx_16u_C1MR,( const Ipp16u* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize,
- Ipp32f* pMinVal, Ipp32f* pMaxVal,
- IppiPoint* pMinIndex, IppiPoint* pMaxIndex ))
- IPPAPI( IppStatus, ippiMinMaxIndx_16u_C3CMR, ( const Ipp16u* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int coi,
- Ipp32f* pMinVal, Ipp32f* pMaxVal,
- IppiPoint* pMinIndex, IppiPoint* pMaxIndex ))
- IPPAPI( IppStatus, ippiMinMaxIndx_32f_C1MR, ( const Ipp32f* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize,
- Ipp32f* pMinVal, Ipp32f* pMaxVal,
- IppiPoint* pMinIndex, IppiPoint* pMaxIndex ))
- IPPAPI( IppStatus, ippiMinMaxIndx_32f_C3CMR, ( const Ipp32f* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int coi,
- Ipp32f* pMinVal, Ipp32f* pMaxVal,
- IppiPoint* pMinIndex, IppiPoint* pMaxIndex ))
- /****************************************************************************************\
- * Image Norms *
- \****************************************************************************************/
- /*F///////////////////////////////////////////////////////////////////////////////////////
- // Names: ippiNorm_Inf_8u_C1MR, ippiNorm_Inf_8s_C1MR,
- // ippiNorm_Inf_16u_C1MR, ippiNorm_Inf_32f_C1MR,
- // ippiNorm_Inf_8u_C3CMR, ippiNorm_Inf_8s_C3CMR,
- // ippiNorm_Inf_16u_C3CMR, ippiNorm_Inf_32f_C3CMR,
- // ippiNormDiff_Inf_8u_C1MR, ippiNormDiff_Inf_8s_C1MR,
- // ippiNormDiff_Inf_16u_C1MR, ippiNormDiff_Inf_32f_C1MR,
- // ippiNormDiff_Inf_8u_C3CMR, ippiNormDiff_Inf_8s_C3CMR,
- // ippiNormDiff_Inf_16u_C3CMR, ippiNormDiff_Inf_32f_C3CMR,
- // ippiNormRel_Inf_8u_C1MR, ippiNormRel_Inf_8s_C1MR,
- // ippiNormRel_Inf_16u_C1MR, ippiNormRel_Inf_32f_C1MR,
- // ippiNormRel_Inf_8u_C3CMR, ippiNormRel_Inf_8s_C3CMR,
- // ippiNormRel_Inf_16u_C3CMR, ippiNormRel_Inf_32f_C3CMR,
- //
- // ippiNorm_L1_8u_C1MR, ippiNorm_L1_8s_C1MR,
- // ippiNorm_L1_16u_C1MR, ippiNorm_L1_32f_C1MR,
- // ippiNorm_L1_8u_C3CMR, ippiNorm_L1_8s_C3CMR,
- // ippiNorm_L1_16u_C3CMR, ippiNorm_L1_32f_C3CMR,
- // ippiNormDiff_L1_8u_C1MR, ippiNormDiff_L1_8s_C1MR,
- // ippiNormDiff_L1_16u_C1MR, ippiNormDiff_L1_32f_C1MR,
- // ippiNormDiff_L1_8u_C3CMR, ippiNormDiff_L1_8s_C3CMR,
- // ippiNormDiff_L1_16u_C3CMR, ippiNormDiff_L1_32f_C3CMR,
- // ippiNormRel_L1_8u_C1MR, ippiNormRel_L1_8s_C1MR,
- // ippiNormRel_L1_16u_C1MR, ippiNormRel_L1_32f_C1MR,
- // ippiNormRel_L1_8u_C3CMR, ippiNormRel_L1_8s_C3CMR,
- // ippiNormRel_L1_16u_C3CMR, ippiNormRel_L1_32f_C3CMR,
- //
- // ippiNorm_L2_8u_C1MR, ippiNorm_L2_8s_C1MR,
- // ippiNorm_L2_16u_C1MR, ippiNorm_L2_32f_C1MR,
- // ippiNorm_L2_8u_C3CMR, ippiNorm_L2_8s_C3CMR,
- // ippiNorm_L2_16u_C3CMR, ippiNorm_L2_32f_C3CMR,
- // ippiNormDiff_L2_8u_C1MR, ippiNormDiff_L2_8s_C1MR,
- // ippiNormDiff_L2_16u_C1MR, ippiNormDiff_L2_32f_C1MR,
- // ippiNormDiff_L2_8u_C3CMR, ippiNormDiff_L2_8s_C3CMR,
- // ippiNormDiff_L2_16u_C3CMR, ippiNormDiff_L2_32f_C3CMR,
- // ippiNormRel_L2_8u_C1MR, ippiNormRel_L2_8s_C1MR,
- // ippiNormRel_L2_16u_C1MR, ippiNormRel_L2_32f_C1MR,
- // ippiNormRel_L2_8u_C3CMR, ippiNormRel_L2_8s_C3CMR,
- // ippiNormRel_L2_16u_C3CMR, ippiNormRel_L2_32f_C3CMR
- //
- // Purpose: Calculates ordinary, differential or relative norms of one or two images
- // in an arbitrary image region.
- //
- // Returns:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width or height of images is less or equal zero
- // ippStsStepErr The steps in images are too small
- // ippStsNotEvenStepErr Step is not multiple of element.
- //
- // Parameters:
- // pSrc, pSrc1 Pointers to source and mask images
- // pSrc2, pMask
- // srcStep, src1Step Their steps
- // src2Step, maskStep
- // roiSize Their size or ROI size
- // coi COI index (1..3) (if 3-channel images)
- // pNorm The pointer to calculated norm
- //
- // Notes:
- //F*/
- /* ///////////////////////////////// 8uC1 flavor ////////////////////////////////////// */
- IPPAPI( IppStatus, ippiNorm_Inf_8u_C1MR, ( const Ipp8u* pSrc, int srcStep,
- const Ipp8u* pMask,int maskStep,
- IppiSize roiSize, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNorm_Inf_8s_C1MR, ( const Ipp8s* pSrc, int srcStep,
- const Ipp8u* pMask,int maskStep,
- IppiSize roiSize, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNorm_Inf_16u_C1MR, ( const Ipp16u* pSrc, int srcStep,
- const Ipp8u* pMask,int maskStep,
- IppiSize roiSize, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNorm_Inf_32f_C1MR, ( const Ipp32f* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNorm_Inf_8u_C3CMR, ( const Ipp8u* pSrc, int srcStep,
- const Ipp8u* pMask,int maskStep,
- IppiSize roiSize, int coi, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNorm_Inf_8s_C3CMR, ( const Ipp8s* pSrc, int srcStep,
- const Ipp8u* pMask,int maskStep,
- IppiSize roiSize, int coi, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNorm_Inf_16u_C3CMR, ( const Ipp16u* pSrc, int srcStep,
- const Ipp8u* pMask,int maskStep,
- IppiSize roiSize, int coi, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNorm_Inf_32f_C3CMR, ( const Ipp32f* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int coi, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNormDiff_Inf_8u_C1MR, ( const Ipp8u* pSrc1, int src1Step,
- const Ipp8u* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNormDiff_Inf_8s_C1MR, ( const Ipp8s* pSrc1, int src1Step,
- const Ipp8s* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNormDiff_Inf_16u_C1MR, ( const Ipp16u* pSrc1, int src1Step,
- const Ipp16u* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNormDiff_Inf_32f_C1MR, ( const Ipp32f* pSrc1, int src1Step,
- const Ipp32f* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNormDiff_Inf_8u_C3CMR, (const Ipp8u* pSrc1, int src1Step,
- const Ipp8u* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int coi, Ipp64f* pNorm ))
- IPPAPI( IppStatus, ippiNormDiff_Inf_8s_C3CMR, (const Ipp8s* pSrc1, int src1Step,
- const Ipp8s* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int coi, Ipp64f* pNorm ))
- IPPAPI( IppStatus, ippiNormDiff_Inf_16u_C3CMR, (const Ipp16u* pSrc1, int src1Step,
- const Ipp16u* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int coi, Ipp64f* pNorm ))
- IPPAPI( IppStatus, ippiNormDiff_Inf_32f_C3CMR, (const Ipp32f* pSrc1, int src1Step,
- const Ipp32f* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int coi, Ipp64f* pNorm ))
- IPPAPI( IppStatus, ippiNormRel_Inf_8u_C1MR, ( const Ipp8u* pSrc1, int src1Step,
- const Ipp8u* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNormRel_Inf_8s_C1MR, ( const Ipp8s* pSrc1, int src1Step,
- const Ipp8s* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNormRel_Inf_16u_C1MR, ( const Ipp16u* pSrc1, int src1Step,
- const Ipp16u* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNormRel_Inf_32f_C1MR, ( const Ipp32f* pSrc1, int src1Step,
- const Ipp32f* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNormRel_Inf_8u_C3CMR, ( const Ipp8u* pSrc1, int src1Step,
- const Ipp8u* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int coi, Ipp64f* pNorm ))
- IPPAPI( IppStatus, ippiNormRel_Inf_8s_C3CMR, ( const Ipp8s* pSrc1, int src1Step,
- const Ipp8s* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int coi, Ipp64f* pNorm ))
- IPPAPI( IppStatus, ippiNormRel_Inf_16u_C3CMR, ( const Ipp16u* pSrc1, int src1Step,
- const Ipp16u* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int coi, Ipp64f* pNorm ))
- IPPAPI( IppStatus, ippiNormRel_Inf_32f_C3CMR, ( const Ipp32f* pSrc1, int src1Step,
- const Ipp32f* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int coi, Ipp64f* pNorm ))
- IPPAPI( IppStatus, ippiNorm_L1_8u_C1MR, ( const Ipp8u* pSrc, int srcStep,
- const Ipp8u* pMask,int maskStep,
- IppiSize roiSize, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNorm_L1_8s_C1MR, ( const Ipp8s* pSrc, int srcStep,
- const Ipp8u* pMask,int maskStep,
- IppiSize roiSize, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNorm_L1_16u_C1MR, ( const Ipp16u* pSrc, int srcStep,
- const Ipp8u* pMask,int maskStep,
- IppiSize roiSize, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNorm_L1_32f_C1MR, ( const Ipp32f* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNorm_L1_8u_C3CMR, ( const Ipp8u* pSrc, int srcStep,
- const Ipp8u* pMask,int maskStep,
- IppiSize roiSize, int coi, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNorm_L1_8s_C3CMR, ( const Ipp8s* pSrc, int srcStep,
- const Ipp8u* pMask,int maskStep,
- IppiSize roiSize, int coi, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNorm_L1_16u_C3CMR, ( const Ipp16u* pSrc, int srcStep,
- const Ipp8u* pMask,int maskStep,
- IppiSize roiSize, int coi, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNorm_L1_32f_C3CMR, ( const Ipp32f* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int coi, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNormDiff_L1_8u_C1MR, ( const Ipp8u* pSrc1, int src1Step,
- const Ipp8u* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNormDiff_L1_8s_C1MR, ( const Ipp8s* pSrc1, int src1Step,
- const Ipp8s* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNormDiff_L1_16u_C1MR, ( const Ipp16u* pSrc1, int src1Step,
- const Ipp16u* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNormDiff_L1_32f_C1MR, ( const Ipp32f* pSrc1, int src1Step,
- const Ipp32f* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNormDiff_L1_8u_C3CMR, ( const Ipp8u* pSrc1, int src1Step,
- const Ipp8u* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int coi, Ipp64f* pNorm ))
- IPPAPI( IppStatus, ippiNormDiff_L1_8s_C3CMR, ( const Ipp8s* pSrc1, int src1Step,
- const Ipp8s* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int coi, Ipp64f* pNorm ))
- IPPAPI( IppStatus, ippiNormDiff_L1_16u_C3CMR, ( const Ipp16u* pSrc1, int src1Step,
- const Ipp16u* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int coi, Ipp64f* pNorm ))
- IPPAPI( IppStatus, ippiNormDiff_L1_32f_C3CMR, ( const Ipp32f* pSrc1, int src1Step,
- const Ipp32f* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int coi, Ipp64f* pNorm ))
- IPPAPI( IppStatus, ippiNormRel_L1_8u_C1MR, ( const Ipp8u* pSrc1, int src1Step,
- const Ipp8u* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNormRel_L1_8s_C1MR, ( const Ipp8s* pSrc1, int src1Step,
- const Ipp8s* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNormRel_L1_16u_C1MR, ( const Ipp16u* pSrc1, int src1Step,
- const Ipp16u* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNormRel_L1_32f_C1MR, ( const Ipp32f* pSrc1, int src1Step,
- const Ipp32f* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNormRel_L1_8u_C3CMR, ( const Ipp8u* pSrc1, int src1Step,
- const Ipp8u* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int coi, Ipp64f* pNorm ))
- IPPAPI( IppStatus, ippiNormRel_L1_8s_C3CMR, ( const Ipp8s* pSrc1, int src1Step,
- const Ipp8s* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int coi, Ipp64f* pNorm ))
- IPPAPI( IppStatus, ippiNormRel_L1_16u_C3CMR, ( const Ipp16u* pSrc1, int src1Step,
- const Ipp16u* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int coi, Ipp64f* pNorm ))
- IPPAPI( IppStatus, ippiNormRel_L1_32f_C3CMR, ( const Ipp32f* pSrc1, int src1Step,
- const Ipp32f* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int coi, Ipp64f* pNorm ))
- IPPAPI( IppStatus, ippiNorm_L2_8u_C1MR, ( const Ipp8u* pSrc, int srcStep,
- const Ipp8u* pMask,int maskStep,
- IppiSize roiSize, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNorm_L2_8s_C1MR, ( const Ipp8s* pSrc, int srcStep,
- const Ipp8u* pMask,int maskStep,
- IppiSize roiSize, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNorm_L2_16u_C1MR, ( const Ipp16u* pSrc, int srcStep,
- const Ipp8u* pMask,int maskStep,
- IppiSize roiSize, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNorm_L2_32f_C1MR, ( const Ipp32f* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNorm_L2_8u_C3CMR, ( const Ipp8u* pSrc, int srcStep,
- const Ipp8u* pMask,int maskStep,
- IppiSize roiSize, int coi, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNorm_L2_8s_C3CMR, ( const Ipp8s* pSrc, int srcStep,
- const Ipp8u* pMask,int maskStep,
- IppiSize roiSize, int coi, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNorm_L2_16u_C3CMR, ( const Ipp16u* pSrc, int srcStep,
- const Ipp8u* pMask,int maskStep,
- IppiSize roiSize, int coi, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNorm_L2_32f_C3CMR, ( const Ipp32f* pSrc, int srcStep,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int coi, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNormDiff_L2_8u_C1MR, ( const Ipp8u* pSrc1, int src1Step,
- const Ipp8u* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNormDiff_L2_8s_C1MR, ( const Ipp8s* pSrc1, int src1Step,
- const Ipp8s* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNormDiff_L2_16u_C1MR, ( const Ipp16u* pSrc1, int src1Step,
- const Ipp16u* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNormDiff_L2_32f_C1MR, ( const Ipp32f* pSrc1, int src1Step,
- const Ipp32f* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNormDiff_L2_8u_C3CMR, ( const Ipp8u* pSrc1, int src1Step,
- const Ipp8u* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int coi, Ipp64f* pNorm ))
- IPPAPI( IppStatus, ippiNormDiff_L2_8s_C3CMR, ( const Ipp8s* pSrc1, int src1Step,
- const Ipp8s* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int coi, Ipp64f* pNorm ))
- IPPAPI( IppStatus, ippiNormDiff_L2_16u_C3CMR, ( const Ipp16u* pSrc1, int src1Step,
- const Ipp16u* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int coi, Ipp64f* pNorm ))
- IPPAPI( IppStatus, ippiNormDiff_L2_32f_C3CMR, ( const Ipp32f* pSrc1, int src1Step,
- const Ipp32f* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int coi, Ipp64f* pNorm ))
- IPPAPI( IppStatus, ippiNormRel_L2_8u_C1MR, ( const Ipp8u* pSrc1, int src1Step,
- const Ipp8u* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNormRel_L2_8s_C1MR, ( const Ipp8s* pSrc1, int src1Step,
- const Ipp8s* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNormRel_L2_16u_C1MR, ( const Ipp16u* pSrc1, int src1Step,
- const Ipp16u* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNormRel_L2_32f_C1MR, ( const Ipp32f* pSrc1, int src1Step,
- const Ipp32f* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, Ipp64f* pNorm ) )
- IPPAPI( IppStatus, ippiNormRel_L2_8u_C3CMR, ( const Ipp8u* pSrc1, int src1Step,
- const Ipp8u* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int coi, Ipp64f* pNorm ))
- IPPAPI( IppStatus, ippiNormRel_L2_8s_C3CMR, ( const Ipp8s* pSrc1, int src1Step,
- const Ipp8s* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int coi, Ipp64f* pNorm ))
- IPPAPI( IppStatus, ippiNormRel_L2_16u_C3CMR, ( const Ipp16u* pSrc1, int src1Step,
- const Ipp16u* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int coi, Ipp64f* pNorm ))
- IPPAPI( IppStatus, ippiNormRel_L2_32f_C3CMR, ( const Ipp32f* pSrc1, int src1Step,
- const Ipp32f* pSrc2, int src2Step,
- const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int coi, Ipp64f* pNorm ))
- /****************************************************************************************\
- * Edge/Corner detection *
- \****************************************************************************************/
- /*F///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiCannyGetSize
- //
- // Purpose: Calculates size of temporary buffer, required to run Canny function.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr Pointer bufferSize is NULL
- // ippStsSizeErr roiSize has a field with zero or negative value
- //
- // Parameters:
- // roiSize Size of image ROI in pixel
- // bufferSize Pointer to the variable that returns the size of the temporary buffer
- //F*/
- IPPAPI( IppStatus, ippiCannyGetSize, ( IppiSize roiSize, int* bufferSize ))
- /*F///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiCanny_16s8u_C1IR, ippiCanny_32f8u_C1IR
- //
- // Purpose: Creates binary image of source's image edges,
- // using derivatives of the first order.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width or height of images is less or equal zero
- // ippStsStepErr The steps in images are too small
- // ippStsNotEvenStepErr Step is not multiple of element.
- // ippStsBadArgErr Bad thresholds
- //
- // Parameters:
- // pSrcDx Pointers to the source image ( first derivatives with respect to X )
- // srcDxStep Step in bytes through the source image pSrcDx
- // pSrcDy Pointers to the source image ( first derivatives with respect to Y )
- // srcDyStep Step in bytes through the source image pSrcDy
- //
- // roiSize Size of the source images ROI in pixels
- // lowThresh Low threshold for edges detection
- // highThresh Upper threshold for edges detection
- // pBuffer Pointer to the pre-allocated temporary buffer, which size can be
- // calculated using ippiCannyGetSize function
- //F*/
- IPPAPI(IppStatus, ippiCanny_16s8u_C1R, ( Ipp16s* pSrcDx, int srcDxStep,
- Ipp16s* pSrcDy, int srcDyStep,
- Ipp8u* pDstEdges, int dstEdgeStep,
- IppiSize roiSize,
- Ipp32f lowThresh,
- Ipp32f highThresh,
- Ipp8u* pBuffer ))
- IPPAPI(IppStatus, ippiCanny_32f8u_C1R, ( Ipp32f* pSrcDx, int srcDxStep,
- Ipp32f* pSrcDy, int srcDyStep,
- Ipp8u* pDstEdges, int dstEdgeStep,
- IppiSize roiSize,
- Ipp32f lowThresh,
- Ipp32f highThresh,
- Ipp8u* pBuffer ))
- /*F///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiEigenValsVecsGetBufferSize_8u32f_C1R, ippiEigenValsVecsGetBufferSize_32f_C1R
- //
- // Purpose: Calculates size of temporary buffer, required to run one of EigenValsVecs***
- // functions.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width is less or equal zero or bad window size
- //
- // Parameters:
- // roiSize roiSize size in pixels
- // apertureSize Linear size of derivative filter aperture
- // avgWindow Linear size of averaging window
- // bufferSize Output parameter. Calculated buffer size.
- //F*/
- IPPAPI(IppStatus, ippiEigenValsVecsGetBufferSize_8u32f_C1R, ( IppiSize roiSize,int apertureSize,
- int avgWindow, int* bufferSize ))
- IPPAPI(IppStatus, ippiEigenValsVecsGetBufferSize_32f_C1R, ( IppiSize roiSize,int apertureSize,
- int avgWindow, int* bufferSize ))
- /*F///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiEigenValsVecs_8u32f_C1R, ippiEigenValsVecs_32f_C1R
- //
- // Purpose: Calculate both eigen values and eigen vectors of 2x2 autocorrelation
- // gradient matrix for every pixel. Can be used for sophisticated
- // edge and corner detection
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width or height of images is less or equal zero
- // or bad window size
- // ippStsStepErr The steps in images are too small
- // ippStsNotEvenStepErr Step is not multiple of element.
- //
- // Parameters:
- // pSrc Source image
- // srcStep Its step
- // pEigenVV Image, which is 6 times wider that source image,
- // filled with 6-tuples:
- // (eig_val1, eig_val2, eig_vec1_x, eig_vec1_y,
- // eig_vec2_x, eig_vec2_y)
- // eigStep Output image step
- // roiSize ROI size
- // kernType Kernel type (Scharr 3x3 or Sobel 3x3, 5x5)
- // apertureSize Linear size of derivative filter aperture
- // avgWindow Linear size of averaging window
- // pBuffer Preallocated temporary buffer, which size can be calculated
- // using ippiEigenValsVecsGetSize function
- //F*/
- IPPAPI(IppStatus, ippiEigenValsVecs_8u32f_C1R, ( const Ipp8u* pSrc, int srcStep,
- Ipp32f* pEigenVV, int eigStep,
- IppiSize roiSize, IppiKernelType kernType,
- int apertureSize, int avgWindow, Ipp8u* pBuffer ))
- IPPAPI(IppStatus, ippiEigenValsVecs_32f_C1R, ( const Ipp32f* pSrc, int srcStep,
- Ipp32f* pEigenVV, int eigStep,
- IppiSize roiSize, IppiKernelType kernType,
- int apertureSize, int avgWindow, Ipp8u* pBuffer ))
- /*F///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiMinEigenValGetBufferSize_8u32f_C1R, ippiMinEigenValGetBufferSize_32f_C1R
- //
- // Purpose: Calculates size of temporary buffer, required to run one of MinEigenVal***
- // functions.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width is less or equal zero or bad window size
- //
- // Parameters:
- // roiSize roiSize size in pixels
- // apertureSize Linear size of derivative filter aperture
- // avgWindow Linear size of averaging window
- // bufferSize Output parameter. Calculated buffer size.
- //F*/
- IPPAPI(IppStatus, ippiMinEigenValGetBufferSize_8u32f_C1R, ( IppiSize roiSize, int apertureSize,
- int avgWindow, int* bufferSize ))
- IPPAPI(IppStatus, ippiMinEigenValGetBufferSize_32f_C1R, ( IppiSize roiSize, int apertureSize,
- int avgWindow, int* bufferSize ))
- /*F///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiMinEigenVal_8u32f_C1R, ippiMinEigenVal_32f_C1R
- //
- // Purpose: Calculate minimal eigen value of 2x2 autocorrelation gradient matrix
- // for every pixel. Pixels with relatively large minimal eigen values
- // are strong corners on the picture.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width or height of images is less or equal zero
- // or bad window size
- // ippStsStepErr The steps in images are too small
- // ippStsNotEvenStepErr Step is not multiple of element.
- //
- // Parameters:
- // pSrc Source image
- // srcStep Its step
- // pMinEigenVal Image, filled with minimal eigen values for every pixel
- // minValStep Its step
- // roiSize ROI size
- // kernType Kernel type (Scharr 3x3 or Sobel 3x3, 5x5)
- // apertureSize Linear size of derivative filter aperture
- // avgWindow Linear size of averaging window
- // pBuffer Preallocated temporary buffer, which size can be calculated
- // using ippiMinEigenValGetSize function
- //F*/
- IPPAPI(IppStatus, ippiMinEigenVal_8u32f_C1R, ( const Ipp8u* pSrc, int srcStep,
- Ipp32f* pMinEigenVal, int minValStep,
- IppiSize roiSize, IppiKernelType kernType,
- int apertureSize, int avgWindow, Ipp8u* pBuffer ))
- IPPAPI(IppStatus, ippiMinEigenVal_32f_C1R, ( const Ipp32f* pSrc, int srcStep,
- Ipp32f* pMinEigenVal, int minValStep,
- IppiSize roiSize, IppiKernelType kernType,
- int apertureSize, int avgWindow, Ipp8u* pBuffer ))
- /****************************************************************************************\
- * Distance Transform *
- \****************************************************************************************/
- /* ///////////////////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiTrueDistanceTransformGetBufferSize_8u16u_C1RSfs,
- // ippiTrueDistanceTransformGetBufferSize_8u32f_C1R
- //
- // Purpose: Get size of external buffer.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr Indicates an error condition if roiSize has a field with zero
- // or negative value.
- //
- // Parameters:
- // roiSize The image ROI size
- // pBufferSize The pointer to the buffer size
- */
- IPPAPI(IppStatus, ippiTrueDistanceTransformGetBufferSize_8u16u_C1RSfs, (IppiSize roiSize, int* pBufferSize))
- IPPAPI(IppStatus, ippiTrueDistanceTransformGetBufferSize_8u32f_C1R, (IppiSize roiSize, int* pBufferSize))
- /*F///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiDistanceTransform_3x3_8u32f_C1R, ippiDistanceTransform_5x5_8u32f_C1R,
- // ippiDistanceTransform_3x3_8u16u_C1R, ippiDistanceTransform_5x5_8u16u_C1R,
- // ippiDistanceTransform_3x3_8u_C1R, ippiDistanceTransform_5x5_8u_C1R,
- // ippiDistanceTransform_3x3_8u_C1IR, ippiDistanceTransform_5x5_8u_C1IR,
- // ippiTrueDistanceTransform_8u16u_C1RSfs,
- // ippiTrueDistanceTransform_8u32f_C1R
- //
- // Purpose: For every non-zero pixel in the source image, the functions calculate
- // distance between that pixel and nearest zero pixel.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width or height of images is less or equal zero
- // ippStsStepErr The steps in images are too small
- // ippStsNotEvenStepErr Step is not multiple of element.
- // ippStsCoeffErr Zero mask coefficient
- //
- // Parameters:
- // pSrc Source image
- // pSrcDst Pointer to the input and output image
- // srcStep Its step
- // pDst Output image with distances
- // dstStep Its step
- // roiSize ROI size
- // pMetrics Array that determines metrics used.
- // scaleFactor Scale factor
- // pBuffer The pointer to the working buffer
- //
- //F*/
- IPPAPI(IppStatus, ippiDistanceTransform_3x3_8u32f_C1R, ( const Ipp8u* pSrc, int srcStep,
- Ipp32f* pDst, int dstStep,
- IppiSize roiSize, Ipp32f* pMetrics ))
- IPPAPI(IppStatus, ippiDistanceTransform_5x5_8u32f_C1R, ( const Ipp8u* pSrc, int srcStep,
- Ipp32f* pDst, int dstStep,
- IppiSize roiSize, Ipp32f* pMetrics ))
- IPPAPI(IppStatus, ippiDistanceTransform_3x3_8u16u_C1R, ( const Ipp8u* pSrc, int srcStep,
- Ipp16u* pDst, int dstStep,
- IppiSize roiSize, Ipp32s* pMetrics ))
- IPPAPI(IppStatus, ippiDistanceTransform_5x5_8u16u_C1R, ( const Ipp8u* pSrc, int srcStep,
- Ipp16u* pDst, int dstStep,
- IppiSize roiSize, Ipp32s* pMetrics ))
- IPPAPI(IppStatus, ippiDistanceTransform_3x3_8u_C1R, ( const Ipp8u* pSrc, int srcStep,
- Ipp8u* pDst, int dstStep,
- IppiSize roiSize, Ipp32s* pMetrics ))
- IPPAPI(IppStatus, ippiDistanceTransform_5x5_8u_C1R, ( const Ipp8u* pSrc, int srcStep,
- Ipp8u* pDst, int dstStep,
- IppiSize roiSize, Ipp32s* pMetrics ))
- IPPAPI(IppStatus, ippiDistanceTransform_3x3_8u_C1IR, ( Ipp8u* pSrcDst, int srcDstStep,
- IppiSize roiSize, Ipp32s* pMetrics ))
- IPPAPI(IppStatus, ippiDistanceTransform_5x5_8u_C1IR, ( Ipp8u* pSrcDst, int srcDstStep,
- IppiSize roiSize, Ipp32s* pMetrics ))
- IPPAPI(IppStatus, ippiTrueDistanceTransform_8u16u_C1RSfs, ( const Ipp8u* pSrc, int srcStep,
- Ipp16u* pDst, int dstStep,
- IppiSize roiSize, int scaleFactor,
- Ipp8u* pBuffer ))
- IPPAPI(IppStatus, ippiTrueDistanceTransform_8u32f_C1R, ( const Ipp8u* pSrc, int srcStep,
- Ipp32f* pDst, int dstStep,
- IppiSize roiSize, Ipp8u* pBuffer ))
- /*F///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiGetDistanceTransformMask_32f, ippiGetDistanceTransformMask_32s
- // ippiGetDistanceTransformMask (deprecated name of ippiGetDistanceTransformMask_32f)
- //
- // Purpose: Calculates optimal mask for given type of metrics and given mask size
- //
- // Return:
- // ippStsOk Succeed
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsBadArgErr Bad kernel size or norm or maskType
- //
- // Parameters:
- // kerSize Kernel size (3,5)
- // norm Norm type (L1,L2,Inf)
- // maskType Type of distance:
- // 30 - 3x3 aperture for infinify norm,
- // 31 - 3x3 aperture for L1 norm,
- // 32 - 3x3 aperture for L2 norm,
- // 50 - 5x5 aperture for infinify norm,
- // 51 - 5x5 aperture for L1 norm,
- // 52 - 5x5 aperture for L2 norm
- // pMetrics Pointer to resultant metrics
- //F*/
- IPPAPI( IppStatus, ippiGetDistanceTransformMask_32f, ( int kerSize, IppiNorm norm, Ipp32f* pMetrics ))
- IPPAPI( IppStatus, ippiGetDistanceTransformMask_32s, ( int kerSize, IppiNorm norm, Ipp32s* pMetrics ))
- IPPAPI( IppStatus, ippiGetDistanceTransformMask, ( int maskType, Ipp32f* pMetrics ))
- /* ///////////////////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiFastMarchingGetBufferSize_8u32f_C1R
- //
- // Purpose: Get size of external buffer.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width of the image or kernel size are less or equal zero
- //
- // Parameters:
- // roiSize The image ROI size
- // pBufferSize The pointer to the buffer size
- */
- IPPAPI(IppStatus, ippiFastMarchingGetBufferSize_8u32f_C1R, (IppiSize roiSize, int* pBufferSize))
- /* ///////////////////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiFastMarching_8u32f_C1R
- //
- // Purpose: Calculate distance transform by fast marching method
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width of the image or kernel size are less or equal zero
- // ippStsStepErr The steps in images are too small
- // ippStsNotEvenStepErr Step is not multiple of element.
- //
- // Parameters:
- // pSrc Source image
- // srcStep Its step
- // pDst Output image with distances
- // dstStep Its step
- // roiSize The image ROI size
- // radius The radius of external neighborhood
- // pBuffer Pointer to working buffer
- //
- // Note: dst = min((src1+src1+sqrt(2-(src1-src2)**2))/2,min(src1,src2)+1)
- // for four neighbour pairs
- */
- IPPAPI(IppStatus, ippiFastMarching_8u32f_C1R, (const Ipp8u* pSrc, int srcStep, Ipp32f* pDst, int dstStep,
- IppiSize roiSize, Ipp32f radius, Ipp8u* pBuffer))
- /****************************************************************************************\
- * Flood Fill *
- \****************************************************************************************/
- /*F///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiFloodFillGetSize_4Con, ippiFloodFillGetSize_8Con
- // ippiFloodFillGetSize_Grad4Con, ippiFloodFillGetSize_Grad8Con
- //
- // Purpose: The functions calculate size of temporary buffer, required to run
- // one of the corresponding flood fill functions.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width or height of images is less or equal zero
- //
- // Parameters:
- // roiSize ROI size
- // pBufSize Temporary buffer size
- //F*/
- IPPAPI( IppStatus, ippiFloodFillGetSize, ( IppiSize roiSize, int* pBufSize ))
- IPPAPI( IppStatus, ippiFloodFillGetSize_Grad, ( IppiSize roiSize, int* pBufSize ))
- /*F///////////////////////////////////////////////////////////////////////////////////////
- // Names: ippiFloodFill_4Con_8u_C1IR, ippiFloodFill_4Con_32f_C1IR,
- // ippiFloodFill_8Con_8u_C1IR, ippiFloodFill_8Con_32f_C1IR,
- // ippiFloodFill_Grad4Con_8u_C1IR, ippiFloodFill_Grad4Con_32f_C1IR,
- // ippiFloodFill_Grad8Con_8u_C1IR, ippiFloodFill_Grad8Con_32f_C1IR
- // ippiFloodFill_Range4Con_8u_C1IR, ippiFloodFill_Range4Con_32f_C1IR,
- // ippiFloodFill_Range8Con_8u_C1IR, ippiFloodFill_Range8Con_32f_C1IR
- // ippiFloodFill_4Con_8u_C3IR, ippiFloodFill_4Con_32f_C3IR,
- // ippiFloodFill_8Con_8u_C3IR, ippiFloodFill_8Con_32f_C3IR,
- // ippiFloodFill_Grad4Con_8u_C3IR, ippiFloodFill_Grad4Con_32f_C3IR,
- // ippiFloodFill_Grad8Con_8u_C3IR, ippiFloodFill_Grad8Con_32f_C3IR
- // ippiFloodFill_Range4Con_8u_C3IR, ippiFloodFill_Range4Con_32f_C3IR,
- // ippiFloodFill_Range8Con_8u_C3IR, ippiFloodFill_Range8Con_32f_C3IR
- // ippiFloodFill_4Con_16u_C1IR,
- // ippiFloodFill_8Con_16u_C1IR,
- // ippiFloodFill_Grad4Con_16u_C1IR,
- // ippiFloodFill_Grad8Con_16u_C1IR,
- // ippiFloodFill_Range4Con_16u_C1IR,
- // ippiFloodFill_Range8Con_16u_C1IR,
- // ippiFloodFill_4Con_16u_C3IR,
- // ippiFloodFill_8Con_16u_C3IR,
- // ippiFloodFill_Grad4Con_16u_C3IR,
- // ippiFloodFill_Grad8Con_16u_C3IR,
- // ippiFloodFill_Range4Con_16u_C3IR,
- // ippiFloodFill_Range8Con_16u_C3IR,
- //
- // Purpose: The functions fill the seed pixel enewValirons inside which all pixel
- // values are equal to (first 4 funcs) or not far from each other (the others).
- //
- // Return:
- // ippStsNoErr Ok.
- // ippStsNullPtrErr One of pointers is NULL.
- // ippStsSizeErr The width or height of images is less or equal zero.
- // ippStsStepErr The steps in images are too small.
- // ippStsNotEvenStepErr Step is not multiple of element.
- // ippStsOutOfRangeErr Indicates an error condition if the seed point is out of ROI.
- //
- // Parameters:
- // pImage Pointer to ROI of initial image (in the beginning)
- // which is "repainted" during the function action,
- // imageStep Full string length of initial image (in bytes),
- // roi Size of image ROI,
- // seed Coordinates of the seed point inside image ROI,
- // newVal Value to fill with for one-channel data,
- // pNewVal Pointer to the vector containing values to fill with
- // for three-channel data,
- // minDelta Minimum difference between neighbor pixels for one-channel data,
- // maxDelta Maximum difference between neighbor pixels for one-channel data,
- // pMinDelta Pointer to the minimum differences between neighbor pixels for
- // three-channel images,
- // pMaxDelta Pointer to the maximum differences between neighbor pixels for
- // three-channel images,
- // pRegion Pointer to repainted region properties structure,
- // pBuffer Buffer needed for calculations (its size must be
- // calculated by ippiFloodFillGetSize_Grad function).
- //
- // Notes: This function uses a rapid non-recursive algorithm.
- //F*/
- IPPAPI( IppStatus, ippiFloodFill_4Con_8u_C1IR, ( Ipp8u* pImage, int imageStep,
- IppiSize roiSize, IppiPoint seed,
- Ipp8u newVal, IppiConnectedComp* pRegion,
- Ipp8u* pBuffer ))
- IPPAPI( IppStatus, ippiFloodFill_8Con_8u_C1IR, ( Ipp8u* pImage, int imageStep,
- IppiSize roiSize, IppiPoint seed,
- Ipp8u newVal, IppiConnectedComp* pRegion,
- Ipp8u* pBuffer ))
- IPPAPI( IppStatus, ippiFloodFill_4Con_16u_C1IR, ( Ipp16u* pImage, int imageStep,
- IppiSize roiSize, IppiPoint seed,
- Ipp16u newVal, IppiConnectedComp* pRegion,
- Ipp8u* pBuffer ))
- IPPAPI( IppStatus, ippiFloodFill_8Con_16u_C1IR, ( Ipp16u* pImage, int imageStep,
- IppiSize roiSize, IppiPoint seed,
- Ipp16u newVal, IppiConnectedComp* pRegion,
- Ipp8u* pBuffer ))
- IPPAPI( IppStatus, ippiFloodFill_4Con_32f_C1IR, ( Ipp32f* pImage, int imageStep,
- IppiSize roiSize, IppiPoint seed,
- Ipp32f newVal, IppiConnectedComp* pRegion,
- Ipp8u* pBuffer ))
- IPPAPI( IppStatus, ippiFloodFill_8Con_32f_C1IR, ( Ipp32f* pImage, int imageStep,
- IppiSize roiSize, IppiPoint seed,
- Ipp32f newVal, IppiConnectedComp* pRegion,
- Ipp8u* pBuffer ))
- IPPAPI( IppStatus, ippiFloodFill_Grad4Con_8u_C1IR, ( Ipp8u* pImage, int imageStep,
- IppiSize roiSize, IppiPoint seed,
- Ipp8u newVal, Ipp8u minDelta, Ipp8u maxDelta,
- IppiConnectedComp* pRegion, Ipp8u* pBuffer ))
- IPPAPI( IppStatus, ippiFloodFill_Grad8Con_8u_C1IR, ( Ipp8u* pImage, int imageStep,
- IppiSize roiSize, IppiPoint seed,
- Ipp8u newVal, Ipp8u minDelta, Ipp8u maxDelta,
- IppiConnectedComp* pRegion, Ipp8u* pBuffer ))
- IPPAPI( IppStatus, ippiFloodFill_Grad4Con_16u_C1IR, ( Ipp16u* pImage, int imageStep,
- IppiSize roiSize, IppiPoint seed,
- Ipp16u newVal, Ipp16u minDelta, Ipp16u maxDelta,
- IppiConnectedComp* pRegion, Ipp8u* pBuffer ))
- IPPAPI( IppStatus, ippiFloodFill_Grad8Con_16u_C1IR, ( Ipp16u* pImage, int imageStep,
- IppiSize roiSize, IppiPoint seed,
- Ipp16u newVal, Ipp16u minDelta, Ipp16u maxDelta,
- IppiConnectedComp* pRegion, Ipp8u* pBuffer ))
- IPPAPI( IppStatus, ippiFloodFill_Grad4Con_32f_C1IR, ( Ipp32f* pImage, int imageStep,
- IppiSize roiSize, IppiPoint seed,
- Ipp32f newVal, Ipp32f minDelta, Ipp32f maxDelta,
- IppiConnectedComp* pRegion, Ipp8u* pBuffer ))
- IPPAPI( IppStatus, ippiFloodFill_Grad8Con_32f_C1IR, ( Ipp32f* pImage, int imageStep,
- IppiSize roiSize, IppiPoint seed,
- Ipp32f newVal, Ipp32f minDelta, Ipp32f maxDelta,
- IppiConnectedComp* pRegion, Ipp8u* pBuffer ))
- IPPAPI( IppStatus, ippiFloodFill_Range4Con_8u_C1IR, ( Ipp8u* pImage, int imageStep,
- IppiSize roiSize, IppiPoint seed,
- Ipp8u newVal, Ipp8u minDelta, Ipp8u maxDelta,
- IppiConnectedComp* pRegion, Ipp8u* pBuffer ))
- IPPAPI( IppStatus, ippiFloodFill_Range8Con_8u_C1IR, ( Ipp8u* pImage, int imageStep,
- IppiSize roiSize, IppiPoint seed,
- Ipp8u newVal, Ipp8u minDelta, Ipp8u maxDelta,
- IppiConnectedComp* pRegion, Ipp8u* pBuffer ))
- IPPAPI( IppStatus, ippiFloodFill_Range4Con_16u_C1IR, ( Ipp16u* pImage, int imageStep,
- IppiSize roiSize, IppiPoint seed,
- Ipp16u newVal, Ipp16u minDelta, Ipp16u maxDelta,
- IppiConnectedComp* pRegion, Ipp8u* pBuffer ))
- IPPAPI( IppStatus, ippiFloodFill_Range8Con_16u_C1IR, ( Ipp16u* pImage, int imageStep,
- IppiSize roiSize, IppiPoint seed,
- Ipp16u newVal, Ipp16u minDelta, Ipp16u maxDelta,
- IppiConnectedComp* pRegion, Ipp8u* pBuffer ))
- IPPAPI( IppStatus, ippiFloodFill_Range4Con_32f_C1IR, ( Ipp32f* pImage, int imageStep,
- IppiSize roiSize, IppiPoint seed,
- Ipp32f newVal, Ipp32f minDelta, Ipp32f maxDelta,
- IppiConnectedComp* pRegion, Ipp8u* pBuffer ))
- IPPAPI( IppStatus, ippiFloodFill_Range8Con_32f_C1IR, ( Ipp32f* pImage, int imageStep,
- IppiSize roiSize, IppiPoint seed,
- Ipp32f newVal, Ipp32f minDelta, Ipp32f maxDelta,
- IppiConnectedComp* pRegion, Ipp8u* pBuffer ))
- IPPAPI( IppStatus, ippiFloodFill_4Con_8u_C3IR, ( Ipp8u* pImage, int imageStep,
- IppiSize roiSize, IppiPoint seed,
- Ipp8u *pNewVal, IppiConnectedComp* pRegion,
- Ipp8u* pBuffer ))
- IPPAPI( IppStatus, ippiFloodFill_8Con_8u_C3IR, ( Ipp8u* pImage, int imageStep,
- IppiSize roiSize, IppiPoint seed,
- Ipp8u *pNewVal, IppiConnectedComp* pRegion,
- Ipp8u* pBuffer ))
- IPPAPI( IppStatus, ippiFloodFill_4Con_16u_C3IR, ( Ipp16u* pImage, int imageStep,
- IppiSize roiSize, IppiPoint seed,
- Ipp16u *pNewVal, IppiConnectedComp* pRegion,
- Ipp8u* pBuffer ))
- IPPAPI( IppStatus, ippiFloodFill_8Con_16u_C3IR, ( Ipp16u* pImage, int imageStep,
- IppiSize roiSize, IppiPoint seed,
- Ipp16u *pNewVal, IppiConnectedComp* pRegion,
- Ipp8u* pBuffer ))
- IPPAPI( IppStatus, ippiFloodFill_4Con_32f_C3IR, ( Ipp32f* pImage, int imageStep,
- IppiSize roiSize, IppiPoint seed,
- Ipp32f *pNewVal, IppiConnectedComp* pRegion,
- Ipp8u* pBuffer ))
- IPPAPI( IppStatus, ippiFloodFill_8Con_32f_C3IR, ( Ipp32f* pImage, int imageStep,
- IppiSize roiSize, IppiPoint seed,
- Ipp32f *pNewVal, IppiConnectedComp* pRegion,
- Ipp8u* pBuffer ))
- IPPAPI( IppStatus, ippiFloodFill_Grad4Con_8u_C3IR, ( Ipp8u* pImage, int imageStep,
- IppiSize roiSize, IppiPoint seed,
- Ipp8u *pNewVal, Ipp8u *pMinDelta, Ipp8u *pMaxDelta,
- IppiConnectedComp* pRegion, Ipp8u* pBuffer ))
- IPPAPI( IppStatus, ippiFloodFill_Grad8Con_8u_C3IR, ( Ipp8u* pImage, int imageStep,
- IppiSize roiSize, IppiPoint seed,
- Ipp8u *pNewVal, Ipp8u *pMinDelta, Ipp8u *pMaxDelta,
- IppiConnectedComp* pRegion, Ipp8u* pBuffer ))
- IPPAPI( IppStatus, ippiFloodFill_Grad4Con_16u_C3IR, ( Ipp16u* pImage, int imageStep,
- IppiSize roiSize, IppiPoint seed,
- Ipp16u *pNewVal, Ipp16u *pMinDelta, Ipp16u *pMaxDelta,
- IppiConnectedComp* pRegion, Ipp8u* pBuffer ))
- IPPAPI( IppStatus, ippiFloodFill_Grad8Con_16u_C3IR, ( Ipp16u* pImage, int imageStep,
- IppiSize roiSize, IppiPoint seed,
- Ipp16u *pNewVal, Ipp16u *pMinDelta, Ipp16u *pMaxDelta,
- IppiConnectedComp* pRegion, Ipp8u* pBuffer ))
- IPPAPI( IppStatus, ippiFloodFill_Grad4Con_32f_C3IR, ( Ipp32f* pImage, int imageStep,
- IppiSize roiSize, IppiPoint seed,
- Ipp32f *pNewVal, Ipp32f *pMinDelta, Ipp32f *pMaxDelta,
- IppiConnectedComp* pRegion, Ipp8u* pBuffer ))
- IPPAPI( IppStatus, ippiFloodFill_Grad8Con_32f_C3IR, ( Ipp32f* pImage, int imageStep,
- IppiSize roiSize, IppiPoint seed,
- Ipp32f *pNewVal, Ipp32f *pMinDelta, Ipp32f *pMaxDelta,
- IppiConnectedComp* pRegion, Ipp8u* pBuffer ))
- IPPAPI( IppStatus, ippiFloodFill_Range4Con_8u_C3IR, ( Ipp8u* pImage, int imageStep,
- IppiSize roiSize, IppiPoint seed,
- Ipp8u *pNewVal, Ipp8u *pMinDelta, Ipp8u *pMaxDelta,
- IppiConnectedComp* pRegion, Ipp8u* pBuffer ))
- IPPAPI( IppStatus, ippiFloodFill_Range8Con_8u_C3IR, ( Ipp8u* pImage, int imageStep,
- IppiSize roiSize, IppiPoint seed,
- Ipp8u *pNewVal, Ipp8u *pMinDelta, Ipp8u *pMaxDelta,
- IppiConnectedComp* pRegion, Ipp8u* pBuffer ))
- IPPAPI( IppStatus, ippiFloodFill_Range4Con_16u_C3IR, ( Ipp16u* pImage, int imageStep,
- IppiSize roiSize, IppiPoint seed,
- Ipp16u *pNewVal, Ipp16u *pMinDelta, Ipp16u *pMaxDelta,
- IppiConnectedComp* pRegion, Ipp8u* pBuffer ))
- IPPAPI( IppStatus, ippiFloodFill_Range8Con_16u_C3IR, ( Ipp16u* pImage, int imageStep,
- IppiSize roiSize, IppiPoint seed,
- Ipp16u *pNewVal, Ipp16u *pMinDelta, Ipp16u *pMaxDelta,
- IppiConnectedComp* pRegion, Ipp8u* pBuffer ))
- IPPAPI( IppStatus, ippiFloodFill_Range4Con_32f_C3IR, ( Ipp32f* pImage, int imageStep,
- IppiSize roiSize, IppiPoint seed,
- Ipp32f *pNewVal, Ipp32f *pMinDelta, Ipp32f *pMaxDelta,
- IppiConnectedComp* pRegion, Ipp8u* pBuffer ))
- IPPAPI( IppStatus, ippiFloodFill_Range8Con_32f_C3IR, ( Ipp32f* pImage, int imageStep,
- IppiSize roiSize, IppiPoint seed,
- Ipp32f *pNewVal, Ipp32f *pMinDelta, Ipp32f *pMaxDelta,
- IppiConnectedComp* pRegion, Ipp8u* pBuffer ))
- /****************************************************************************************\
- * Motion Templates *
- \****************************************************************************************/
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiUpdateMotionHistory_8u32f_C1IR, ippiUpdateMotionHistory_16u32f_C1IR
- // ippiUpdateMotionHistory_32f_C1IR
- //
- // Purpose: Sets motion history image (MHI) pixels to the current time stamp
- // when the corrensonding pixels in the silhoette image are non zero.
- // Else (silhouette pixels are zero) MHI pixels are
- // cleared if their values are too small (less than timestamp - mhiDuration),
- // i.e. they were updated far ago last time. Else MHI pixels remain unchanged.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width or height of images is less or equal zero
- // ippStsStepErr The steps in images are too small
- // ippStsNotEvenStepErr Step is not multiple of element.
- // ippStsOutOfRangeErr Maximal duration is negative
- //
- // Arguments:
- // pSilhouette The pointer to silhouette image
- // silhStep The step in silhouette image
- // pMHI The pointer to motion history image
- // mhiStep The step in mhi image
- // roiSize ROI size
- // timestamp Current time stamp (milliseconds)
- // mhiDuration Maximal duration of motion track (milliseconds)
- */
- IPPAPI(IppStatus, ippiUpdateMotionHistory_8u32f_C1IR,
- ( const Ipp8u* pSilhouette, int silhStep,
- Ipp32f* pMHI, int mhiStep, IppiSize roiSize,
- Ipp32f timestamp, Ipp32f mhiDuration ))
- IPPAPI(IppStatus, ippiUpdateMotionHistory_16u32f_C1IR,
- ( const Ipp16u* pSilhouette, int silhStep,
- Ipp32f* pMHI, int mhiStep, IppiSize roiSize,
- Ipp32f timestamp, Ipp32f mhiDuration ))
- IPPAPI(IppStatus, ippiUpdateMotionHistory_32f_C1IR,
- ( const Ipp32f* pSilhouette, int silhStep,
- Ipp32f* pMHI, int mhiStep, IppiSize roiSize,
- Ipp32f timestamp, Ipp32f mhiDuration ))
- /****************************************************************************************\
- * Optical Flow *
- \****************************************************************************************/
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiOpticalFlowPyrLKInitAlloc_8u_C1R, ippiOpticalFlowPyrLKInitAlloc_16u_C1R,
- // ippiOpticalFlowPyrLKInitAlloc_32f_C1R
- //
- // Purpose: allocates memory and initializes a structure for pyramidal L-K algorithm
- //
- // Return:
- // ippStsNoErr Indicates no error. Any other value indicates an error or a warning.
- // ippStsNullPtrErr Indicates an error if ppState is NULL.
- // ippStsSizeErr Indicates an error condition if roiSize has a field with zero
- // or negative value or if winSize is equal to or less than 0.
- // ippStsMemAllocErr Memory allocation error
- //
- // Arguments:
- // pState Pointer to initialized structure
- // roi Maximal image ROI
- // winSize Size of search window (2*winSize+1)
- // hint Option to select the algorithmic implementation of the function
- */
- IPPAPI(IppStatus, ippiOpticalFlowPyrLKInitAlloc_8u_C1R, (IppiOptFlowPyrLK_8u_C1R** ppState, IppiSize roiSize,
- int winSize, IppHintAlgorithm hint))
- IPPAPI(IppStatus, ippiOpticalFlowPyrLKInitAlloc_16u_C1R, (IppiOptFlowPyrLK_16u_C1R** ppState, IppiSize roiSize,
- int winSize, IppHintAlgorithm hint))
- IPPAPI(IppStatus, ippiOpticalFlowPyrLKInitAlloc_32f_C1R, (IppiOptFlowPyrLK_32f_C1R** ppState, IppiSize roiSize,
- int winSize, IppHintAlgorithm hint))
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiOpticalFlowPyrLKFree_8u_C1R, ippiOpticalFlowPyrLKFree_16u_C1R,
- // ippiOpticalFlowPyrLKFree_32f_C1R
- //
- // Purpose: Free structure for pyramidal L-K algorithm
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- //
- // Arguments:
- // pState Pointer to initialized structure
- */
- IPPAPI(IppStatus, ippiOpticalFlowPyrLKFree_8u_C1R, (IppiOptFlowPyrLK_8u_C1R* pState))
- IPPAPI(IppStatus, ippiOpticalFlowPyrLKFree_16u_C1R, (IppiOptFlowPyrLK_16u_C1R* pState))
- IPPAPI(IppStatus, ippiOpticalFlowPyrLKFree_32f_C1R, (IppiOptFlowPyrLK_32f_C1R* pState))
- /*F///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiOpticalFlowPyrLK_8u_C1R, ippiOpticalFlowPyrLK_16u_C1R,
- // ippiOpticalFlowPyrLK_32f_C1R
- //
- // Purpose:
- // Pyramidal version of Lucas - Kanade method of optical flow calculation
- //
- // Returns:
- // ippStsNoErr Indicates no error. Any other value indicates an error or a warning
- // ippStsNullPtrErr Indicates an error if one of the specified pointer is NULL
- // ippStsSizeErr Indicates an error condition if numFeat or winSize has zero or
- // negative value.
- // ippStsBadArgErr Indicates an error condition if maxLev or threshold has negative
- // value, or maxIter has zero or negative value.
- //
- // Arguments:
- // pPyr1 Pointer to the first image pyramid (time t)
- // pPyr2 Pointer to the second image pyramid (time t+dt)
- // pPrev Array of points, for which the flow needs to be found
- // pNext Array of new positions of pPrev points
- // pError Array of differences between pPrev and pNext points
- // pStatus Array of result indicator (0 - not calculated)
- // numFeat Number of points to calculate optical flow
- // winSize Size of search window (2*winSize+1)
- // maxLev Pyramid level to start the operation
- // maxIter Maximum number of algorithm iterations for each pyramid level
- // threshold Threshold value to stop new position search
- // pState Pointer to structure
- //
- // Notes: For calculating spatial derivatives 3x3 Scharr operator is used.
- // The values of pixels beyond the image are determined using replication mode.
- //F*/
- IPPAPI(IppStatus, ippiOpticalFlowPyrLK_8u_C1R, (IppiPyramid *pPyr1, IppiPyramid *pPyr2,
- const IppiPoint_32f *pPrev, IppiPoint_32f *pNext, Ipp8s *pStatus, Ipp32f *pError,
- int numFeat, int winSize, int maxLev, int maxIter, Ipp32f threshold,
- IppiOptFlowPyrLK_8u_C1R *pState))
- IPPAPI(IppStatus, ippiOpticalFlowPyrLK_16u_C1R, (IppiPyramid *pPyr1, IppiPyramid *pPyr2,
- const IppiPoint_32f *pPrev, IppiPoint_32f *pNext, Ipp8s *pStatus, Ipp32f *pError,
- int numFeat, int winSize, int maxLev, int maxIter, Ipp32f threshold,
- IppiOptFlowPyrLK_16u_C1R *pState))
- IPPAPI(IppStatus, ippiOpticalFlowPyrLK_32f_C1R, (IppiPyramid *pPyr1, IppiPyramid *pPyr2,
- const IppiPoint_32f *pRrev, IppiPoint_32f *pNext, Ipp8s *pStatus, Ipp32f *pError,
- int numFeat, int winSize, int maxLev, int maxIter, Ipp32f threshold,
- IppiOptFlowPyrLK_32f_C1R *pState))
- /****************************************************************************************\
- * Gaussian Pyramids *
- \****************************************************************************************/
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiPyrUpGetBufSize_Gauss5x5, ippiPyrDownGetBufSize_Gauss5x5
- //
- // Purpose: Calculates cyclic buffer size for pyramids.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr The pbufSize pointer is NULL
- // ippStsSizeErr The value of roiWidth is zerro or negative
- // ippStsDataTypeErr The dataType is not Ipp8u, Ipp8s or Ipp32f
- // ippStsNumChannensErr The channels is not 1 or 3
- //
- // Arguments:
- // roiWidth Width of image ROI in pixels
- // dataType Data type of the source image
- // channels Number of image channels
- // pbufSize Pointer to the variable that return the size of the temporary buffer.
- */
- IPPAPI(IppStatus, ippiPyrUpGetBufSize_Gauss5x5, (int roiWidth, IppDataType dataType,
- int channels, int* bufSize))
- IPPAPI(IppStatus, ippiPyrDownGetBufSize_Gauss5x5, (int roiWidth, IppDataType dataType,
- int channels, int* bufSize))
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiPyrDown_Gauss5x5_8u_C1R, ippiPyrDown_Gauss5x5_8u_C3R,
- // ippiPyrDown_Gauss5x5_8s_C1R, ippiPyrDown_Gauss5x5_8s_C3R,
- // ippiPyrDown_Gauss5x5_32f_C1R, ippiPyrDown_Gauss5x5_32f_C3R,
- //
- // ippiPyrUp_Gauss5x5_8u_C1R, ippiPyrUp_Gauss5x5_8u_C3R,
- // ippiPyrUp_Gauss5x5_8s_C1R, ippiPyrUp_Gauss5x5_8s_C3R,
- // ippiPyrUp_Gauss5x5_32f_C1R, ippiPyrUp_Gauss5x5_32f_C3R,
- //
- // Purpose: Perform downsampling/upsampling of the image with 5x5 gaussian.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width or height of images is less or equal zero.
- // ippStsStepErr Step is too small to fit image.
- // ippStsNotEvenStepErr Step is not multiple of element.
- //
- // Arguments:
- // pSrc Pointer to source image
- // srcStep Step in bytes through the source image
- // pDst Pointer to destination image
- // dstStep Step in bytes through the destination image
- // roiSize Size of the source image ROI in pixel. Destination image width and
- // height will be twice large (PyrUp)
- // or twice smaller (PyrDown)
- // pBuffer Pointer to the the temporary buffer of the size calculated by
- // ippPyrUpGetSize_Gauss_5x5 or ippPyrDownGetSize_Gauss_5x5
- */
- IPPAPI(IppStatus, ippiPyrUp_Gauss5x5_8u_C1R, (const Ipp8u* pSrc, int srcStep,
- Ipp8u* pDst, int dstStep,
- IppiSize roiSize, Ipp8u* pBuffer ))
- IPPAPI(IppStatus, ippiPyrUp_Gauss5x5_8u_C3R, (const Ipp8u* pSrc, int srcStep,
- Ipp8u* pDst, int dstStep,
- IppiSize roiSize, Ipp8u* pBuffer ))
- IPPAPI(IppStatus, ippiPyrUp_Gauss5x5_8s_C1R, (const Ipp8s* pSrc, int srcStep,
- Ipp8s* pDst, int dstStep,
- IppiSize roiSize, Ipp8u* pBuffer ))
- IPPAPI(IppStatus, ippiPyrUp_Gauss5x5_8s_C3R, (const Ipp8s* pSrc, int srcStep,
- Ipp8s* pDst, int dstStep,
- IppiSize roiSize, Ipp8u* pBuffer ))
- IPPAPI(IppStatus, ippiPyrUp_Gauss5x5_32f_C1R, (const Ipp32f* pSrc, int srcStep,
- Ipp32f* pDst, int dstStep,
- IppiSize roiSize, Ipp8u* pBuffer ))
- IPPAPI(IppStatus, ippiPyrUp_Gauss5x5_32f_C3R, (const Ipp32f* pSrc, int srcStep,
- Ipp32f* pDst, int dstStep,
- IppiSize roiSize, Ipp8u* pBuffer ))
- IPPAPI(IppStatus, ippiPyrDown_Gauss5x5_8u_C1R, (const Ipp8u* pSrc, int srcStep,
- Ipp8u* pDst, int dstStep,
- IppiSize roiSize, Ipp8u* pBuffer ))
- IPPAPI(IppStatus, ippiPyrDown_Gauss5x5_8u_C3R, (const Ipp8u* pSrc, int srcStep,
- Ipp8u* pDst, int dstStep,
- IppiSize roiSize, Ipp8u* pBuffer ))
- IPPAPI(IppStatus, ippiPyrDown_Gauss5x5_8s_C1R, (const Ipp8s* pSrc, int srcStep,
- Ipp8s* pDst, int dstStep,
- IppiSize roiSize, Ipp8u* pBuffer ))
- IPPAPI(IppStatus, ippiPyrDown_Gauss5x5_8s_C3R, (const Ipp8s* pSrc, int srcStep,
- Ipp8s* pDst, int dstStep,
- IppiSize roiSize, Ipp8u* pBuffer ))
- IPPAPI(IppStatus, ippiPyrDown_Gauss5x5_32f_C1R, (const Ipp32f* pSrc, int srcStep,
- Ipp32f* pDst, int dstStep,
- IppiSize roiSize, Ipp8u* pBuffer ))
- IPPAPI(IppStatus, ippiPyrDown_Gauss5x5_32f_C3R, (const Ipp32f* pSrc, int srcStep,
- Ipp32f* pDst, int dstStep,
- IppiSize roiSize, Ipp8u* pBuffer ))
- /****************************************************************************************\
- * Universal Pyramids *
- \****************************************************************************************/
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiPyramidInitAlloc, ippiPyramidFree
- //
- // Purpose: Initializes structure for pyramids, calculates ROI for layers,
- // allocates images for layers.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width or height of images is less or equal zero
- // ippStsBadArgErr Bad rate or level
- // ippStsMemAllocErr Memory allocation error
- //
- // Arguments:
- // ppPyr Pointer to the pointer to the pyramid structure.
- // pPyr Pointer to the pyramid structure.
- // level Maximal number pyramid level.
- // roiSize Lowest level image ROI size.
- // rate Neighbour levels ratio (1<rate<=10)
- */
- IPPAPI(IppStatus, ippiPyramidInitAlloc,(IppiPyramid** ppPyr, int level, IppiSize roiSize, Ipp32f rate))
- IPPAPI(IppStatus, ippiPyramidFree,(IppiPyramid* pPyr))
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiPyramidLayerDownInitAlloc_8u_C1R, ippiPyramidLayerDownInitAlloc_8u_C3R
- // ippiPyramidLayerDownInitAlloc_16u_C1R, ippiPyramidLayerDownInitAlloc_16u_C3R
- // ippiPyramidLayerDownInitAlloc_32f_C1R, ippiPyramidLayerDownInitAlloc_32f_C3R
- // ippiPyramidLayerUpInitAlloc_8u_C1R, ippiPyramidLayerUpInitAlloc_8u_C3R
- // ippiPyramidLayerUpInitAlloc_16u_C1R, ippiPyramidLayerUpInitAlloc_16u_C3R
- // ippiPyramidLayerUpInitAlloc_32f_C1R, ippiPyramidLayerUpInitAlloc_32f_C3R
- //
- // Purpose: Initializes structure for pyramid layer calculation
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width or height of images is less or equal zero
- // ippStsBadArgErr Bad mode, rate or kernel size
- // ippStsMemAllocErr Memory allocation error
- //
- // Arguments:
- // ppState Pointer to the pointer to initialized structure
- // srcRoi Source image ROI size.
- // dstRoi Destination image ROI size.
- // rate Neighbour levels ratio (1<rate<4)
- // pKernel Separable symmetric kernel of odd length
- // kerSize Kernel size
- // mode IPPI_INTER_LINEAR - bilinear interpolation
- */
- IPPAPI(IppStatus, ippiPyramidLayerDownInitAlloc_8u_C1R, (IppiPyramidDownState_8u_C1R** ppState, IppiSize srcRoi,
- Ipp32f rate, Ipp16s* pKernel, int kerSize, int mode))
- IPPAPI(IppStatus, ippiPyramidLayerDownInitAlloc_16u_C1R,(IppiPyramidDownState_16u_C1R** ppState, IppiSize srcRoi,
- Ipp32f rate, Ipp16s* pKernel, int kerSize, int mode))
- IPPAPI(IppStatus, ippiPyramidLayerDownInitAlloc_32f_C1R,(IppiPyramidDownState_32f_C1R** ppState, IppiSize srcRoi,
- Ipp32f rate, Ipp32f* pKernel, int kerSize, int mode))
- IPPAPI(IppStatus, ippiPyramidLayerDownInitAlloc_8u_C3R, (IppiPyramidDownState_8u_C3R** ppState, IppiSize srcRoi,
- Ipp32f rate, Ipp16s* pKernel, int kerSize, int mode))
- IPPAPI(IppStatus, ippiPyramidLayerDownInitAlloc_16u_C3R,(IppiPyramidDownState_16u_C3R** ppState, IppiSize srcRoi,
- Ipp32f rate, Ipp16s* pKernel, int kerSize, int mode))
- IPPAPI(IppStatus, ippiPyramidLayerDownInitAlloc_32f_C3R,(IppiPyramidDownState_32f_C3R** ppState, IppiSize srcRoi,
- Ipp32f rate, Ipp32f* pKernel, int kerSize, int mode))
- IPPAPI(IppStatus, ippiPyramidLayerUpInitAlloc_8u_C1R, (IppiPyramidUpState_8u_C1R** ppState, IppiSize dstRoi,
- Ipp32f rate, Ipp16s* pKernel, int kerSize, int mode))
- IPPAPI(IppStatus, ippiPyramidLayerUpInitAlloc_16u_C1R,(IppiPyramidUpState_16u_C1R** ppState, IppiSize dstRoi,
- Ipp32f rate, Ipp16s* pKernel, int kerSize, int mode))
- IPPAPI(IppStatus, ippiPyramidLayerUpInitAlloc_32f_C1R,(IppiPyramidUpState_32f_C1R** ppState, IppiSize dstRoi,
- Ipp32f rate, Ipp32f* pKernel, int kerSize, int mode))
- IPPAPI(IppStatus, ippiPyramidLayerUpInitAlloc_8u_C3R, (IppiPyramidUpState_8u_C3R** ppState, IppiSize dstRoi,
- Ipp32f rate, Ipp16s* pKernel, int kerSize, int mode))
- IPPAPI(IppStatus, ippiPyramidLayerUpInitAlloc_16u_C3R,(IppiPyramidUpState_16u_C3R** ppState, IppiSize dstRoi,
- Ipp32f rate, Ipp16s* pKernel, int kerSize, int mode))
- IPPAPI(IppStatus, ippiPyramidLayerUpInitAlloc_32f_C3R,(IppiPyramidUpState_32f_C3R** ppState, IppiSize dstRoi,
- Ipp32f rate, Ipp32f* pKernel, int kerSize, int mode))
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiPyramidLayerDownFree_8u_C1R, ippiPyramidLayerDownFree_8u_C3R
- // ippiPyramidLayerDownFree_16u_C1R, ippiPyramidLayerDownFree_16u_C3R
- // ippiPyramidLayerDownFree_32f_C1R, ippiPyramidLayerDownFree_32f_C3R
- // ippiPyramidLayerUpFree_8u_C1R, ippiPyramidLayerUpFree_8u_C3R
- // ippiPyramidLayerUpFree_16u_C1R, ippiPyramidLayerUpFree_16u_C3R
- // ippiPyramidLayerUpFree_32f_C1R, ippiPyramidLayerUpFree_32f_C3R
- //
- // Purpose: Initializes structure for pyramid layer calculation
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- //
- // Arguments:
- // pState Pointer to initialized structure
- */
- IPPAPI(IppStatus, ippiPyramidLayerDownFree_8u_C1R, (IppiPyramidDownState_8u_C1R* pState))
- IPPAPI(IppStatus, ippiPyramidLayerDownFree_16u_C1R,(IppiPyramidDownState_16u_C1R* pState))
- IPPAPI(IppStatus, ippiPyramidLayerDownFree_32f_C1R,(IppiPyramidDownState_32f_C1R* pState))
- IPPAPI(IppStatus, ippiPyramidLayerDownFree_8u_C3R, (IppiPyramidDownState_8u_C3R* pState))
- IPPAPI(IppStatus, ippiPyramidLayerDownFree_16u_C3R,(IppiPyramidDownState_16u_C3R* pState))
- IPPAPI(IppStatus, ippiPyramidLayerDownFree_32f_C3R,(IppiPyramidDownState_32f_C3R* pState))
- IPPAPI(IppStatus, ippiPyramidLayerUpFree_8u_C1R, (IppiPyramidUpState_8u_C1R* pState))
- IPPAPI(IppStatus, ippiPyramidLayerUpFree_16u_C1R,(IppiPyramidUpState_16u_C1R* pState))
- IPPAPI(IppStatus, ippiPyramidLayerUpFree_32f_C1R,(IppiPyramidUpState_32f_C1R* pState))
- IPPAPI(IppStatus, ippiPyramidLayerUpFree_8u_C3R, (IppiPyramidUpState_8u_C3R* pState))
- IPPAPI(IppStatus, ippiPyramidLayerUpFree_16u_C3R,(IppiPyramidUpState_16u_C3R* pState))
- IPPAPI(IppStatus, ippiPyramidLayerUpFree_32f_C3R,(IppiPyramidUpState_32f_C3R* pState))
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiGetPyramidDownROI, ippiGetPyramidUpROI
- //
- // Purpose: Calculate possible size of destination ROI.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr Wrong src roi
- // ippStsBadArgErr Wrong rate
- //
- // Arguments:
- // srcRoi Source image ROI size.
- // pDstRoi Pointer to destination image ROI size (down).
- // pDstRoiMin Pointer to minimal destination image ROI size (up).
- // pDstRoiMax Pointer to maximal destination image ROI size (up).
- // rate Neighbour levels ratio (1<rate<=10)
- //
- // Notes: For up case destination size belongs to interval
- // max((int)((float)((src-1)*rate)),src+1)<=dst<=
- // max((int)((float)(src)*rate)),src+1)
- */
- IPPAPI(IppStatus, ippiGetPyramidDownROI,(IppiSize srcRoi, IppiSize *pDstRoi, Ipp32f rate))
- IPPAPI(IppStatus, ippiGetPyramidUpROI,(IppiSize srcRoi, IppiSize *pDstRoiMin, IppiSize *pDstRoiMax, Ipp32f rate))
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiPyramidLayerDown_8u_C1R, ippiPyramidLayerDown_16u_C1R, ippiPyramidLayerDown_32f_C1R
- // ippiPyramidLayerDown_8u_C3R, ippiPyramidLayerDown_16u_C3R, ippiPyramidLayerDown_32f_C3R
- // ippiPyramidLayerUp_8u_C1R, ippiPyramidLayerUp_16u_C1R, ippiPyramidLayerUp_32f_C1R
- // ippiPyramidLayerUp_8u_C3R, ippiPyramidLayerUp_16u_C3R, ippiPyramidLayerUp_32f_C3R
- //
- // Purpose: Perform downsampling/upsampling of the image with 5x5 gaussian.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of the specified pointers is NULL
- // ippStsSizeErr The srcRoiSize or dstRoiSize has a fild with zero or negativ value
- // ippStsStepErr The steps in images are too small
- // ippStsBadArgErr pState->rate has wrong value
- // ippStsNotEvenStepErr One of the step values is not divisibly by 4 for floating-point
- // images, or by 2 for short-integer images.
- // Arguments:
- // pSrc Pointer to the source image
- // srcStep Step in byte through the source image
- // srcRoiSize Size of the source image ROI in pixel.
- // dstRoiSize Size of the destination image ROI in pixel.
- // pDst Pointer to destination image
- // dstStep Step in byte through the destination image
- // pState Pointer to the pyramid layer structure
- */
- IPPAPI(IppStatus, ippiPyramidLayerDown_8u_C1R, (const Ipp8u* pSrc, int srcStep, IppiSize srcRoiSize,
- Ipp8u* pDst, int dstStep, IppiSize dstRoiSize, IppiPyramidDownState_8u_C1R* pState))
- IPPAPI(IppStatus, ippiPyramidLayerDown_8u_C3R, (const Ipp8u* pSrc, int srcStep, IppiSize srcRoiSize,
- Ipp8u* pDst, int dstStep, IppiSize dstRoiSize, IppiPyramidDownState_8u_C3R* pState))
- IPPAPI(IppStatus, ippiPyramidLayerDown_16u_C1R,(const Ipp16u* pSrc, int srcStep, IppiSize srcRoiSize,
- Ipp16u* pDst, int dstStep, IppiSize dstRoiSize, IppiPyramidDownState_16u_C1R* pState))
- IPPAPI(IppStatus, ippiPyramidLayerDown_16u_C3R,(const Ipp16u* pSrc, int srcStep, IppiSize srcRoiSize,
- Ipp16u* pDst, int dstStep, IppiSize dstRoiSize, IppiPyramidDownState_16u_C3R* pState))
- IPPAPI(IppStatus, ippiPyramidLayerDown_32f_C1R,(const Ipp32f* pSrc, int srcStep, IppiSize srcRoiSize,
- Ipp32f* pDst, int dstStep, IppiSize dstRoiSize, IppiPyramidDownState_32f_C1R* pState))
- IPPAPI(IppStatus, ippiPyramidLayerDown_32f_C3R,(const Ipp32f* pSrc, int srcStep, IppiSize srcRoiSize,
- Ipp32f* pDst, int dstStep, IppiSize dstRoiSize, IppiPyramidDownState_32f_C3R* pState))
- IPPAPI(IppStatus, ippiPyramidLayerUp_8u_C1R, (const Ipp8u* pSrc, int srcStep, IppiSize srcRoiSize,
- Ipp8u* pDst, int dstStep, IppiSize dstRoiSize, IppiPyramidUpState_8u_C1R* pState))
- IPPAPI(IppStatus, ippiPyramidLayerUp_8u_C3R, (const Ipp8u* pSrc, int srcStep, IppiSize srcRoiSize,
- Ipp8u* pDst, int dstStep, IppiSize dstRoiSize, IppiPyramidUpState_8u_C3R* pState))
- IPPAPI(IppStatus, ippiPyramidLayerUp_16u_C1R,(const Ipp16u* pSrc, int srcStep, IppiSize srcRoiSize,
- Ipp16u* pDst, int dstStep, IppiSize dstRoiSize, IppiPyramidUpState_16u_C1R* pState))
- IPPAPI(IppStatus, ippiPyramidLayerUp_16u_C3R,(const Ipp16u* pSrc, int srcStep, IppiSize srcRoiSize,
- Ipp16u* pDst, int dstStep, IppiSize dstRoiSize, IppiPyramidUpState_16u_C3R* pState))
- IPPAPI(IppStatus, ippiPyramidLayerUp_32f_C1R,(const Ipp32f* pSrc, int srcStep, IppiSize srcRoiSize,
- Ipp32f* pDst, int dstStep, IppiSize dstRoiSize, IppiPyramidUpState_32f_C1R* pState))
- IPPAPI(IppStatus, ippiPyramidLayerUp_32f_C3R,(const Ipp32f* pSrc, int srcStep, IppiSize srcRoiSize,
- Ipp32f* pDst, int dstStep, IppiSize dstRoiSize, IppiPyramidUpState_32f_C3R* pState))
- /****************************************************************************************\
- * Haar Classifier *
- \****************************************************************************************/
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiHaarClassifierInitAlloc_32f, ippiTiltedHaarClassifierInitAlloc_32f
- // ippiHaarClassifierInitAlloc_32s, ippiTiltedHaarClassifierInitAlloc_32s
- //
- // Purpose: Allocates and initializes memory for the stage of the Haar classifier
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The number of classifiers or features is less or equal zero
- // ippStsbadArgErr The bad feature rectangular
- // ippStsMemAllocErr Memory allocation error
- //
- // Arguments:
- // pState The pointer to the pointer to the Haar classifier structure.
- // pFeature The pointer to the array of features.
- // pWeight The pointer to the array of feature weights.
- // pThreshold The pointer to the array of classifier thresholds [length].
- // pVal1, pVal2 Pointers to arrays of classifier results [length].
- // pNum The pointer to the array of classifier lengths [length].
- // length The number of classifiers in the stage.
- //
- // Notes: For integer version feature weights pWeight are in Q0, classifier thresholds
- // pThreshold are in QT (see ApplyHaarClassifier), pVal1 and pVal2 are scale as
- // stage thresholds threshold of ApplyHaarClassifier function
- */
- IPPAPI(IppStatus, ippiHaarClassifierInitAlloc_32f, (IppiHaarClassifier_32f **pState,
- const IppiRect* pFeature, const Ipp32f* pWeight, const Ipp32f* pThreshold,
- const Ipp32f* pVal1, const Ipp32f* pVal2, const int* pNum, int length))
- IPPAPI(IppStatus, ippiTiltedHaarClassifierInitAlloc_32f, (IppiHaarClassifier_32f **pState,
- const IppiRect* pFeature, const Ipp32f* pWeight, const Ipp32f* pThreshold,
- const Ipp32f* pVal1, const Ipp32f* pVal2, const int* pNum, int length))
- IPPAPI(IppStatus, ippiHaarClassifierInitAlloc_32s, (IppiHaarClassifier_32s **pState,
- const IppiRect* pFeature, const Ipp32s* pWeight, const Ipp32s* pThreshold,
- const Ipp32s* pVal1, const Ipp32s* pVal2, const int* pNum, int length))
- IPPAPI(IppStatus, ippiTiltedHaarClassifierInitAlloc_32s, (IppiHaarClassifier_32s **pState,
- const IppiRect* pFeature, const Ipp32s* pWeight, const Ipp32s* pThreshold,
- const Ipp32s* pVal1, const Ipp32s* pVal2, const int* pNum, int length))
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiHaarClassifierFree_32f, ippiHaarClassifierFree_32s
- //
- // Purpose: Free structure for Haar classifier
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- //
- // Arguments:
- // pState Pointer to the structure to be freed
- */
- IPPAPI(IppStatus, ippiHaarClassifierFree_32f,(IppiHaarClassifier_32f *pState))
- IPPAPI(IppStatus, ippiHaarClassifierFree_32s,(IppiHaarClassifier_32s *pState))
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiTiltHaarFeatures_32f, ippiTiltHaarFeatures_32s
- //
- // Purpose: Tilts marked feature on -45 degree
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- //
- // Arguments:
- // pMask The mask of feature to tilt.
- // flag 1 - left bottom -45 degree
- // 0 - left top +45 degree
- // pState The pointer to the Haar classifier structure.
- //
- // Notes: The mask length is equal to the number of classifiers in the classifier
- // If pMask[i] != 0 i-th feature is tilted
- // Classifiers with tilted features require two input integral images and
- // can be used by rippiApplyMixedHaarClassifier functions
- */
- IPPAPI(IppStatus, ippiTiltHaarFeatures_32f, (const Ipp8u *pMask, int flag, IppiHaarClassifier_32f *pState))
- IPPAPI(IppStatus, ippiTiltHaarFeatures_32s, (const Ipp8u *pMask, int flag, IppiHaarClassifier_32s *pState))
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiGetHaarClassifierSize_32f, ippiGetHaarClassifierSize_32s
- //
- // Purpose: Returns the size of the Haar classifier.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- //
- // Arguments:
- // pState Pointer to the Haar classifier structure.
- // pSize Pointer to the returned value of Haar classifier size.
- */
- IPPAPI(IppStatus, ippiGetHaarClassifierSize_32f, (IppiHaarClassifier_32f* pState, IppiSize* pSize))
- IPPAPI(IppStatus, ippiGetHaarClassifierSize_32s, (IppiHaarClassifier_32s* pState, IppiSize* pSize))
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiApplyHaarClassifier_32f_C1R, ippiApplyMixedHaarClassifier_32f_C1R,
- // ippiApplyHaarClassifier_32s32f_C1R, ippiApplyMixedHaarClassifier_32s32f_C1R,
- // ippiApplyHaarClassifier_32s_C1RSfs, ippiApplyMixedHaarClassifier_32s_C1RSfs
- //
- // Purpose: Applies the stage of Haar classifiers to the image
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The number of classifiers or features is less or equal zero
- // ippStsSizeErr The width or height of images is less or equal zero
- // ippStsStepErr The steps in images are too small
- // ippStsNotEvenStepErr Step is not multiple of element.
- //
- // Arguments:
- // pSrc The pointer to the source image of integrals.
- // srcStep The step in bytes through the source image.
- // pNorm The pointer to the source image of norm factors.
- // normStep The step in bytes through the image of norm factors.
- // pMask The pointer to the source and destination image of classification decisions.
- // maskStep The step in bytes through the image of classification decisions.
- // pPositive The pointer to the number of positive decisions.
- // roiSize The size of source and destination images ROI in pixels.
- // threshold The stage threshold value.
- // pState The pointer to the Haar classifier structure.
- // scaleFactor Scale factor for classifier threshold*norm, <= 0
- */
- IPPAPI(IppStatus, ippiApplyHaarClassifier_32f_C1R, (const Ipp32f* pSrc, int srcStep,
- const Ipp32f* pNorm, int normStep, Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int *pPositive, Ipp32f threshold,
- IppiHaarClassifier_32f *pState))
- IPPAPI(IppStatus, ippiApplyHaarClassifier_32s32f_C1R, (const Ipp32s* pSrc, int srcStep,
- const Ipp32f* pNorm, int normStep, Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int *pPositive, Ipp32f threshold,
- IppiHaarClassifier_32f *pState))
- IPPAPI(IppStatus, ippiApplyHaarClassifier_32s_C1RSfs, (const Ipp32s* pSrc, int srcStep,
- const Ipp32s* pNorm, int normStep, Ipp8u* pMask, int maskStep,
- IppiSize roiSize, int *pPositive, Ipp32s threshold,
- IppiHaarClassifier_32s *pState, int scaleFactor))
- IPPAPI(IppStatus, ippiApplyMixedHaarClassifier_32f_C1R, (const Ipp32f* pSrc, int srcStep,
- const Ipp32f* pTilt, int tiltStep, const Ipp32f* pNorm, int normStep,
- Ipp8u* pMask, int maskStep, IppiSize roiSize, int *pPositive, Ipp32f threshold,
- IppiHaarClassifier_32f *pState))
- IPPAPI(IppStatus, ippiApplyMixedHaarClassifier_32s32f_C1R, (const Ipp32s* pSrc, int srcStep,
- const Ipp32s* pTilt, int tiltStep, const Ipp32f* pNorm, int normStep,
- Ipp8u* pMask, int maskStep, IppiSize roiSize, int *pPositive, Ipp32f threshold,
- IppiHaarClassifier_32f *pState))
- IPPAPI(IppStatus, ippiApplyMixedHaarClassifier_32s_C1RSfs, (const Ipp32s* pSrc, int srcStep,
- const Ipp32s* pTilt, int tiltStep, const Ipp32s* pNorm, int normStep,
- Ipp8u* pMask, int maskStep, IppiSize roiSize, int *pPositive, Ipp32s threshold,
- IppiHaarClassifier_32s *pState, int scaleFactor))
- /****************************************************************************************\
- * Correction of Camera Distortions *
- \****************************************************************************************/
- /*F///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiUndistortGetSize
- //
- // Purpose: calculate the buffer size for Undistort functions
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width or height of images is less or equal zero
- //
- // Parameters:
- // roiSize Maximal image size
- // pBufsize Pointer to work buffer size
- //
- // Notes:
- //F*/
- IPPAPI(IppStatus, ippiUndistortGetSize, (IppiSize roiSize, int *pBufsize))
- /*F///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiCreateMapCameraUndistort_32f_C1R
- //
- // Purpose: initialize x and y maps for undistortion by ippiRemap function
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr pxMap or pyMap is NULL
- // ippStsSizeErr The width or height of images is less or equal zero
- // ippStsStepErr The steps in images are too small
- // ippStsNotEvenStepErr Step is not multiple of element.
- // ippStsBadArgErr Bad fx or fy
- //
- // Parameters:
- // pxMap Pointer to x map (result, free by ippiFree)
- // xStep Pointer to x map row step (result)
- // pyMap Pointer to x map (result, free by ippiFree)
- // yStep Pointer to x map row step (result)
- // roiSize Maximal image size
- // fx, fy Focal lengths
- // cx, cy Coordinates of principal point
- // k1, k2 Coeffs of radial distortion
- // p1, p2 Coeffs of tangential distortion
- // pBuffer Pointer to work buffer
- //
- // Notes:
- // fx, fy != 0
- //F*/
- IPPAPI(IppStatus, ippiCreateMapCameraUndistort_32f_C1R, (Ipp32f *pxMap, int xStep,
- Ipp32f *pyMap, int yStep, IppiSize roiSize, Ipp32f fx, Ipp32f fy, Ipp32f cx, Ipp32f cy,
- Ipp32f k1, Ipp32f k2, Ipp32f p1, Ipp32f p2, Ipp8u *pBuffer))
- /*F///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiUndistortRadial_8u_C1R, ippiUndistortRadial_8u_C3R,
- // ippiUndistortRadial_16u_C1R, ippiUndistortRadial_16u_C3R
- // ippiUndistortRadial_32f_C1R, ippiUndistortRadial_32f_C3R
- //
- // Purpose: correct camera distortion
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr pSrc or pDst is NULL
- // ippStsSizeErr The width or height of images is less or equal zero
- // ippStsStepErr The steps in images are too small
- // ippStsNotEvenStepErr Step is not multiple of element.
- // ippStsBadArgErr Bad fx or fy
- //
- // Parameters:
- // pSrc Source image
- // srcStep Step in source image
- // pDst Pointer to destination image
- // dstStep Step in destination image
- // roiSize Source and destination image ROI size.
- // fx, fy Focal lengths
- // cx, cy Coordinates of principal point
- // k1, k2 Coeffs of radial distortion
- // pBuffer Pointer to work buffer
- //
- // Notes:
- //F*/
- IPPAPI(IppStatus, ippiUndistortRadial_8u_C1R, (const Ipp8u* pSrc, int srcStep,
- Ipp8u* pDst, int dstStep, IppiSize roiSize, Ipp32f fx, Ipp32f fy,
- Ipp32f cx, Ipp32f cy, Ipp32f k1, Ipp32f k2, Ipp8u *pBuffer))
- IPPAPI(IppStatus, ippiUndistortRadial_16u_C1R, (const Ipp16u* pSrc, int srcStep,
- Ipp16u* pDst, int dstStep, IppiSize roiSize, Ipp32f fx, Ipp32f fy,
- Ipp32f cx, Ipp32f cy, Ipp32f k1, Ipp32f k2, Ipp8u *pBuffer))
- IPPAPI(IppStatus, ippiUndistortRadial_32f_C1R, (const Ipp32f* pSrc, int srcStep,
- Ipp32f* pDst, int dstStep, IppiSize roiSize, Ipp32f fx, Ipp32f fy,
- Ipp32f cx, Ipp32f cy, Ipp32f k1, Ipp32f k2, Ipp8u *pBuffer))
- IPPAPI(IppStatus, ippiUndistortRadial_8u_C3R, (const Ipp8u* pSrc, int srcStep,
- Ipp8u* pDst, int dstStep, IppiSize roiSize, Ipp32f fx, Ipp32f fy,
- Ipp32f cx, Ipp32f cy, Ipp32f k1, Ipp32f k2, Ipp8u *pBuffer))
- IPPAPI(IppStatus, ippiUndistortRadial_16u_C3R, (const Ipp16u* pSrc, int srcStep,
- Ipp16u* pDst, int dstStep, IppiSize roiSize, Ipp32f fx, Ipp32f fy,
- Ipp32f cx, Ipp32f cy, Ipp32f k1, Ipp32f k2, Ipp8u *pBuffer))
- IPPAPI(IppStatus, ippiUndistortRadial_32f_C3R, (const Ipp32f* pSrc, int srcStep,
- Ipp32f* pDst, int dstStep, IppiSize roiSize, Ipp32f fx, Ipp32f fy,
- Ipp32f cx, Ipp32f cy, Ipp32f k1, Ipp32f k2, Ipp8u *pBuffer))
- /*F/////////////////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiGradientColorToGray_8u_C3C1R,
- // ippiGradientColorToGray_16u_C3C1R,
- // ippiGradientColorToGray_32f_C3C1R
- //
- // Purpose: Calculate gray gradient from 3-channel gradient image.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width or height of images is less or equal zero
- // ippStsStepErr The steps in images are too small
- //
- // Parameters:
- // pSrc The source image
- // srcStep Its step
- // pDst The destination image
- // dstStep Its step
- // roiSize ROI size
- // norm The norm type
- // rippiNormInf = max(|a|,|b|,|c|)
- // rippiNormL1 = (|a|+|b|+|c|)/3
- // rippiNormL2 = sqrt((a*a+b*b+c*c)/3)
- //
- // Note: For integer flavors, the result is scaled to the full range of the
- // destination data type
- //F*/
- IPPAPI(IppStatus, ippiGradientColorToGray_8u_C3C1R, (const Ipp8u* pSrc, int srcStep,
- Ipp8u* pDst, int dstStep, IppiSize roiSize, IppiNorm norm))
- IPPAPI(IppStatus, ippiGradientColorToGray_16u_C3C1R, (const Ipp16u* pSrc, int srcStep,
- Ipp16u* pDst, int dstStep, IppiSize roiSize, IppiNorm norm))
- IPPAPI(IppStatus, ippiGradientColorToGray_32f_C3C1R, (const Ipp32f* pSrc, int srcStep,
- Ipp32f* pDst, int dstStep, IppiSize roiSize, IppiNorm norm))
- /* ///////////////////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiInpaintInitAlloc_8u_C1R, ippiInpaintInitAlloc_8u_C3R
- //
- // Purpose: allocates memory and initializes a structure for direct inpainting algorithm
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width of the image are less or equal zero
- // ippStsStepErr The steps in images are too small
- // ippStsNotEvenStepErr Step is not multiple of element
- // ippStsBadArgErr Wrong radius or flags
- //
- // Parameters:
- // ppState Pointer to pointer to inpainting structure
- // pDist Distance image
- // distStep Its step
- // pMask Distance image
- // maskStep Its step
- // roiSize The image ROI size
- // radius Neighborhood radius (dist<=radius pixels are processed)
- // flags Inpainting flags
- // IPP_INPAINT_TELEA Telea algorithm is used
- // IPP_INPAINT_NS Navier-Stokes equation is used
- */
- IPPAPI(IppStatus, ippiInpaintInitAlloc_8u_C1R, (IppiInpaintState_8u_C1R** ppState, const Ipp32f* pDist,
- int distStep, const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, Ipp32f radius, IppiInpaintFlag flags))
- IPPAPI(IppStatus, ippiInpaintInitAlloc_8u_C3R, (IppiInpaintState_8u_C3R** ppState, const Ipp32f* pDist,
- int distStep, const Ipp8u* pMask, int maskStep,
- IppiSize roiSize, Ipp32f radius, IppiInpaintFlag flags))
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiInpaintFree_8u_C1R, ippiInpaintFree_8u_C3R
- //
- // Purpose: Free structure for inpainting algorithm
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- //
- // Arguments:
- // pState Pointer to structure to free
- */
- IPPAPI(IppStatus, ippiInpaintFree_8u_C1R, (IppiInpaintState_8u_C1R* pState))
- IPPAPI(IppStatus, ippiInpaintFree_8u_C3R, (IppiInpaintState_8u_C3R* pState))
- /* ///////////////////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiInpaint_8u_C1R, ippiInpaint_8u_C3R
- //
- // Purpose: restores damaged image area by direct inpainting
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width of the image are less or equal zero or different from initalloc
- // ippStsStepErr The steps in images are too small
- //
- // Parameters:
- // pSrc Source image
- // srcStep Its step
- // pDst Destination image
- // dstStep Its step
- // roiSize The image ROI size
- // pState Pointer to inpainting structure
- */
- IPPAPI(IppStatus, ippiInpaint_8u_C1R, (const Ipp8u* pSrc, int srcStep, Ipp8u* pDst, int dstStep,
- IppiSize roiSize, IppiInpaintState_8u_C1R* pState))
- IPPAPI(IppStatus, ippiInpaint_8u_C3R, (const Ipp8u* pSrc, int srcStep, Ipp8u* pDst, int dstStep,
- IppiSize roiSize, IppiInpaintState_8u_C1R* pState))
- /* ///////////////////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiSegmentGradientGetBufferSize_8u_C1R
- // ippiSegmentGradientGetBufferSize_8u_C3R
- //
- // Purpose: Get size of external buffer.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width of the image or kernel size are less or equal zero
- //
- // Parameters:
- // roiSize The image ROI size
- // pBufSize The pointer to the buffer size
- */
- IPPAPI(IppStatus, ippiSegmentGradientGetBufferSize_8u_C1R, (IppiSize roiSize, int* pBufSize))
- IPPAPI(IppStatus, ippiSegmentGradientGetBufferSize_8u_C3R, (IppiSize roiSize, int* pBufSize))
- /* ///////////////////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiSegmentGradient_8u_C1R, ippiSegmentGradient_8u_C3R
- //
- // Purpose: Draw bounds between image segments
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width of the image or kernel size are less or equal zero
- // ippStsStepErr The steps in images are too small
- //
- // Parameters:
- // pSrc Source image
- // srcStep Its step
- // pMarker Source and destination marker image
- // markerStep Its step
- // roiSize Image ROI size
- // norm Type of norm to form the mask for maximum search:
- // rippiNormInf Infinity norm (8-connectivity, 3x3 rectangular mask).
- // rippiNormL1 L1 norm (4-connectivity, 3x3 cross mask).
- // flag Flags
- // IPP_SEGMENT_BORDER_4 Draw L1 segment borders.
- // IPP_SEGMENT_BORDER_8 Draw Linf segment borders.
- // pBuffer Pointer to working buffer
- */
- IPPAPI(IppStatus, ippiSegmentGradient_8u_C3IR, (const Ipp8u* pSrc, int srcStep, Ipp8u* pMarker,
- int markerStep, IppiSize roiSize, IppiNorm norm, int flags, Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiSegmentGradient_8u_C1IR, (const Ipp8u* pSrc, int srcStep, Ipp8u* pMarker,
- int markerStep, IppiSize roiSize, IppiNorm norm, int flags, Ipp8u* pBuffer))
- /* ///////////////////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiSegmentWatershedGetBufferSize_8u_C1R, ippiSegmentWatershedGetBufferSize_8u16u_C1R
- //
- // Purpose: Get size of external buffer.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width of the image or kernel size are less or equal zero
- //
- // Parameters:
- // roiSize The image ROI size
- // pBufferSize The pointer to the buffer size
- */
- IPPAPI(IppStatus, ippiSegmentWatershedGetBufferSize_8u_C1R, (IppiSize roiSize, int *pBufSize))
- IPPAPI(IppStatus, ippiSegmentWatershedGetBufferSize_8u16u_C1R, (IppiSize roiSize, int *pBufSize))
- /* ///////////////////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiSegmentWatershed_8u_C1IR, ippiSegmentWatershed_8u16u_C1IR
- //
- // Purpose: Draw bounds between image segments
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width of the image or kernel size are less or equal zero
- // ippStsStepErr The steps in images are too small
- //
- // Parameters:
- // pSrc Source image
- // srcStep Its step
- // pMarker Source and destination marker image
- // markerStep Its step
- // roiSize Image ROI size
- // norm Type of norm to form the mask for maximum search:
- // rippiNormInf Infinity norm (8-connectivity, 3x3 rectangular mask).
- // rippiNormL1 L1 norm (4-connectivity, 3x3 cross mask).
- // rippiNormL2 approximation of L2 norm (8-connectivity, 3x3 mask 11,15).
- // rippiNormFM Fast marching distance (4-connectivity).
- // flag Flags
- // IPP_SEGMENT_QUEUE Via priority queue.
- // IPP_SEGMENT_DISTANCE Via distance transform.
- // IPP_SEGMENT_BORDER_4 Draw L1 segment borders.
- // IPP_SEGMENT_BORDER_8 Draw Linf segment borders.
- // pBuffer Pointer to working buffer
- */
- IPPAPI(IppStatus, ippiSegmentWatershed_8u_C1IR, (const Ipp8u* pSrc, int srcStep, Ipp8u* pMarker, int markerStep, IppiSize roiSize,
- IppiNorm norm, int flag, Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiSegmentWatershed_8u16u_C1IR, (const Ipp8u* pSrc, int srcStep, Ipp16u* pMarker, int markerStep, IppiSize roiSize,
- IppiNorm norm, int flag, Ipp8u* pBuffer))
- /* ///////////////////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiBoundSegments_8u_C1IR, ippiBoundSegments_16u_C1IR
- //
- // Purpose: Draw bounds between image segments
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width of the image or kernel size are less or equal zero
- // ippStsStepErr The steps in images are too small
- //
- // Parameters:
- // pMarker Source and destination marker image
- // markerStep Its step
- // roiSize Image ROI size
- // norm Type of norm to form the mask for maximum search:
- // ippiNormInf Infinity norm (8-connectivity, 3x3 rectangular mask).
- // ippiNormL1 L1 norm (4-connectivity, 3x3 cross mask).
- */
- IPPAPI(IppStatus, ippiBoundSegments_8u_C1IR, (Ipp8u* pMarker, int markerStep, IppiSize roiSize,
- Ipp8u val, IppiNorm norm))
- IPPAPI(IppStatus, ippiBoundSegments_16u_C1IR, (Ipp16u* pMarker, int markerStep, IppiSize roiSize,
- Ipp16u val, IppiNorm norm))
- /*F///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiLabelMarkersGetBufferSize_8u_C1R, ippiLabelMarkersGetBufferSize_16u_C1R
- //
- // Purpose: The functions calculate size of temporary buffer, required to run
- // marker labeling function
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width or height of images is less or equal zero
- //
- // Parameters:
- // roiSize ROI size
- // pBufSize Temporary buffer size
- //F*/
- IPPAPI(IppStatus, ippiLabelMarkersGetBufferSize_8u_C1R, (IppiSize roiSize, int* pBufSize))
- IPPAPI(IppStatus, ippiLabelMarkersGetBufferSize_16u_C1R, (IppiSize roiSize, int* pBufSize))
- /* ///////////////////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiLabelMarkers_8u_C1IR, ippiLabelMarkers_16u_C1IR
- //
- // Purpose: Labels connected non-zero components with different label values
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width of the image or kernel size are less or equal zero
- // ippStsStepErr The steps in images are too small
- //
- // Parameters:
- // pMarker Source and destination marker image
- // markerStep Its step
- // roiSize Image ROI size
- // minLabel Minimal label value > 0
- // maxLabel Maximal label value < 255
- // norm Type of norm to form the mask for maximum search:
- // ippiNormL1 L1 norm (4-connectivity, 3x3 cross mask).
- // ippiNormInf Infinity norm (8-connectivity, 3x3 rectangular mask).
- // pNumber Pointer to number of markers
- // pBuffer Pointer to working buffer
- */
- IPPAPI(IppStatus, ippiLabelMarkers_8u_C1IR, (Ipp8u* pMarker, int markerStep, IppiSize roiSize,
- int minLabel, int maxLabel, IppiNorm norm, int *pNumber, Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiLabelMarkers_16u_C1IR, (Ipp16u* pMarker, int markerStep, IppiSize roiSize,
- int minLabel, int maxLabel, IppiNorm norm, int *pNumber, Ipp8u* pBuffer))
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippibFastArctan
- //
- // Purpose: Given "X" and "Y" images, calculates "angle" image
- // (i.e. atan(y/x)). Resultant angles are in degrees.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The length is less or equal zero
- //
- // Arguments:
- // pSrcY Pointer to source "Y" image
- // pSrcX Pointer to source "X" image
- // pDst Pointer to "angle" image
- // length Vector length
- //
- // Note:
- // For current version angle precision is ~0.1 degree
- */
- IPPAPI(IppStatus, ippibFastArctan_32f, ( const Ipp32f* pSrcY, const Ipp32f* pSrcX,
- Ipp32f* pDst, int length ))
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiForegroundHistogramInitAlloc
- //
- // Purpose: Allocates and initializes a state structure for
- // foreground/background segmentation using histograms
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width of the image is less or equal zero
- // ippStsStepErr The steps in images are too small
- // ippStsBadArgErr Wrong value of pModel field
- //
- // Arguments:
- // pSrc Source image
- // srcStep Step in source image
- // roiSize Source image ROI size.
- // pModel Pointer to the structure of the histogram statistical model.
- // pState Pointer to the pointer to the segmentation state structure.
- */
- IPPAPI(IppStatus, ippiForegroundHistogramInitAlloc_8u_C1R, ( const Ipp8u* pSrc, int srcStep,
- IppiSize roiSize, IppFGHistogramModel* pModel, IppFGHistogramState_8u_C1R** pState))
- IPPAPI(IppStatus, ippiForegroundHistogramInitAlloc_8u_C3R, ( const Ipp8u* pSrc, int srcStep,
- IppiSize roiSize, IppFGHistogramModel* pModel, IppFGHistogramState_8u_C3R** pState))
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiForegroundHistogramFree
- //
- // Purpose: Frees memory allocated for the foreground/background segmentation structure
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- //
- // Arguments:
- // pState Pointer to the structure to be freed
- */
- IPPAPI(IppStatus, ippiForegroundHistogramFree_8u_C1R, (IppFGHistogramState_8u_C1R* pState))
- IPPAPI(IppStatus, ippiForegroundHistogramFree_8u_C3R, (IppFGHistogramState_8u_C3R* pState))
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiForegroundHistogram
- //
- // Purpose: Calculates foreground mask using histograms
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width of the image is less or equal zero
- // ippStsStepErr The steps in images are too small
- //
- // Arguments:
- // pSrc Source image
- // srcStep Step in source image
- // pMask Pointer to mask
- // maskStep Step in the mask image
- // roiSize Source image ROI size.
- // pState Pointer to the pointer to the segmentation state structure.
- */
- IPPAPI(IppStatus, ippiForegroundHistogram_8u_C1R, (const Ipp8u* pSrc, int srcStep,
- Ipp8u* pMask, int maskStep, IppiSize roiSize, IppFGHistogramState_8u_C1R* pState))
- IPPAPI(IppStatus, ippiForegroundHistogram_8u_C3R, (const Ipp8u* pSrc, int srcStep,
- Ipp8u* pMask, int maskStep, IppiSize roiSize, IppFGHistogramState_8u_C3R* pState))
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiForegroundHistogramUpdate
- //
- // Purpose: Updates histogram statistical model for foreground segmentation
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width of the image is less or equal zero
- // ippStsStepErr The steps in images are too small
- //
- // Arguments:
- // pSrc Source image
- // srcStep Step in source image
- // pMask Pointer to mask
- // maskStep Step in the mask image
- // pRef Pointer to reference image
- // refStep Step in the reference image
- // roiSize Source image ROI size.
- // pState Pointer to the pointer to the segmentation state structure.
- */
- IPPAPI(IppStatus, ippiForegroundHistogramUpdate_8u_C1R, (const Ipp8u* pSrc, int srcStep,
- Ipp8u* pMask, int maskStep, Ipp8u* pRef, int refStep, IppiSize roiSize,
- IppFGHistogramState_8u_C1R* pState))
- IPPAPI(IppStatus, ippiForegroundHistogramUpdate_8u_C3R, (const Ipp8u* pSrc, int srcStep,
- Ipp8u* pMask, int maskStep, Ipp8u* pRef, int refStep, IppiSize roiSize,
- IppFGHistogramState_8u_C3R* pState))
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiForegroundGaussianInitAlloc
- //
- // Purpose: Allocates and initializes a state structure for
- // foreground/background segmentation using Gaussian mixtures
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width of the image is less or equal zero
- // ippStsStepErr The steps in images are too small
- //
- // Arguments:
- // pSrc Source image
- // srcStep Step in source image
- // roiSize Source image ROI size.
- // pModel Pointer to the structure of the gaussian model.
- // pState Pointer to the pointer to the segmentation state structure.
- */
- IPPAPI(IppStatus, ippiForegroundGaussianInitAlloc_8u_C1R, ( const Ipp8u* pSrc, int srcStep,
- IppiSize roiSize, IppFGGaussianModel* pModel, IppFGGaussianState_8u_C1R** pState))
- IPPAPI(IppStatus, ippiForegroundGaussianInitAlloc_8u_C3R, ( const Ipp8u* pSrc, int srcStep,
- IppiSize roiSize, IppFGGaussianModel* pModel, IppFGGaussianState_8u_C3R** pState))
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiForegroundGaussianFree
- //
- // Purpose: Frees memory allocated for the foreground/background segmentation structure
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- //
- // Arguments:
- // pState Pointer to the structure to be freed
- */
- IPPAPI(IppStatus, ippiForegroundGaussianFree_8u_C1R, (IppFGGaussianState_8u_C1R* pState))
- IPPAPI(IppStatus, ippiForegroundGaussianFree_8u_C3R, (IppFGGaussianState_8u_C3R* pState))
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiForegroundGaussian
- //
- // Purpose: Calculates foreground mask using Gaussians
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr One of pointers is NULL
- // ippStsSizeErr The width of the image is less or equal zero
- // ippStsStepErr The steps in images are too small
- //
- // Arguments:
- // pSrc Source image
- // srcStep Step in source image
- // pRef Pointer to reference image
- // refStep Step in the reference image
- // pDst Pointer to destination image
- // dstStep Step in the destination image
- // roiSize Source image ROI size.
- // pState Pointer to the pointer to the segmentation state structure.
- */
- IPPAPI(IppStatus, ippiForegroundGaussian_8u_C1R, (const Ipp8u* pSrc, int srcStep,
- Ipp8u* pRef, int refStep, Ipp8u* pDst, int dstStep,
- IppiSize roiSize, IppFGGaussianState_8u_C1R* pState))
- IPPAPI(IppStatus, ippiForegroundGaussian_8u_C3R, (const Ipp8u* pSrc, int srcStep,
- Ipp8u* pRef, int refStep, Ipp8u* pDst, int dstStep,
- IppiSize roiSize, IppFGGaussianState_8u_C3R* pState))
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiFilterGaussGetBufferSize
- //
- // Purpose: Computes the size of the working buffer for the Gaussian filter
- //
- // Return:
- // ippStsNoErr Ok. Any other value indicates an error or a warning.
- // ippStsNullPtrErr One of the pointers is NULL.
- // ippStsSizeErr roiSize has a field with zero or negative value .
- // ippStsBadArgErr KernelSize is odd or is less than 3.
- //
- // Arguments:
- // roiSize Maximal size of the image ROI in pixels.
- // kernelSize Size of the Gaussian kernel (odd, greater or equal to 3).
- // pBufferSize Pointer to the computed size of the buffer:
- */
- IPPAPI(IppStatus, ippiFilterGaussGetBufferSize_32f_C1R,(IppiSize roiSize, int KernelSize,
- int* pBufferSize))
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiFilterGaussBorder
- //
- // Purpose: Applies Gaussian filter with borders
- //
- // Return:
- // ippStsNoErr Ok. Any other value indicates an error or a warning.
- // ippStsNullPtrErr One of the specified pointers is NULL.
- // ippStsSizeErr roiSize has a field with zero or negative value.
- // ippStsStepErr srcStep is less than roiSize.width * <pixelSize>,
- // or dstStep is less than roiSize.width * <pixelSize>.
- // ippStsNotEvenStepErr One of the step values is not divisible by 4 for floating-point images.
- // ippStsBadArgErr kernelSize is less than 3 or sigma is less or equal than 0.
- //
- // Arguments:
- // pSrc Pointer to the source image ROI.
- // srcStep Distance in bytes between starts of consecutive lines in the source image.
- // pDst Pointer to the destination image ROI.
- // dstStep Distance in bytes between starts of consecutive lines in the destination image.
- // roiSize Size of the source and destination image ROI.
- // kernelSize Size of the Gaussian kernel (odd, greater or equal to 3).
- // sigma Standard deviation of the Gaussian kernel.
- // pBuffer Pointer to the working buffer.
- */
- IPPAPI(IppStatus, ippiFilterGaussBorder_32f_C1R, (const Ipp32f* pSrc, int srcStep,Ipp32f* pDst, int dstStep,
- IppiSize roiSize,int KernelSize,Ipp32f sigma,
- IppiBorderType borderType, Ipp32f borderValue,
- Ipp8u* pBuffer))
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiFindPeaks3x3GetBufferSize
- //
- // Purpose: Computes the size of the working buffer for the peak search
- //
- // Return:
- // ippStsNoErr Ok. Any other value indicates an error or a warning.
- // ippStsNullPtrErr Indicates an error condition if the pointer pBufferSize is NULL.
- // ippStsSizeErr Indicates an error condition if maskSize has a field with zero
- // or negative value, or if roiWidth is less than 1.
- //
- // Arguments:
- // roiWidth Maximal image width (in pixels).
- // pBufferSize Pointer to the computed size of the buffer.
- */
- IPPAPI(IppStatus, ippiFindPeaks3x3GetBufferSize_32f_C1R,(int roiWidth, int* pBufferSize))
- IPPAPI(IppStatus, ippiFindPeaks3x3GetBufferSize_32s_C1R,(int roiWidth, int* pBufferSize))
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiFindPeaks3x3
- //
- // Purpose: Finds coordinates of peaks (maximums or minimums) with absolute value
- // exceeding threshold value
- //
- // Return:
- // ippStsNoErr Ok. Any other value indicates an error or a warning.
- // ippStsNullPtrErr One of the specified pointers is NULL.
- // ippStsSizeErr Indicates an error condition if roiSize has a field
- // with zero or negative value or if maxPeakCount is less
- // than or equal to zero, or if Border is less than 1 or
- // greater than 0.5* roiSize.width or. greater than 0.5* roiSize.hight
- // ippStsStepErr Indicates an error condition if srcStep is less than roiSize.width * <pixelSize>
- // ippStsNotEvenStepErr Indicates an error condition if one of the step values is
- // not divisible by 4 for floating-point or 32-bit integer images.
- // ippStsBadArgErr Indicates an error condition if norm value is wrong.
- //
- // Arguments:
- // pSrc Pointer to the source image ROI.
- // srcStep Distance in bytes between starts of consecutive lines in the source image.
- // roiSize Size of the image ROI in pixels.
- // threshold Threshold value.
- // pPeak Pointer to the maximum coordinates [maxPeakCount].
- // maxPeakCount Maximal number of peaks.
- // pPeakCount Number of detected peaks.
- // norm Type of norm to form the mask for maximum search:
- // ippiNormInf Infinity norm (8-connectivity, 3x3 rectangular mask).
- // ippiNormL1 L1 norm (4-connectivity, 3x3 cross mask).
- // Border Border value, only pixel with distance from the edge of the image
- // greater than Border are processed.
- // pBuffer Pointer to the working buffer.
- */
- IPPAPI(IppStatus, ippiFindPeaks3x3_32f_C1R,(const Ipp32f* pSrc, int srcStep, IppiSize roiSize,
- Ipp32f threshold, IppiPoint* pPeak, int maxPeakCount,
- int* pPeakCount, IppiNorm norm, int Border, Ipp8u* pBuffer))
- IPPAPI(IppStatus, ippiFindPeaks3x3_32s_C1R,(const Ipp32s* pSrc, int srcStep, IppiSize roiSize,
- Ipp32s threshold, IppiPoint* pPeak, int maxPeakCount,
- int* pPeakCount, IppiNorm norm, int Border, Ipp8u* pBuffer))
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiHoughLineGetSize_8u_C1R()
- //
- //
- // Purpose: Calculate the size of temporary buffer for ippiHoughLine_8u32f_C1R function.
- //
- // Arguments:
- // roiSize The size of source ROI.
- // delta Discretization step, delta.rho - distance resolution in pixels, delta.theta - angle resolution in radians
- // maxLineCount The size of detected line buffer
- // pBufSize Pointer to the computed size of the temporary buffer
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr pBufSize is NULL
- // ippStsSizeErr The roiSize or delta has a field with zero or negative value
- // ippStsOverflow The size of buffer too big. Overflow.
- //
- */
- IPPAPI(IppStatus, ippiHoughLineGetSize_8u_C1R, (IppiSize roiSize, IppPointPolar delta, int maxLineCount, int* pBufSize))
- /* ///////////////////////////////////////////////////////////////////////////////////////
- // Name: ippiHoughLine_8u32f_C1R()
- //
- //
- // Purpose: Perform Hough transform algorithm
- //
- //
- // Arguments:
- // pSrc Pointer to the source image ROI
- // srcStep Distance in bytes between starts of consecutive lines in the source image
- // roiSize The size of source ROI.
- // delta Discretization step, delta.rho - distance resolution in pixels, delta.theta - angle resolution in radians
- // threshold Threshold for a line is detected (if accumulator value > threshold)
- // pLine Pointer to output array of detected lines
- // maxLineCount Size of output array pLine in elements
- // pLineCount Number of detected lines. If founded more than maxLineCount lines than function returns "ippStsDstSizeLessExpected" status
- // pBuffer Pointer to the pre-allocated temporary buffer
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr pSrc or pLine or pLineCount or pBuffer is NULL
- // ippStsStepErr srcStep is not valid
- // ippStsSizeErr roiSize has a field with zero or negative value or maxLineCount is zero or negative
- // ippStsBadArgErr threshold or is less than or equal to zero or delta.rho less 0 or more ROI width+height or delta.theta less 0 or more PI
- // ippStsDstSizeLessExpected Ok, but lines detected more than maxLineCount
- //
- */
- IPPAPI(IppStatus, ippiHoughLine_8u32f_C1R, (const Ipp8u* pSrc, int srcStep, IppiSize roiSize, IppPointPolar delta, int threshold,
- IppPointPolar* pLine, int maxLineCount, int* pLineCount, Ipp8u* pBuffer))
- /*
- // Name: ippiHoughLine_Region_8u32f_C1R
- //
- //
- // Purpose: Perform Hough transform algorithm in defined region
- //
- //
- // Arguments:
- // pSrc Pointer to the source image ROI
- // srcStep Distance in bytes between starts of consecutive lines in the source image
- // roiSize The size of source ROI.
- // pLine Pointer to output array of detected lines
- // dstRoi Bottom left and top right corners of searched lines. All founded lines must be
- // in this area. (line[n].rho>=dstRoi[0].rho && line[n].theta>=dstRoi[0].theta &&
- // line[n].rho<=dstRoi[1].rho && line[n].theta<=dstRoi[1].theta)
- // maxLineCount Size of output array pLine in elements
- // pLineCount Number of detected lines. If founded more than maxLineCount lines than function returns "ippStsDstSizeLessExpected" status
- // delta Discretization step, delta.rho - distance resolution in pixels, delta.theta - angle resolution in radians
- // threshold Threshold for a line is detected (if accumulator value > threshold)
- // pBuffer Pointer to the pre-allocated temporary buffer
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr pSrc or pLine or pLineCount or pBuffer is NULL
- // ippStsStepErr srcStep is not valid
- // ippStsSizeErr roiSize has a field with zero or negative value or maxLineCount is zero or negative
- // ippStsBadArgErr threshold or is less than or equal to zero or delta.rho less 0 or more ROI width+height or
- // delta.theta less 0 or more PI or dstRoi[0].rho more dstRoi[1].rho or dstRoi[0].theta more dstRoi[1].theta
- // ippStsDstSizeLessExpected Ok, but lines detected more than maxLineCount
- //
- */
- IPPAPI(IppStatus, ippiHoughLine_Region_8u32f_C1R, (const Ipp8u* pSrc, int srcStep, IppiSize roiSize,
- IppPointPolar* pLine, IppPointPolar dstRoi[2], int maxLineCount, int* pLineCount, IppPointPolar delta, int threshold, Ipp8u* pBuffer))
- #if !defined( _OWN_BLDPCS )
- typedef struct _IppiSRHNSpec_PSF3x3 IppiSRHNSpec_PSF3x3;
- typedef struct _IppiSRHNSpec_PSF2x2 IppiSRHNSpec_PSF2x2;
- #endif
- /* ///////////////////////////////////////////////////////////////////////////
- // Name: ippiSRHNInitAlloc_PSF3x3,
- // ippiSRHNInitAlloc_PSF2x2
- //
- // Purpose: Allocate and initialize the internal PSF structures.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr Some of the pointers are NULL
- // ippStsSizeErr The table size is incorrect
- // Arguments:
- // ppPSF Double pointer to the created PSF structure
- // pcTab Input table with coefficients
- // tabSize The number of elements in cTab
- */
- IPPAPI(IppStatus, ippiSRHNInitAlloc_PSF3x3, (IppiSRHNSpec_PSF3x3** ppPSF,
- const Ipp32f pcTab[][9], int tabSize))
- IPPAPI(IppStatus, ippiSRHNInitAlloc_PSF2x2, (IppiSRHNSpec_PSF2x2** ppPSF,
- const Ipp32f pcTab[][4], int tabSize))
- /* ///////////////////////////////////////////////////////////////////////////
- // Name: ippiSRHNFree_PSF3x3,
- // ippiSRHNFree_PSF2x2
- //
- // Purpose: Deallocate PSF structures
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr The PSF pointer is NULL
- // Arguments:
- // pPSF Pointer to the PSF structure
- */
- IPPAPI(IppStatus, ippiSRHNFree_PSF3x3, (IppiSRHNSpec_PSF3x3* pPSF))
- IPPAPI(IppStatus, ippiSRHNFree_PSF2x2, (IppiSRHNSpec_PSF2x2* pPSF))
- /* ///////////////////////////////////////////////////////////////////////////
- // Name: ippiSRHNCalcResidual_PSF3x3_8u32f_C1R,
- // ippiSRHNCalcResidual_PSF2x2_8u32f_C1R,
- // ippiSRHNCalcResidual_PSF3x3_16u32f_C1R,
- // ippiSRHNCalcResidual_PSF2x2_16u32f_C1R,
- //
- // Purpose: Compute residuals for likelihood part of target function
- // or its gradient.
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr Some of the pointers are NULL's
- // ippStsSizeErr The length is negative
- // ippStsStepErr hiResStep is too small or
- // is not divisible by sizeof(pHiRes[0])
- //
- // Arguments:
- // pHiRes Pointer to high-resolution image
- // pHiResStep High-resolution image step
- // pLowRes Array of pixel values from low-resolution images
- // pOfs Array of offsets of 3x3 areas
- // inside high-resolution image
- // pCoeff Array of indices in cTab
- // pResidual The output array
- // len Length of lowRes, ofs, coeff and residual arrays
- // pPSF Previously created PSF table for 3x3 or 2x2 case
- */
- IPPAPI(IppStatus, ippiSRHNCalcResidual_PSF3x3_8u32f_C1R, (
- const Ipp32f* pHiRes, int hiResStep, const Ipp8u* pLowRes,
- const Ipp32s* pOfs, const Ipp16u* pCoeff, Ipp32f* pResidual,
- int len, const IppiSRHNSpec_PSF3x3* pPSF))
- IPPAPI(IppStatus, ippiSRHNCalcResidual_PSF2x2_8u32f_C1R, (
- const Ipp32f* pHiRes, int hiResStep, const Ipp8u* pLowRes,
- const Ipp32s* pOfs, const Ipp16u* pCoeff, Ipp32f* pResidual,
- int len, const IppiSRHNSpec_PSF2x2* pPSF))
- IPPAPI(IppStatus, ippiSRHNCalcResidual_PSF3x3_16u32f_C1R, (
- const Ipp32f* pHiRes, int hiResStep, const Ipp16u* pLowRes,
- const Ipp32s* pOfs, const Ipp16u* pCoeff, Ipp32f* pResidual,
- int len, const IppiSRHNSpec_PSF3x3* pPSF))
- IPPAPI(IppStatus, ippiSRHNCalcResidual_PSF2x2_16u32f_C1R, (
- const Ipp32f* pHiRes, int hiResStep, const Ipp16u* pLowRes,
- const Ipp32s* pOfs, const Ipp16u* pCoeff, Ipp32f* pResidual,
- int len, const IppiSRHNSpec_PSF2x2* pPSF))
- /* ///////////////////////////////////////////////////////////////////////////
- // Name: ippiSRHNUpdateGradient_PSF3x3_32f_C1R,
- // ippiSRHNUpdateGradient_PSF2x2_32f_C1R
- //
- // Purpose: Update likelihood part of the gradient
- //
- // Return:
- // ippStsNoErr Ok
- // ippStsNullPtrErr Some of the pointers are NULL's
- // ippStsSizeErr Length is negative
- // ippStsStepErr gradStep is too small or is not divisible by
- // sizeof(pGrad[0])
- //
- // Arguments:
- // pGrad Pointer to gradient
- // gradStep The gradient step
- // pOfs Array of offsets of 3x3 or 2x2 areas
- // inside high-resolution image
- // pCoeff Array of indices in cTab
- // pRob Array of computed robust function derivatives
- // pWeight Array of indices in wTab
- // len Length of ofs, coeff, errVal and weight arrays
- // pwTab A table of confidence weights
- // pPSF PSF structure
- */
- IPPAPI(IppStatus, ippiSRHNUpdateGradient_PSF3x3_32f_C1R, (
- Ipp32f* pGrad, int gradStep, const Ipp32s* pOfs, const Ipp16u* pCoeff,
- const Ipp32f* pRob, const Ipp8u* pWeight, int len, const Ipp32f* pwTab,
- const IppiSRHNSpec_PSF3x3* pPSF))
- IPPAPI(IppStatus, ippiSRHNUpdateGradient_PSF2x2_32f_C1R, (
- Ipp32f* pGrad, int gradStep, const Ipp32s* pOfs, const Ipp16u* pCoeff,
- const Ipp32f* pRob, const Ipp8u* pWeight, int len, const Ipp32f* pwTab,
- const IppiSRHNSpec_PSF2x2* pPSF))
- #if defined __cplusplus
- }
- #endif
- #if defined (_IPP_STDCALL_CDECL)
- #undef _IPP_STDCALL_CDECL
- #define __stdcall __cdecl
- #endif
- #endif /* __IPPCV_H__ */
- /* ////////////////////////// End of file "ippCV.h" ////////////////////////// */
|