blob: 74c47792260ee2c9a85685faf863643d79e9594a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
function[dstImg] = regionfill(srcImg, varargin)
[lhs, rhs] = argn(0)
srcMat = mattolist(srcImg)
if rhs == 2 then
out = opencv_regionfill(srcMat, varargin(1))
elseif rhs == 2 then
out = opencv_regionfill(srcMat, varargin(1), varargin(2))
end
channels = size(out)
for i = 1:channels
dstImg(:,:,i) = out(i)
end
endfunction
|