[go: up one dir, main page]

Menu

Diff of /lv_io.h [000000] .. [r1]  Maximize  Restore

Switch to side-by-side view

--- a
+++ b/lv_io.h
@@ -0,0 +1,71 @@
+/****************************************************************************
+* 
+* Copyright (c) 2006 by JIA Pei, all rights reserved.
+* Copyright (c) 2006 by Vision Open: http://www.visionopen.com/
+*
+* Author:      	JIA Pei
+* Contact:     	jp4work@gmail.com
+* URL:		http://www.visionopen.com/members/jiapei.php
+* The author administrates Vision Open -- http://www.visionopen.com
+*
+* This program is free software; you can redistribute it and/or modify it 
+* under the terms of the GNU General Public License as published by the 
+* Free Software Foundation.
+*
+* This program is distributed in the hope that it will be useful, but 
+* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 
+* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 
+* for more details.
+* 
+* You should have received a copy of the GNU General Public License along 
+* with this program; if not, write to the Free Software Foundation, Inc., 
+* 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+* 
+* This software is partly based on the following open source: 
+*  
+*		- Boost 
+*		- OpenCV 
+* 
+* This software is using IMM Face Database, which can be downloaded from
+* http://www2.imm.dtu.dk/~aam/.
+*
+* M. B. Stegmann, B. K. Ersb{\o}ll, and R. Larsen. FAME - a flexible appearance 
+* modelling environment. IEEE Trans. on Medical Imaging, 22(10):1319-1331, 2003
+*
+****************************************************************************/
+
+// $Id: lv_io.h,v 1.1.1.1 2006-09-03 17:49:04 JIA Pei Exp $ 
+
+#ifndef  __lv_io__
+#define  __lv_io__
+
+#include <vector>
+
+using namespace std;
+
+
+
+/**
+
+    @author     JIA Pei
+
+    @version    2006-09-01
+
+    @brief      Longer Vision I/O methods.
+
+*/
+class lv_io
+{
+public:
+
+    // scan all files with the "extension" under "path" directory and sort them. Based on BOOST.
+    static vector<string>       ScanNSortDirectory(const string &path, const string &extension );
+
+    // Adds a terminating backslash to a path (if it doesn't exits already).
+    static string               AddBackSlash( const string &path );
+    
+
+};
+
+#endif  // __lv_io__
+