Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.2 - Français

Change language to:
English - 日本語 - Português - Русский

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function

Aide de Scilab >> Traitement du Signal > convol2d

convol2d

discrete 2-D convolution, using fft.

Calling Sequence

C = convol2d(A,B)

Parameters

A

a real or complex 2-D array.

B

a real or complex 2-D array.

C

a real or complex 2-D array.

Description

convol2d uses fft to compute the full two-dimensional discrete convolution. The dimensions of the resultC are given by size(A)+size(B)+1. The indices of the center element of B are defined as floor((size(B)+1)/2).

Examples

s = [1 2 1; 0 0 0; -1 -2 -1];//Sobel horizontal edge kernel
A = zeros(10,10);A(3:7,3:7) = 1;
convol2d(s,A);

See Also

Used Functions

The convol2d function is based on the fft builtin.

History

VersionDescription
5.4.0 Function convol2d introduced.
Report an issue
<< conv2 Traitement du Signal detrend >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Apr 01 10:21:40 CEST 2015