visual-search/util/getGreyscale.m

5 lines
110 B
Objective-C

function gryimg=getGreyscale(img)
gryimg = img(:,:,1) * 0.3 + img(:,:,2) * 0.59 + img(:,:,3) * 0.11;
return;