- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Could you please point me where I made a mistake doing ippiFilterMin_16u_C1R? Demo code below. Thanks. ippInit(); int mskSizeX = 3; int mskSizeY = 3; IppiSize roi={(int)imageW - (mskSizeX - 1),(int)imageH - (mskSizeY -1)}, mask={mskSizeX,mskSizeY}; IppiPoint anchor = {mskSizeX/2, mskSizeY/2}; int stepBytes; int stepBytesf; Ipp16u* d_image1 = ippiMalloc_16u_C1(imageW, imageH, &stepBytes); Ipp16u* d_image2 = ippiMalloc_16u_C1(imageW, imageH, &stepBytes); Ipp16u* d_image11 = ippiMalloc_16u_C1(imageW, imageH, &stepBytes); Ipp16u* d_image22 = ippiMalloc_16u_C1(imageW, imageH, &stepBytes); ippiCopy_16u_C1R(h_average_noload,stepBytes,d_image1,stepBytes,roi); ippiCopy_16u_C1R( deviceListReal->at(frameSlider->value()).data(), stepBytes, d_image2, stepBytes,roi); IppStatus a =ippiLShiftC_16u_C1IR(4, d_image1, stepBytes, roi); IppStatus b = ippiLShiftC_16u_C1IR(4, d_image2, stepBytes, roi); ippiFilterMin_16u_C1R( d_image1, stepBytes, d_image11, stepBytes, roi, mask, anchor ); ///exception here
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ok..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, It looks the image border is not handled correctly in the code, basically, for some filter functions, image need to have border prepared for calling the function. You can check this article for a few details:
https://software.intel.com/en-us/articles/intel-integrated-performance-primitives-intel-ipp-processing-an-image-from-edge-to-edge
Thanks,
Chao
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page