Cuda Image average filter

前端 未结 3 1017
情话喂你
情话喂你 2021-01-31 21:31

Average filter is windowed filter of linear class, that smooths signal (image). The filter works as low-pass one. The basic idea behind filter is for any elemen

3条回答
  •  半阙折子戏
    2021-01-31 22:08

    Some Basic thoughts/steps:

    1. Copy the Image data from the CPU to the GPU
    2. Call a kernel to build the average for each line (horizontal) and store it in shared memory.
    3. Call a kernel to build the average for each column (vertical) and store it in global memory.
    4. Copy the data back to the CPU-Memory.

    You should be able to scale this pretty easily with 2D-memory and multidimensional kernel-calls.

提交回复
热议问题