I have used this code of HOG (Histogram of gradient) for clustering the text-images. I have got the row vector 1x1440 . How can i pass it into k mean clustering algorithm for clustering.
img = imread('1.jpg');
[featureVector,hogVisualization] = extractHOGFeatures(img);
Here, my k-mean clustering code: I cannot pass a complete feature vector as one feature(single value).
inputFeature = featorvector;
[cidx2,extra] = kmeans(inputFeature,2);