fixed several test failures; currently 9 out of 73 tests fail

This commit is contained in:
Vadim Pisarevsky
2014-10-16 17:00:40 +04:00
parent 06d4aa6060
commit 162384a838
9 changed files with 67 additions and 25 deletions

View File

@@ -132,6 +132,26 @@ namespace cv
}
}
void write(FileStorage& fs) const
{
fs << "extended" << (int)extended;
fs << "upright" << (int)upright;
fs << "threshold" << threshold;
fs << "octaves" << octaves;
fs << "sublevels" << sublevels;
fs << "diffusivity" << diffusivity;
}
void read(const FileNode& fn)
{
extended = (int)fn["extended"] != 0;
upright = (int)fn["upright"] != 0;
threshold = (float)fn["threshold"];
octaves = (int)fn["octaves"];
sublevels = (int)fn["sublevels"];
diffusivity = (int)fn["diffusivity"];
}
bool extended;
bool upright;
float threshold;