- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello forum,
I've used ippiResize in multiple forms to resize both images and 1d signals. For example:
ippiResizeNearest_32f_C1R, ippiResizeCubic_32f_C1R etc.
In short, these only seem to work with 2d images, and if a 1d image is used, they will throw an error.
So, I I have:
IppiSize srcSize = { 10, 1};
IppiSize dstSize = { 20, 1};
The following will return an error in all cases unless ippInterType==1 (NN):
status = ippiResizeGetSize_32f(srcSize, dstSize, ippInterType, antialiasing, &specSize, &bufferSz);
Does anyone know if there are any work arounds for this? Or, is 1d support explicitly removed?
For context, this has worked in previous versions (8.1, 9.0), but is not working in 2021.10.
Thank you,
Jonathan.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Could you provide some simple sample code demonstrating the problem?
Thanks,
Alex
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Alex,
Attached is the code as a function. You'll have to paste into your own environ. You can choose your interpolation type here:
IppiInterpolationType ippInterType = ippLinear; // Options: ippNearest ippLinear ippCubic ippLanczos ippSuper
All will fail aside from ippNearest
The error message is:
performIpp1dInterpTest(): ERROR -6 returned from ippiResizeGetSize_32f()!
So "Incorrect value for data size"
Any insight would be appreciated.
Thanks,
Jonathan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Alex,
Any thoughts on this or is this definitely a bug?
Thanks,
Jonathan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
This behavior is actually expected. Note that in ResizeGetSize in the list of return values there is ippStsSizeErr, which indicates an error if the source image size is less than the filter size of the chosen interpolation method. The filter size for the nearest neighbor is 1x1, but for other types of filters the sizes are bigger (linear is 2x2, cubic and 2-lobed Lanczos are 4x4).
Regards,
Aleksandra

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page