Ask Your Question

Revision history [back]

// convert the LPCTSTR to string

string PointToString(LPCTSTR filepath) {

//this function has a filepath input and string output
std::stringstream ss;
ss << filepath;
return ss.str();

}

BOOL DisplayImage(LPCTSTR pszImageFilePath) { string imagepath = PointToString(pszImageFilePath);

Mat im = imread(imagepath);

if (!im.data) {
    return FALSE;
}

}

// convert the LPCTSTR to string

string PointToString(LPCTSTR filepath) {

//this function has a filepath input and string output
std::stringstream ss;
ss << filepath;
return ss.str();

}

BOOL DisplayImage(LPCTSTR pszImageFilePath) { string imagepath = PointToString(pszImageFilePath);

Mat im = imread(imagepath);

if (!im.data) {
    return FALSE;
}

}

// convert the LPCTSTR to string

string PointToString(LPCTSTR filepath) {

{
    //this function has a filepath input and string output
 std::stringstream ss;
 ss << filepath;
 return ss.str();

}

} BOOL DisplayImage(LPCTSTR pszImageFilePath) { pszImageFilePath){ string imagepath = PointToString(pszImageFilePath);

PointToString(pszImageFilePath);
    Mat im = imread(imagepath);
  if (!im.data) {
     return FALSE;
}

} }}

// convert the LPCTSTR to stringstring PointToString(LPCTSTR filepath)

string PointToString(LPCTSTR filepath) { //this function has a filepath input and string output {

std::stringstream ss;
 ss << filepath;
 return ss.str();
ss.str(); }

//function call

BOOL DisplayImage(LPCTSTR pszImageFilePath){ pszImageFilePath){

string imagepath = PointToString(pszImageFilePath);
 Mat im = imread(imagepath);
 if (!im.data) {
     return FALSE;
    }}

}}

 string PointToString(LPCTSTR filepath)

{

filepath){
std::stringstream ss;
ss << filepath;
return ss.str(); }

//function call

BOOL DisplayImage(LPCTSTR pszImageFilePath){

pszImageFilePath){
string imagepath = PointToString(pszImageFilePath);
Mat im = imread(imagepath);
if (!im.data) {
return FALSE;
}}
 string PointToString(LPCTSTR filepath){
filepath){               //function to convert LPCTSRT to string
std::stringstream ss;
ss << filepath;
return ss.str(); }



//your function

 BOOL DisplayImage(LPCTSTR pszImageFilePath){
string imagepath = PointToString(pszImageFilePath);
PointToString(pszImageFilePath);   //call function PointToString
Mat im = imread(imagepath);
if (!im.data) {
    return FALSE;
}}