summaryrefslogtreecommitdiff
path: root/macros/rgb2lab.sci
blob: 0035bd5e0120ba4dae74d21acb6daec02434c446 (plain)
1
2
3
4
5
6
7
8
9
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