move soft cascade octave to ml module

This commit is contained in:
marina.kolpakova
2013-01-09 16:03:53 +04:00
parent a0e93d0482
commit dd8de0c41f
5 changed files with 498 additions and 410 deletions

View File

@@ -127,12 +127,12 @@ int main(int argc, char** argv)
cv::Rect boundingBox = cfg.bbox(it);
std::cout << "Object bounding box" << boundingBox << std::endl;
sft::Octave boost(boundingBox, npositives, nnegatives, *it, shrinkage);
cv::Octave boost(boundingBox, npositives, nnegatives, *it, shrinkage);
std::string path = cfg.trainPath;
sft::Dataset dataset(path, boost.logScale);
sft::ScaledDataset dataset(path, boost.logScale);
if (boost.train(dataset, &pool, cfg.weaks, cfg.treeDepth))
if (boost.train(&dataset, &pool, cfg.weaks, cfg.treeDepth))
{
CvFileStorage* fout = cvOpenFileStorage(cfg.resPath(it).c_str(), 0, CV_STORAGE_WRITE);
boost.write(fout, cfg.cascadeName);