1 | initial version |
hi zulfiqar ,
it probably works if you change the type of histogram from vector<Mat>
to Mat
and the type of hist_bast to plain Mat, too. (that worked for in 3.0)
kmeans tries to resolve the inputArray as a Mat, and that fails, if you pass a vector<Mat>
.
that's probably a bug. _InputArray::getMat(int i=-1) code tries to index the vector<Mat>
, there the assertion.
2 | No.2 Revision |
hi zulfiqar ,
it probably works if you change the type of histogram from vector<Mat>
to Mat
and the type of hist_bast to plain Mat, too. (that worked for in 3.0)
kmeans tries to resolve the inputArray as a Mat, and that fails, if you pass a vector<Mat>
.
that's probably a bug. _InputArray::getMat(int i=-1) code tries to index the vector<Mat>
, there the assertion.
btw:
// hue varies from 0 to 180, saturation from 0 to 256
float h_ranges[] = { 0, 180 };
float s_ranges[] = { 0, 256 };