summaryrefslogtreecommitdiff
path: root/macros/graydist.sci
blob: fc3c081883e74b1aebb98c559bb2086574269ac6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
function[dstImg] = graydist(srcImg, mask)
	
	srcMat = mattolist(srcImg)

	out = opencv_graydist(srcMat, mask)
	
	channels = size(out)
	
	for i = 1:channels
		dstImg(:,:,i) = out(i)
	end
	
endfunction