Convert float array image to a format usable for opencv

前端 未结 2 1931
一向
一向 2021-02-09 18:19

i wonder if there is a easy way to convert my float array image to iplimage, which can be handled by opencv. Of course i could create an empty iplimage with the same size and ju

2条回答
  •  长发绾君心
    2021-02-09 19:12

    You can fill an iplimage structure 'by hand' to describe your array following the comments here.

    The field imageData will point to your original array.

    But then don't use deallocation functions on it. Just delete the structure in the end.

提交回复
热议问题