Ask Your Question
0

opencv equivalent of cell2matfrom matlab

asked 2020-01-20 12:50:15 -0600

Theodor8 gravatar image

HI, I have a std::vector of 8X8 cv::Mat objects. I want to create a bigger cv::Mat object of columns n and rows m (multiple of 8, of course), by concatenating those cv::Mat objects from the std::vector. Can anybody help me with this?

Thanks in advance!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-01-20 14:14:25 -0600

mvuori gravatar image

Just loop and build rows with hconcat and concate the rows with vconcat, or the other way around.

edit flag offensive delete link more

Comments

great, thank you!

Theodor8 gravatar imageTheodor8 ( 2020-01-22 08:29:48 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2020-01-20 12:45:54 -0600

Seen: 119 times

Last updated: Jan 20 '20