Skip to search.
OpenCV · Open Source Computer Vision Library Comm

Group Information

  • Members: 30001
  • Category: Open Source
  • Founded: Jun 20, 2000
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Messages

  Messages Help
Advanced
BUG in CvSVM::write and CvSVM::read() (patch included)   Message List  
Reply Message #48635 of 87940 |
there are two kinds of bugs:

1) write() does not close the structure on output storage after it is done.

2) neither write() nor read() handle multiclass SVMs properly. in the
case of write(), this is due to not closing the structure correctly
again. in the case of read(), there is a missing CV_NEXT_SEQ_ELEM().

This patch fixes both of these problems.

ali.

rahimi@keerkoloft:~/Desktop/opencv-1.0.0/ml/src$ diff -ub
../../../tmp/opencv-1.0.0/ml/src/mlsvm.cpp mlsvm.cpp



--- ../../../tmp/opencv-1.0.0/ml/src/mlsvm.cpp 2006-08-18
05:56:30.000000000 -0700
+++ mlsvm.cpp 2007-07-25 11:56:55.000000000 -0700
@@ -1724,8 +1724,10 @@
}
else
CV_ASSERT( sv_count == sv_total );
+ cvEndWriteStruct( fs );
}
cvEndWriteStruct( fs );
+
cvEndWriteStruct( fs );

__END__;
@@ -1928,6 +1930,8 @@
}
else
df[i].sv_index = 0;
+
+ CV_NEXT_SEQ_ELEM(df_node->data.seq->elem_size, reader);
}

create_kernel();
@@ -2304,4 +2308,3 @@
#endif

/* End of file. */
-




Wed Jul 25, 2007 7:07 pm

ali@...
Send Email Send Email

Message #48635 of 87940 |
Expand Messages Author Sort by Date

there are two kinds of bugs: 1) write() does not close the structure on output storage after it is done. 2) neither write() nor read() handle multiclass SVMs...
Ali Rahimi
ali@... Send Email
Aug 2, 2007
8:12 am

hello,I try it as you said , but it doesn't even matter. there is still an error when the program run...
jilijun
jlj19860202 Offline Send Email
Feb 28, 2011
11:19 am
Advanced

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help