c++ - How to load an OpenCV Mat object into a Label? -
how can set opencv mat image object c++/cli label? have tried following.
mat image = imread("c:/users/public/pictures/sample pictures/desert.jpg"); imagelabel->backgroundimage = image;
but generating errors.
error 1 error c2664: 'void system::windows::forms::control::backgroundimage::set(system::drawing::image ^)' : cannot convert parameter 1 'cv::mat' 'system::drawing::image ^' c:\users\yohan\documents\visual studio 2010\projects\opencvfinaltest\opencvfinaltest\form1.h 144 1 opencvfinaltest
any ideas?
Comments
Post a Comment