Hugin trunk 0.1
Loading...
Searching...
No Matches
DirTraverser.h
Go to the documentation of this file.
1// -*- c-basic-offset: 4 -*-
2
27#include <wx/dir.h>
28#include <wx/filename.h>
29
30class DirTraverser : public wxDirTraverser
31{
32public:
33 DirTraverser():wxDirTraverser() { }
34
35 //Called when directory traverser evaluates a file
36 virtual wxDirTraverseResult OnFile(const wxString& file)
37 {
38 wxFileName fileName(file);
39 wxString ext = fileName.GetExt();
40 //we add all project files to array
41 if (ext.CmpNoCase("pto") == 0 || ext.CmpNoCase("ptp") == 0||
42 ext.CmpNoCase("pts") == 0|| ext.CmpNoCase("oto") == 0)
43 {
44 projectFiles.Add(file);
45 }
46
47 //TO-DO: include image file heuristics to detect potential projects
48 return wxDIR_CONTINUE;
49 }
50
51 //Called when directory traverser evaluates a directory
53 {
54 return wxDIR_CONTINUE;
55 }
56
57 //Returns an array with all project files found
62private:
64};
virtual wxDirTraverseResult OnFile(const wxString &file)
virtual wxDirTraverseResult OnDir(const wxString &WXUNUSED(dir))
wxArrayString GetProjectFiles()
wxArrayString projectFiles
std::vector< deghosting::BImagePtr > threshold(const std::vector< deghosting::FImagePtr > &inputImages, const double threshold, const uint16_t flags)
Threshold function used for creating alpha masks for images.
Definition threshold.h:41