Pink 0.9

convol.c File Reference

convolution More...


Detailed Description

convolution

Usage: convol in.pgm kernel.pgm [mode] out.pgm

Description: Convolution of in.pgm by kernel.pgm. The result is a float image. Depending on the value given for the (optional) parameter mode:

Types supported: byte 2d, int32_t 2d, float 2d

Category: signal

Warning:
Naive convolution algorithm is in O(|in|*|kernel|). For large kernels, use FFT version which is in O(n log n) where n = max(|in|,|kernel|)
Author:
Michel Couprie