bool fileExists(const char* path) { FILE* file; bool exists; file = fileOpen(path, "r"); exists = file != 0; if (file) fclose(file); return exists; } FILE* fileOpen(const char* path, const char* mode) { char path_[PATH_MAX]; assert(path); resolvePath(path_, sizeof(path_), path); FILE* fp; fopen_s(&fp, path_, mode); return fp; }
12/28/2016
File exist check code
Subscribe to:
Post Comments (Atom)
-
This is data acquisition source code of LMS511(SICK co.) Source code is made by MFC(vs 2008). The sensor is communicated by TCP/IP. ...
-
Logistic Classifier The logistic classifier is similar to equation of the plane. W is weight vector, X is input vector and y is output...
-
Created Date : 2011.2 Language : C/C++ Tool : Microsoft Visual C++ 2010 Library & Utilized : OpenCV 2.2 Reference : Interent Refer...
-
Background subtractor example souce code. OpenCV support about 3 types subtraction algorithm. Those are MOG, MOG2, GMG algorithms. Det...
-
This post is about how to copy Mat data to vector and copy vector data to Mat. Reference this example source code. printf ( "/////...
-
This example source code is to extract HOG feature from images. And save descriptors to XML file. The source code explain how to use HOGD...
-
Image size of origin is 320*240. Processing time is 30.96 second took. The result of stitching The resul...
-
EMD(earth mover distance) method is very good method to compare image similarity. But processing time is slow. For using the EMD compare, ...
-
* Introduction - The solution shows panorama image from multi images. The panorama images is processing by real-time stitching algorithm...
-
I use MOG2 algorithm to background subtraction. The process is resize to small for more fast processing to blur for avoid noise affectio...
No comments:
Post a Comment