# How to correctly resize image with a different linear interpolation scheme

**URL:** <https://forum.opencv.org/t/how-to-correctly-resize-image-with-a-different-linear-interpolation-scheme/11459>\
**Category:** C++\
**Tags:** programming\
**Created:** [December 30, 2022, 3:23pm UTC](https://forum.opencv.org/t/how-to-correctly-resize-image-with-a-different-linear-interpolation-scheme/11459 "2022-12-30T15:23:01Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)\
**Post date:** [December 30, 2022, 3:28pm UTC](https://forum.opencv.org/t/how-to-correctly-resize-image-with-a-different-linear-interpolation-scheme/11459/2 "2022-12-30T15:28:18Z")

</div>

I will just ignore all that code you posted and recommend that you use `warpAffine()` with a suitable transformation matrix, and the `WARP_INVERSE_MAP` flag, so the matrix directly describes the calculation from destination coordinate to source coordinate.

afaik, INTER\_AREA only works for `resize()`, not for any of the warps

if you need a lowpass, do the lowpass explicitly.

or use `pyrDown()`

---

_[View the full topic](https://forum.opencv.org/t/how-to-correctly-resize-image-with-a-different-linear-interpolation-scheme/11459)._
