1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 08:13:04 +04:00

Fix missing format when writing Algorithm-based objects

Added a writeFormat() method to Algorithm which must be called by the
write() method of derived classes.
This commit is contained in:
mvukad
2016-03-22 15:19:42 -07:00
parent fd1b66b37d
commit 695e33b25b
33 changed files with 47 additions and 1 deletions
+1
View File
@@ -184,6 +184,7 @@ public:
void write(FileStorage& fs) const
{
writeFormat(fs);
fs << "name" << name
<< "max_bits" << max_bits
<< "exclude_range" << exclude_range
+2
View File
@@ -141,6 +141,7 @@ public:
void write(FileStorage& fs) const
{
writeFormat(fs);
fs << "name" << name
<< "samples" << samples
<< "lambda" << lambda
@@ -250,6 +251,7 @@ public:
void write(FileStorage& fs) const
{
writeFormat(fs);
fs << "name" << name
<< "max_iter" << max_iter
<< "threshold" << threshold;
+1
View File
@@ -265,6 +265,7 @@ public:
void write(FileStorage& fs) const
{
writeFormat(fs);
fs << "name" << name
<< "contrast_weight" << wcon
<< "saturation_weight" << wsat
+5
View File
@@ -83,6 +83,7 @@ public:
void write(FileStorage& fs) const
{
writeFormat(fs);
fs << "name" << name
<< "gamma" << gamma;
}
@@ -161,6 +162,7 @@ public:
void write(FileStorage& fs) const
{
writeFormat(fs);
fs << "name" << name
<< "gamma" << gamma
<< "bias" << bias
@@ -242,6 +244,7 @@ public:
void write(FileStorage& fs) const
{
writeFormat(fs);
fs << "name" << name
<< "gamma" << gamma
<< "contrast" << contrast
@@ -339,6 +342,7 @@ public:
void write(FileStorage& fs) const
{
writeFormat(fs);
fs << "name" << name
<< "gamma" << gamma
<< "intensity" << intensity
@@ -446,6 +450,7 @@ public:
void write(FileStorage& fs) const
{
writeFormat(fs);
fs << "name" << name
<< "gamma" << gamma
<< "scale" << scale