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)
-
* Introduction - The solution shows panorama image from multi images. The panorama images is processing by real-time stitching algorithm...
-
As you can see in the following video, I created a class that stitching n cameras in real time. https://www.youtube.com/user/feelmare/sear...
-
Image size of origin is 320*240. Processing time is 30.96 second took. The result of stitching The resul...
-
In past, I wrote an articel about YUV 444, 422, 411 introduction and yuv <-> rgb converting example code. refer to this page -> ht...
-
refer to code: - x = 0.003 formatted_x = " {:.1e} " . format ( x ) print ( formatted_x ) # Output will be "3.0e-03"...
-
Logistic Classifier The logistic classifier is similar to equation of the plane. W is weight vector, X is input vector and y is output...
-
The latent SVM tells the learning method used in this paper -> "Discriminatively trained deformable part models". The authors s...
-
The code need to install two YouTube downloader package. Those are pytube, youtube_dl. This code try to use one of them because sometime it&...
-
fig 1. Left: set 4 points (Left Top, Right Top, Right Bottom, Left Bottom), right:warped image to (0,0) (300,0), (300,300), (0,300) Fi...
No comments:
Post a Comment