summaryrefslogtreecommitdiff
path: root/macros/imextendedmax.sci
blob: 450e2900c8db64396c5a7e868f5669f8a1b35ec1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
function[dstMat] = imextendedmax(srcImg, Hmax)

	srcMat = mattolist(srcImg)

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