blob: ae2cd7b97cc4a5bbf983523b807259927b3d71b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
function [output] = lab2xyz(vartype,varargin)
[lhs rhs] = argn(0);
if(rhs>3)
eror(msprintf("Too many input arguments"));
end
select rhs
case 1 then
a = opencv_lab2xyz(vartype);
case 2 then
a = opencv_lab2xyz(vartype,varargin(0));
case 3 then
a = opencv_lab2xyz(vartype,varargin(0),varargin(1));
end
d = size(a);
for i=1:d
output(:,:,i) = a(i);
end
endfunction
|