Quantcast
Channel: Intel® Software - Intel® Integrated Performance Primitives
Viewing all articles
Browse latest Browse all 1489

ipp 2017 update 2 Histogram buffer size issue

$
0
0

I've encountered a  problem of calculating the image histogram when using the latest ipp static library(2017 update 2)

The issue happened when I call the ippiHistogramGetBufferSize function.I needed to calculate the buffer size before doing histogram for single-float type image, but this function return  0 in sizeBuffer . Then it will crash my histogram calculating code. I doubted it was the potential bug for this function.

const int WIDTH = 5;
const int HEIGHT = 5;
const int nbins =5;
int nLevels [] = {nbins +1};
ippiSize roi = {WIDTH,HEIGHT};
int sizeHistObj,sizeBuffer;

ippiHistogramGetBufferSize(ipp32f, roi, nLevels, 1, 1, &sizeHistObj,&sizeBuffer);

I've tired ipp8u,ipp16u,ipp16s type, they were ok, although return a big memeory size refer to ipp16u or ipp16s. 

Please somebody come to help .
 

 

Thread Topic: 

Question

Viewing all articles
Browse latest Browse all 1489

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>