PatchOptions.hpp
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef PATCHOPTIONS_HPP
00012 #define PATCHOPTIONS_HPP
00013
00014 using namespace cv;
00015 using namespace std;
00016
00020 class PatchOptions
00021 {
00022
00023 public:
00025 enum norm_type {
00026 NORM_NONE,
00027 NORM_ZM,
00028 NORM_ZMUV
00029 };
00030
00031
00032 Point3i win;
00033 Point3i step;
00034 norm_type normopt;
00035 double minvar;
00036 int minvarf;
00039 PatchOptions(Point3i win, Point3i step, norm_type normopt,double minvar=0,int minvarf=0);
00047 PatchOptions(int winxy, int winz, int stepxy, int stepz, norm_type normopt,double minvar=0,int minvarf=0);
00048 PatchOptions(){}
00049 ~PatchOptions();
00050
00051
00053 static const char* norm_type_to_string(norm_type);
00055 void dump(ostream &output) const;
00057 void dump_matlab(ostream &output) const;
00061 friend ostream& operator <<(ostream &output, const PatchOptions &po);
00062
00063 private:
00065 void checkValues();
00066 };
00067
00068 #endif