Median Filter

Download for Windows*Download for Linux*Download Documentation

Features / Description

The sample demonstrates how to implement efficient median filter with OpenCL™ standard. This implementation relies on auto-vectorization performed by OpenCL compiler. The kernel code minimizes number of color buffer accesses, removes synchronization points, and uses data-level parallelism.

This sample demonstrates a CPU-optimized implementation of 2D image median filtration, showing how to:

  • Implement calculation kernels using OpenCL C99
  • Parallelize the kernels by running several work-groups in parallel
  • Organize host-device data exchange with final image storage on the hard drive.

Supported Devices: CPU, Intel Processor Graphics, Intel® Xeon Phi™ coprocessor
Supported OS: Windows* and Linux* OS
Complexity Level: Novice

Additional Resources

Intel® SDK for OpenCL™ Applications

Para obter informações mais completas sobre otimizações do compilador, consulte nosso aviso de otimização.