summaryrefslogtreecommitdiff
path: root/macros/imhistmatch.sci
blob: 0792aefd6734d6bb31875d4dce126c0ace672dbe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function [outputImg]=imhistmatch(inputImage,refImage,varargin)
     [lhs rhs]=argn(0);
    if rhs>3
        error(msprintf(" Too many input arguments"));
    end
    inputList=mattolist(inputImage);
    refList=mattolist(refImage);
    select rhs
        case 2 then
            outputList=opencv_imhistmatch(inputList,refList);
        case 3 then
            outputList=opencv_imhistmatch(inputList,refList,varargin(1));
   end
    for i=1:size(outputList)
        outputImg(:,:,i)=outputList(i)
    end
endfunction