- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I recently upgraded to 5.3 update 2 version and nowippiMean_StdDev_8u_C3CMR function crashes with access violation.
This happens if the mask image is NOT allocated by ippiMalloc. It is strange since all the other versions of the function work fine with a simple malloc.
Here is the code that crashes:
const
int width = 225;const int height = 230;IppiSize roiSize;
roiSize.width = width;
roiSize.height = height;
int maskStep = width;
Ipp8u* pMask = (Ipp8u*)malloc( maskStep * height * sizeof(Ipp8u));
Ipp8u* pImage = (Ipp8u*)malloc( width * height * 3 * sizeof(Ipp8u));
memset ( pMask, 255, maskStep * height );
memset( pImage, 255, width * height * 3);
Ipp64f mean = 0;
Ipp64f std = 0;
ippiMean_StdDev_8u_C3CMR( pImage,3*width, pMask, maskStep, roiSize, 1, &mean, &std);
free( pMask );
free(pImage );
This is the code that works fine:
const int width = 225;
const int height = 230;
IppiSize roiSize;
roiSize.width = width;
roiSize.height = height;
int maskStep = 0;
Ipp8u* pMask = (Ipp8u*) ippiMalloc_8u_C1( width, height, &maskStep );Ipp8u* pImage = (Ipp8u*)malloc( width * height * 3 * sizeof(Ipp8u));
memset( pMask, 255, maskStep * height );
memset( pImage, 255, width * height * 3);
Ipp64f mean = 0;
Ipp64f std = 0;
ippiMean_StdDev_8u_C3CMR( pImage,3*width, pMask, maskStep, roiSize, 1, &mean, &std);
ippiFree(pMask);free(pImage);
Is this behavior by design ( must use ippiMalloc ) and if it is why all the other functions are working just fine with malloc?
Thanks,
Mircea Ionescu
Scientific Programmer
Systems Pathology Company, LLC
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I forgot to mention that I use use Microsoft Visual Studio 2005 SP1.
Thanks,
Mircea
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Mircea,
thanks for reporting this. We confirm that there is a bug in optimized version of function which will be fixed in IPP 5.3 update 4 coming sometime later in this year.
Regards,
Vladimir
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page