Fix ocl::pyrUp
authorpeng xiao <hisenxpress@gmail.com>
Wed, 15 May 2013 00:51:21 +0000 (08:51 +0800)
committerpeng xiao <hisenxpress@gmail.com>
Wed, 15 May 2013 00:51:21 +0000 (08:51 +0800)
commitdf3997b108600d95835944c26cb98e7bbdcdbf18
treef0b01c411c88848c7593f48e98f1f74e3fd499b6
parent2aa5f1bfd1dd2276c44df3002b868a586556fb67
Fix ocl::pyrUp
Use predefined OpenCL function to convert integers to floating points.
This is more accurate than before as it enables:
1. saturate cast
2. customized rounding
modules/ocl/src/opencl/pyr_up.cl