Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

As @GilLevi pointed out, the error tells you that you try to cluster with less features than number of clusters. Since you haven't showed the whole code it's also not clear how your bow and bowTrainer are related. I'd also add an assertion after imread if your row_img-mat isn't empty.