Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 1.99 KB

File metadata and controls

16 lines (14 loc) · 1.99 KB

ImagePyramidFilterEvaluationOpenCL

Evaluation of different filter operations and different storage types (image, cube, buffer, image buffer) in OpenCL. This is the repository for two corresponding blog articles:

Build instruction

  • Install Visual Studio 2015
  • Install OpenCV (e.g. like described in this article)
  • Install the Intel SDK for OpenCL
  • Build and run the solution
    • Start point is the file main.cpp where you can switch between the different image types and set other test settings
    • Use test(pyramid) to test if the implementation works without running any performance tests
    • Use testBatch(pyramid); to start the performance tests

Filter generation

The OpenCL kernel code which implements the filters is generated via a Perl script. Running this script (run generate_kernels.pl in the kernels folder) uses the .base files as basis and generates all different filter sizes as well as single, double and predefined filters. The generated files are included in the filter_images.cl file (when using the image2d_t data type) which is passed to the OpenCL runtime.