Hi! I am new to OpenCv and C++.
I word with Visual Studio 2013 and I want save an image with the saveFileDialog or with folderBrowserDialog from windows forms? Is that even possible?
I tried this but I get an error at the line "cv::imwrite(name, image); " : no suitable constructor exists to convert from "System::String^ to cv::String"
saveFileDialog1->Filter = "JPEG Image|*.jpg|Bitmap Image|*.bmp|Gif Image|*.gif";
saveFileDialog1->Title = "Save Image";
saveFileDialog1->ShowDialog();
if (saveFileDialog1->ShowDialog() == System::Windows::Forms::DialogResult::OK){
String^ name = saveFileDialog1->FileName;
cv::imwrite(name, image);
MessageBox::Show("Successfully saved");
}
Any suggestions?
Thanks!