Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.