blob: 5f172d3430592e1fd105e7e1a2db91a71cea15a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// Function Name = 2-D convolution matrix
// Output = Convolution matrix T
// Input = Input matrix srcMat, Dimensions [m, n]
function[T] = convmtx2(srcImg, m, n)
srcMat = mattolist(srcImg)
out = opencv_convmtx2(srcMat, m, n)
channels = size(out)
for i = 1:channels
T(:,:,i) = out(i)
end
endfunction
|