Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Dirk_S_
Beginner
46 Views

Ipp 8.2 compiling ippiHoughProbLineGetSize_8u_C1R

Hi,

ippcv.h shows ippiHoughProbLineGetSize_8u_C1R, like ippiHoughLineGetSize_8u_C1R, but the following code I cannot compile with VS2010

ippiHoughLineGetSize_8u_C1R( size, delta, 1000, &iBufferSize);

ippiHoughProbLineGetSize_8u_C1R( size, delta, &iSpecSize, &iBufSize);

Only ippiHoughLineGetSize can be compiled, ProbLine fails due to 'identifier not found'.

But this works

typedef IppStatus (__stdcall *pippiHoughProbLineGetSize_8u_C1R)( IppiSize      roiSize,
      IppPointPolar delta,
      int*          pSpecSize,
      int*          pBufSize);

typedef IppStatus (__stdcall *pippiHoughProbLineInit_8u32f_C1R)(
       IppiSize       roiSize,
       IppPointPolar  delta,
       IppHintAlgorithm hint,
       void*  pSpec);

typedef IppStatus (__stdcall *pippiHoughProbLine_8u32f_C1R)(
  const Ipp8u*         pSrc,
        int            srcStep,
        IppiSize       roiSize,
        int            threshold,
        int            lineLength,
        int            lineGap,
        IppiPoint*     pLine,
        int            maxLineCount,
        int*           pLineCount,
        Ipp8u*         pBuffer,
        void* pSpec );

HINSTANCE hInst= LoadLibrary( L"ippcv-8.2.dll");

    HoughProp= (pippiHoughProbLineGetSize_8u_C1R)GetProcAddress( hInst, "ippiHoughProbLineGetSize_8u_C1R");
    HoughProp( size, delta, &iSpecSize, &iBufSize);

The results are correct, in my case 16 lines are returned by

pippiHoughProbLine_8u32f_C1R HoughPropDo;
    HoughPropDo= (pippiHoughProbLine_8u32f_C1R)GetProcAddress( hInst, "ippiHoughProbLine_8u32f_C1R");
    //ippiHoughProbLine_8u32f_C1R( (Ipp8u*)cRes.GetPtr(), cRes.GetWidthStep(), size, 400, 40, 20, LineP, 128, &iLineCount, pBuffer, pSpec);
    HoughPropDo( (Ipp8u*)cRes.GetPtr(), cRes.GetWidthStep(), size, 400, 40, 20, LineP, 128, &iLineCount, pBuffer, pSpec);

So what is the problem with your Header? The functions are in the DLL, I do not know if they are in the LIB.

0 Kudos
1 Reply
Dirk_S_
Beginner
46 Views

 

Got it, got it, sorry, forget the include\7.05 in a different file.