I have developed a form where i need to select an image from file explorer.
But, when i select an image using,
it returns address in "String^" form.Code:objOpenFileDialog->ShowDialog(); System::String^ imgName = objFileDialog->FileName;
Problem is that, i need in "String" to make some string operations like,
orCode:string path = imgName;
trim image full path to image name only etc...Code:Mat img = imread(imgName, CV_LOAD_IMAGE_GRAYSCALE);
How can i get path of an image in String format ???