Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 4615

Set multiple rows and single column at the same time in Matrix

$
0
0
Hi, i'd like to know how to set multiple rows and single column at the same time in Matrix. Ex: Mat my_matrix = Mat::zeros(100, 4, CV_32S); suppose that I want to set: - rows 0-24 column 1 as 1; - rows 25-49 column 2 as 1; - rows 50-74 column 3 as 1; - rows 75-99 column 4 as 1;

Viewing all articles
Browse latest Browse all 4615


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>