From 97f2972fc05c4cb6f535df8d0ee49befb5c24c70 Mon Sep 17 00:00:00 2001 From: Maria Dimashova Date: Fri, 17 Sep 2010 12:32:57 +0000 Subject: [PATCH] uncommented fix of write/read keypoints --- modules/features2d/src/keypoint.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/features2d/src/keypoint.cpp b/modules/features2d/src/keypoint.cpp index 908209768..7435cfeb6 100644 --- 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& 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& 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); } }