//==============================================================================
// Allan CORNET - 2012 - DIGITEO
//
// IPCV - Scilab Image Processing and Computer Vision toolbox
// Copyright (C) 2017  Tan Chin Luh
//==============================================================================
// unit test mat2gray
//==============================================================================

M = [0:10;0:10];
I = mat2gray(M);
assert_checkequal(min(I),0);
assert_checkequal(max(I),1);
//==============================================================================
