1 2 3 4 5 6 7 8
function [out]=bwlookup(image,lut) image1=mattolist(image); a=opencv_bwlookup(image1,lut); dimension=size(a) for i = 1:dimension out(:,:,i)=a(i); end endfunction;