- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I have a question about resizing an image with odd dimensions.
According the 7.1 changelog such images resizing is not supported: "ippiResize functions: These functions work with even image resolutions only. Odd resolutions are cropped to an even size and return a warning."
New image resize function such as ippiResize returns a warning on preparation for resizing images with odd dimensions. But old function ippiResizeSqrPixel do not return any warning. Is that means that ippiResizeSqrPixel supports resizing images with odd dimension, or it just silently crops an image.
Also may be somebody can say is IPP 6.1 have same issues or not? And if there are some plans to add support of resizing images with odd dimensions in IPP 7.*?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
there are no plans to add support of resizing images with odd dimensions in IPP 7.*?
- 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
Sergey Kostrov wrote:
>>...Odd resolutions are cropped to an even size and return a warning."
Could you post a full text of the warning or a code number, please?
ippiResizeGetSize_8u returns: ippStsSizeErr: Incorrect value for data size.
Source size is 940x1, Destination size is 658x1.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Gennady Fedorov (Intel) wrote:
there are no plans to add support of resizing images with odd dimensions in IPP 7.*?
Thank you for reply. Though it would be very handy if library could resize images with odd dimensions.
May be you can tell, does IPP 6.1 have the same limitations?
- 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
image library can't resize images vb.net with odd dimensions, but there are some other way or methods to make images resized. they are quite simple and work in batch too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ippiResize functions correctly work with odd image sizes, but the size of an input image must be greater or equal than a filter size of the chosen interpolation method. So the image with size 940x1 has a small height value that is less than filter height values for Linear, Cubic and Lanczos interpolations.
ippiResizeGetSize functions has the following constraints for the minimal size of an input image depending on the chosen interpolation method: Nearest Neighbor - 1x1, Linear - 2x2, Cubic - 4x4, 2-lobed Lanczos - 4x4.
ippiResize<Interpolation>Init functions has the following constraints for the minimal size of an input image depending on the chosen interpolation method: Nearest Neighbor - 1x1, Linear - 2x2, Cubic - 4x4, 2-lobed Lanczos - 4x4, 3-lobed Lanczos 6x6
- 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