I have trouble with filter functions. Why does the code given throw an exception? dimX is 336, dimY is 333. The incoming image is single channel Ipp32f* type.
Pulling my hair out.
Thanks!
bool GetSmoothImage(const ImageCoreC&pInMap, int dimX, int dimY) { IppStatus ippStatus =ippStsNoErr; int bytesperPix =sizeof(Ipp32f); int filterWing = 1; IppiSize srcSize = {dimX,dimY}; int srcStepOrg = srcSize.width * bytesperPix; IppiSize roiSize = {dimX- (2*filterWing),dimY- (2*filterWing)}; int dstStep; Ipp32f*pDst = ippiMalloc_32f_C1(srcSize.width,srcSize.height,&dstStep); Ipp32f* pSrcStartpoint =pInMap.Data() + (filterWing * srcSize.width) + filterWing; Ipp32f* pDstStartpoint = pDst + (filterWing * srcSize.width) + filterWing; ippStatus = ippiFilterGauss_32f_C1R(pSrcStartpoint, srcStepOrg, pDstStartpoint, dstStep, roiSize, ippMskSize3x3);