Code covered by the BSD License  

Highlights from
Objects/Faces Detection Toolbox

image thumbnail
from Objects/Faces Detection Toolbox by Sebastien PARIS
Objects/Faces detection using Local Binary Patterns and Haar features

d2uint8_image(I)
function Y = d2uint8_image(I)


minI = min(I(:));
maxI = max(I(:));
Y    = uint8(255*(I - minI)./(maxI-minI));

Contact us at files@mathworks.com