Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV3: KNN classifier Feature matrix data type

Hello! Hope someone can help me out clarifying this. According to the documentation I've read, the KNN classifier takes a feature matrix of type CV_32FC1. So, what range should the data be in?

So far I've been experimenting with just plain pixel data in the ol' range [0, 255] but further, I plan to train on some normalized (feature) vectors containing float data in the range [0.0, 1.0]. Shouldn't be any problem, right?

Thanks for the info!!