Getting probabilities in CvStatModel (Feature #3401)
Description
Hello,
would it be possible to add parameter in predict method to get result probabilities?
something like this:
predict(const Mat& samples, Mat* results=0, Mat* probabilities=0 )
I've looked at code for CvNormalBayesClassifier and there is even comment suggesting that this value is already present in the code (/* probability = exp( -0.5 * cur ) */
) so i guess that it would it be fairly simple to make this value accessible.
Thanks.
Associated revisions
Added result_probabilities parameter to CvNormalBayesClassifier::predict method. Issue #3401
Merge pull request #3401 from SpecLad:optflow-bogus-Warray-bounds
History
Updated by Alexander Smorkalov over 11 years ago
Thank you for proposal. We cannot just add additional parameter to method in branch 2.4 right now, because it breaks binary compatibility with previous release. But I think it is possible in master.
- Assignee deleted (
Maria Dimashova) - Target version set to Next Hackathon
Updated by Nikita Manovich about 11 years ago
Hi,
If you can prepare a pull request for the functionality it will help us a lot. You can find all necessary information here: http://www.code.opencv.org/projects/opencv/wiki/How_to_contribute
- Difficulty deleted (
Easy) - Assignee set to Mikulas Krupicka
- Status changed from New to Open
Updated by Vladislav Vinogradov about 11 years ago
- Pull request set to https://github.com/Itseez/opencv/pull/2223
- Target version deleted (
Next Hackathon)
Updated by Vladislav Vinogradov about 11 years ago
The pull request was merged into master branch.
Thank you for contribution!
- Target version set to 3.0
- Status changed from Open to Done