I'm using some morphological operations and, after looking for ippiMorphAdvInitAlloc in the manual (Volume 2 of the book, page 534), I noticed that the presented order of arguments is not the same that what is presented at page 557, in the example of the same function. More precisely, on page 534, ppState is the first argument, but on page 557, it is put in the last place. Moreover, when I run this example code, it give me an Illegal instruction.
I'm not sure what version of IPP you refer to, but for the latest version, IPP 7.0, the documentation is available online, and from what I can see in online documentation, it seems there is no that mistake with order of function parameters.
Another problem: running Example "Using Morphology functions", I get an illegal instruction error. I suppose this library is not well linked in my IDE. Where is this library in /opt/intel/ipp/6.1.6.063/em64t/sharedlib ?
Ops, I think I've found what you mean. The function ippiMorphAdvInitAlloc is implemented in ippcv library and declared in ippcv.h file. It differ from similar function ippiMorphologyInitAlloc which implemented in ippi library and declared in ippi.h file.
You need to use appropriate functons either from image processing or from computer vision domain. It is not expected you will initialize state structure with function from one domain and use this state structure with functrion from other domain.
And I see your point, functionality is similar but API design is different.