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

ippiFilterMin_16u_C1R crashed (IPP 8.2)

$
0
0
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

 


Viewing all articles
Browse latest Browse all 1489

Trending Articles



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