Ask Your Question

Revision history [back]

open cv functions in matlab

i have installed open cv libraries in matlab by this instructions https://github.com/kyamagu/mexopencv now i want to get BOW output in a single vector. in order to train the neural network i have found this in matlab in order to get the BOW * a = imread('C:\Users\commongh\Pictures\Images for Project\rocks.png'); I = rgb2gray(a); trainer = cv.BOWKMeansTrainer(); dictionary = trainer.cluster(train_descs); extractor = cv.BOWImgDescriptorExtractor('SURF','BruteForce'); extractor.setVocabulary(dictionary); keypoints = cv.SURF(I); descs = extractor.compute(I,keypoints);*

can you please tell me what inputs we should input to cv.BOWKMeansTrainer?

click to hide/show revision 2
No.2 Revision

updated 2015-03-26 06:28:16 -0600

berak gravatar image

open cv functions in matlab

i have installed open cv libraries in matlab by this instructions https://github.com/kyamagu/mexopencv now i want to get BOW output in a single vector. in order to train the neural network i have found this in matlab in order to get the BOW * **

 a = imread('C:\Users\commongh\Pictures\Images for Project\rocks.png');
        I = rgb2gray(a);
        trainer = cv.BOWKMeansTrainer();
        dictionary = trainer.cluster(train_descs);
        extractor = cv.BOWImgDescriptorExtractor('SURF','BruteForce');
        extractor.setVocabulary(dictionary);
        keypoints = cv.SURF(I);
        descs = extractor.compute(I,keypoints);*

extractor.compute(I,keypoints);**

can you please tell me what inputs we should input to cv.BOWKMeansTrainer?