3
3
* Add some comments about XML file
5
5
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en_US" xml:id="convol2d">
7
<refname>convol2d</refname>
8
<refpurpose>discrete 2-D convolution, using fft. </refpurpose>
11
<title>Calling Sequence</title>
12
<synopsis>C = convol2d(A,B)</synopsis>
15
<title>Parameters</title>
21
a real or complex 2-D array.
29
a real or complex 2-D array.
37
a real or complex 2-D array.
44
<title>Description</title>
46
<literal>convol2d</literal> uses fft to compute the full
47
two-dimensional discrete convolution. The
48
dimensions of the result<literal>C</literal> are given by
49
<literal>size(A)+size(B)+1</literal>. The indices of the
50
center element of <literal>B</literal> are defined as
51
<literal>floor((size(B)+1)/2)</literal>.
55
<title>Examples</title>
56
<programlisting role="example"><![CDATA[
7
<refname>convol2d</refname>
8
<refpurpose>discrete 2-D convolution, using fft. </refpurpose>
11
<title>Calling Sequence</title>
12
<synopsis>C = convol2d(A,B)</synopsis>
15
<title>Parameters</title>
21
a real or complex 2-D array.
29
a real or complex 2-D array.
37
a real or complex 2-D array.
44
<title>Description</title>
46
<literal>convol2d</literal> uses fft to compute the full
47
two-dimensional discrete convolution. The
48
dimensions of the result<literal>C</literal> are given by
49
<literal>size(A)+size(B)+1</literal>. The indices of the
50
center element of <literal>B</literal> are defined as
51
<literal>floor((size(B)+1)/2)</literal>.
55
<title>Examples</title>
56
<programlisting role="example"><![CDATA[
57
57
s = [1 2 1; 0 0 0; -1 -2 -1];//Sobel horizontal edge kernel
58
58
A = zeros(10,10);A(3:7,3:7) = 1;
60
60
]]></programlisting>
63
<title>See Also</title>
64
<simplelist type="inline">
66
<link linkend="conv2">conv2</link>
69
<link linkend="convol">convol</link>
74
<title>Used Functions</title>
76
The <literal>convol2d</literal> function is based on the <link linkend="fft">fft</link> builtin.
80
<title>History</title>
83
<revnumber>5.4.0</revnumber>
84
<revremark>Function convol2d introduced.</revremark>
63
<title>See Also</title>
64
<simplelist type="inline">
66
<link linkend="conv2">conv2</link>
69
<link linkend="convol">convol</link>
74
<title>Used Functions</title>
76
The <literal>convol2d</literal> function is based on the <link linkend="fft">fft</link> builtin.
80
<title>History</title>
83
<revnumber>5.4.0</revnumber>
84
<revremark>Function convol2d introduced.</revremark>