summaryrefslogtreecommitdiff
path: root/macros/imhmin.sci~
blob: d57e7740cd197b6be7a9fe80e656b2783acc3ea4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
unction[dstMat] = imfill(srcImg, H-min)
	
	[lhs, rhs] = argn(0)
	
	srcMat = mattolist(srcImg)

	out = opencv_imfill(srcMat, H-min)
	
	channel = size(out)
	
	for i = 1: channel
		dstMat(:,:,i) = out(i)
	end
	
endfunction