Commit b71a27b9 authored by Miguel Algaba's avatar Miguel Algaba

Assert fix: allow one cluster as valid parameter

parent d69b7c33
......@@ -61,7 +61,7 @@ public:
void setClustersNumber(int val)
{
nclusters = val;
CV_Assert(nclusters > 1);
CV_Assert(nclusters >= 1);
}
int getClustersNumber() const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment