Fix cvRemap transparent border issue (Feature #582)
Description
Due to an apparent oversight in the enum definition for border interpolation methods, the constant BORDER_TRANSPARENT is given the same value as BORDER_REFLECT_101. This masks a bug in the implementation of cvRemap, which can call borderInterpolate with a parameter of BORDER_TRANSPARENT and an out-of-bounds value of p when performing a bicubic or Lanczos remapping, leading to a runtime error. These patches fix both bugs.
Associated revisions
fixed remap with transparent border (ticket #582)
Merge pull request #582 from bitwangyaoyao:2.4_fixBlend
History
Updated by Vadim Pisarevsky over 14 years ago
thanks! the patch is applied in r3895
- Status changed from Open to Done
- (deleted custom field) set to fixed