Assert fix: allow one cluster as valid parameter

This commit is contained in:
Miguel Algaba 2015-10-01 16:45:59 +02:00
parent d69b7c332a
commit b71a27b96c

View File

@ -61,7 +61,7 @@ public:
void setClustersNumber(int val) void setClustersNumber(int val)
{ {
nclusters = val; nclusters = val;
CV_Assert(nclusters > 1); CV_Assert(nclusters >= 1);
} }
int getClustersNumber() const int getClustersNumber() const