Mercurial > hg > mauch-mirex-2010
view _FullBNT/KPMtools/rgb2grayKPM.m @ 9:4ea6619cb3f5 tip
removed log files
author | matthiasm |
---|---|
date | Fri, 11 Apr 2014 15:55:11 +0100 |
parents | b5b38998ef3b |
children |
line wrap: on
line source
function g = rgb2grayKPM(rgb) % function g = rgb2grayKPM(rgb) % rgb2grayKPM Like the built-in function, but if r is already gray, does not cause an error [nr nc ncolors] = size(rgb); if ncolors > 1 g = rgb2gray(rgb); else g = rgb; end