diff options
Diffstat (limited to 'macros/rgb2xyz.sci')
-rw-r--r-- | macros/rgb2xyz.sci | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/macros/rgb2xyz.sci b/macros/rgb2xyz.sci new file mode 100644 index 0000000..b15d2ce --- /dev/null +++ b/macros/rgb2xyz.sci @@ -0,0 +1,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 |