getExactColor beginning fix

For the nonzero() to work like matlab find() (i.e. get linear indices of
a matrix where element is nonzero), numpy needs linear input.
Array-traversal in numpy is not possible linearly as in MATLAB