I am using random forest function in scikit learn for segmentation of image. However i am not able to create an input to the function clf.fit(X,Y). X is a training matrix of (n_samples,n_features), Y is a target matrix of (n_samples,) in which the last attribute is the labels of the target class. I want to train 50 images with four-five features, like HOG features,RGB features,f17 filter and texon map.
Can anyone please help me create the matrix X and Y. Thanks!