Merge pull request #5431 from MiguelAlgaba:em_one_cluster

This commit is contained in:
Alexander Alekhin 2015-10-19 15:27:35 +00:00
commit 1648e9292c

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