summaryrefslogtreecommitdiff
path: root/macros/ind2gray.sci
blob: d2c8eee85a6da1e9757fa6fe75e82f868102e7d6 (plain)
1
2
3
4
5
6
7
8
function [output] = ind2gray(img,colormap)
	image = mattolist(img);
	a = opencv_ind2gray(image,colormap)
	d = size(a);
	for i=1:d
		output(:,:,i) = a(i);
	end
endfunction