Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Nik_G_
Beginner
112 Views

ippiFilterMin_16u_C1R crashed (IPP 8.2)

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

 

0 Kudos
2 Replies
Nik_G_
Beginner
112 Views

Ok..

Chao_Y_Intel
Employee
112 Views

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-processi...

Thanks,
Chao

 

Reply