projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b53d777
)
uncommented fix of write/read keypoints
author
Maria Dimashova
<no@email>
Fri, 17 Sep 2010 12:32:57 +0000
(12:32 +0000)
committer
Maria Dimashova
<no@email>
Fri, 17 Sep 2010 12:32:57 +0000
(12:32 +0000)
modules/features2d/src/keypoint.cpp
patch
|
blob
|
history
diff --git
a/modules/features2d/src/keypoint.cpp
b/modules/features2d/src/keypoint.cpp
index
9082097
..
7435cfe
100644
(file)
--- a/
modules/features2d/src/keypoint.cpp
+++ b/
modules/features2d/src/keypoint.cpp
@@
-59,7
+59,7
@@
void write(FileStorage& fs, const string& objname, const vector<KeyPoint>& keypo
write(fs, kpt.angle);
write(fs, kpt.response);
write(fs, kpt.octave);
-
//
write(fs, kpt.class_id);
+ write(fs, kpt.class_id);
}
}
@@
-71,7
+71,7
@@
void read(const FileNode& node, vector<KeyPoint>& keypoints)
for( ; it != it_end; )
{
KeyPoint kpt;
- it >> kpt.pt.x >> kpt.pt.y >> kpt.size >> kpt.angle >> kpt.response >> kpt.octave
/* >> kpt.class_id*/
;
+ it >> kpt.pt.x >> kpt.pt.y >> kpt.size >> kpt.angle >> kpt.response >> kpt.octave
>> kpt.class_id
;
keypoints.push_back(kpt);
}
}