summaryrefslogtreecommitdiff
path: root/macros/graycoprops.sci
blob: d33c2a063bcae78e192d0428a6ab9e2cad2dbf8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
function[stats] = graycoprops(srcImg, varargin)

	[lhs, rhs] = argn(0)
	
	srcMat = mattolist(srcImg)

	select rhs
		case 1 then
			out = graycoprops(srcMat)
		case 2 then
			out = graycoprops(srcMat, varargin(1))
		end
	
	channels = size(out)
	
	for i = 1:channels
		stats(:,:,1) = out(1)
	end
endfunction