morousg / cvGPUSpeedup

A faster implementation of OpenCV-CUDA that uses OpenCV objects, and more!
Apache License 2.0
34 stars 5 forks source link

Add rounding options when computing new sizes in resize with preserve aspect ratio #65

Closed morousg closed 10 months ago

morousg commented 10 months ago

We want to be able to:

  1. Round to nearest integer, greater or smaller than the floating point value AspectRatio::PRESERVE_AR
  2. Round to the closest even integer AspectRatio::PRESERVE_AR_RN_EVEN