- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I used ippiFilterMedian_64f_C1R in my application. Here is the code:
IppiPoint anchor = {mskSizeX/2, mskSizeY/2};
IppiSize roi = {(int)xdim_len - (mskSizeX - 1),(int)ydim_len - (mskSizeY -1)}, mask={mskSizeX, mskSizeY};
Ipp32u bufSize = 0;
status = ippiFilterMedianGetBufferSize_64f(roi, mask, 1, &bufSize);
Ipp8u *buf;
buf = ippsMalloc_8u((int) bufSize * sizeof(Ipp8u));
status = ippiFilterMedian_64f_C1R((Ipp64f*)src_data.get_data(), xdim_len * sizeof(Ipp64f),(Ipp64f*)dst_data.get_data(), xdim_len * sizeof(Ipp64f), roi, mask, anchor, buf};
if(buf) { ippsFree( buf ); }
However, I got an exception when excuting the above code "... Access voliation reading location 0x...".
I also used other ippiFilterMedian functions like ippiFilterMedian_32f_C1R in my code. If I apply median filter using ippiFilterMedian_32f_C1R for a 32bit floating point image. Then used the above code and apply median filter for a 64bit floating point image, no exception is thrown in this case. I can get correctly processed images.
Please let me know is there any issue with my code? Or there is something wroing with ippiFilterMedian_64f_C1R?
Thanks.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page