Removed unused constructor.

This commit is contained in:
Jin Ma
2013-09-23 15:10:00 +08:00
parent 1bfe39f485
commit b88f5302e2
2 changed files with 1 additions and 12 deletions

View File

@@ -63,13 +63,7 @@ KNearestNeighbour::KNearestNeighbour()
KNearestNeighbour::~KNearestNeighbour()
{
clear();
}
KNearestNeighbour::KNearestNeighbour(const Mat& train_data, const Mat& responses,
const Mat& sample_idx, bool is_regression, int max_k)
{
max_k = max_k;
CvKNearest::train(train_data, responses, sample_idx, is_regression, max_k);
samples_ocl.release();
}
void KNearestNeighbour::clear()