Move cv::Mat out of core.hpp

This commit is contained in:
Andrey Kamaev
2013-03-28 21:01:12 +04:00
parent 135c0b6cb5
commit 715fa3303e
46 changed files with 1854 additions and 1731 deletions

View File

@@ -1655,10 +1655,10 @@ CvBoost::predict( const CvMat* _sample, const CvMat* _missing,
const int* cmap = data->cat_map->data.i;
const int* cofs = data->cat_ofs->data.i;
cv::Mat sample = _sample;
cv::Mat sample = cv::cvarrToMat(_sample);
cv::Mat missing;
if(!_missing)
missing = _missing;
missing = cv::cvarrToMat(_missing);
// if need, preprocess the input vector
if( !raw_mode )

View File

@@ -861,7 +861,7 @@ float CvRTrees::predict_prob( const Mat& _sample, const Mat& _missing) const
Mat CvRTrees::getVarImportance()
{
return Mat(get_var_importance());
return cvarrToMat(get_var_importance());
}
// End of file.

View File

@@ -4142,7 +4142,7 @@ void CvDTree::read( CvFileStorage* fs, CvFileNode* node, CvDTreeTrainData* _data
Mat CvDTree::getVarImportance()
{
return Mat(get_var_importance());
return cvarrToMat(get_var_importance());
}
/* End of file. */