summaryrefslogtreecommitdiff
path: root/macros/rgb2lab.sci
diff options
context:
space:
mode:
Diffstat (limited to 'macros/rgb2lab.sci')
-rw-r--r--macros/rgb2lab.sci10
1 files changed, 10 insertions, 0 deletions
diff --git a/macros/rgb2lab.sci b/macros/rgb2lab.sci
new file mode 100644
index 0000000..0035bd5
--- /dev/null
+++ b/macros/rgb2lab.sci
@@ -0,0 +1,10 @@
+//Author- Sridhar Reddy
+//inputImage should be matrix
+function [outputImg]=rgb2lab(inputImage)
+ inputList=mattolist(inputImage);
+ outputList=opencv_rgb2lab(inputList);
+ disp(outputList(2));
+ for i=1:size(outputList)
+ outputImg(:,:,i)=outputList(i)
+ end
+endfunction