Ask Your Question

black9's profile - activity

2017-05-26 01:48:19 -0600 commented answer image.data won't load

@LBerger yea ! you may be right. But I don't find any logic in that SYSTEM is compiling and not picking the image. I ran the code and first error i got was from logic "if(argc !=2)" in vs2017

2017-05-25 23:53:57 -0600 answered a question image.data won't load

your problem is with your " argc " in main(int argc, char** argv)

since it is not going to handle====logic====

if( argc != 2)

2017-05-25 22:50:16 -0600 answered a question imread and CString
 string PointToString(LPCTSTR 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);   //call function PointToString
Mat im = imread(imagepath);
if (!im.data) {
    return FALSE;
}}
2017-05-24 23:17:26 -0600 answered a question How to know if a camera is stationary or moving?

work with overall optical flow + contour(by motion detection)

2017-05-24 23:12:29 -0600 answered a question recover the shape from edge-only picture?

make your own contour mapping code. and try to catch your regeion.

https://www.youtube.com/watch?v=-0RQW...

https://www.youtube.com/watch?v=McRHC...

2017-05-24 22:56:34 -0600 received badge  Editor (source)
2017-05-24 12:03:23 -0600 answered a question Findcontours() deallocation error

Bro after 15 hour of struggle i concluded that

define your variable UNDER NAMESPACES

using namespace std;

using namespace cv;

vector< vector<point> > contours;

vector<vec4i> hierarchy;

100 % it will work have a nice since there will be no need of deallocating the memory :-)