I have a binary matrix and would like to get indices of nonzero elements, preferably in the form of a cv :: Points vector. There is a function that counts non-zero elements, but this is not what I need.
In Matlab, an equivalent call will simply find ().
I could search the entire matrix and save indexes, but this is not cool!
source
share