Ask Your Question

Revision history [back]

How to have unique Matrix (Mat)?

Hi I have a Mat matrix and I want to make it unique. for example: Mat k=(Mat_<int>(5,1)<<3 5 4 4 3);

k=[3,5,4,4,3]; I want this : [3,5,4]; non-repetitive elements. Is there any defined functions in opencv?