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