summaryrefslogtreecommitdiff
path: root/macros/xyz2rgb.sci
diff options
context:
space:
mode:
Diffstat (limited to 'macros/xyz2rgb.sci')
-rw-r--r--macros/xyz2rgb.sci8
1 files changed, 8 insertions, 0 deletions
diff --git a/macros/xyz2rgb.sci b/macros/xyz2rgb.sci
new file mode 100644
index 0000000..d557939
--- /dev/null
+++ b/macros/xyz2rgb.sci
@@ -0,0 +1,8 @@
+function [output] = xyz2rgb(img)
+ image = mattolist(img);
+ a = opencv_xyz2rgb(image);
+ d = size(a);
+ for i=1:d
+ output(:,:,i) = a(i);
+ end
+endfunction