synthesis

Convert Mat to Array/Vector in OpenCV

被刻印的时光 ゝ 提交于 2019-11-26 06:28:47
问题 I am novice in OpenCV. Recently, I have troubles finding OpenCV functions to convert from Mat to Array. I researched with .ptr and .at methods available in OpenCV APIs, but I could not get proper data. I would like to have direct conversion from Mat to Array(if available, if not to Vector). I need OpenCV functions because the code has to be undergo high level synthesis in Vivado HLS. Please help. 回答1: If the memory of the Mat mat is continuous (all its data is continuous), you can directly