First time here? Check out the FAQ!
answered 2013-08-12 14:29:56 -0600
The returned Mat is of N*1 size (where N is a number of non-zero elements of input Mat) and each of its elements contains row & col of non-zero element of input Mat. Consider it as an array non-zero pixels indexes.