vlfeat

OpenCV VLFeat Slic function call

泪湿孤枕 提交于 2019-12-12 08:54:52
问题 I am trying to use the vl_slic_segment function of the VLFeat library using an input image stored in an OpenCV Mat. My code is compiling and running, but the output superpixel values do not make sense. Here is my code so far : Mat bgrUChar = imread("/pathtowherever/image.jpg"); Mat bgrFloat; bgrUChar.convertTo(bgrFloat, CV_32FC3, 1.0/255); cv::Mat labFloat; cvtColor(bgrFloat, labFloat, CV_BGR2Lab); Mat labels(labFloat.size(), CV_32SC1); vl_slic_segment(labels.ptr<vl_uint32>(),labFloat.ptr

Null/No SIFT descriptor and keypoints generated in python

寵の児 提交于 2019-12-11 17:52:21
问题 I am trying to create a codebook from a set of image patches. I have divided the images (Caltech 101) into 20 X 20 image patches. I want to create a SIFT descriptor for each patch. But for some of the image patches, it does not return any descriptor/keypoint. I have tried using OpenCV and vlfeat. The behavior is same using any of the libraries. Following is my code using OpenCV - sift = cv2.SIFT() img = cv2.imread('patch_temp.jpg',0) imgptch = cv2.imread('image_patch.jpg',cv2.CV_LOAD_IMAGE

Matconvnet error cl.exe not found

给你一囗甜甜゛ 提交于 2019-12-10 11:21:28
问题 I have installed MatConvNet from VLFeat and I am trying to compile it. But as I am trying to run vl_compilenn it shows the following error: vl_compilenn Warning: CL.EXE not found in PATH. Trying to guess out of mex setup. > In vl_compilenn>check_clpath (line 580) In vl_compilenn (line 413) 'cl.exe' is not recognized as an internal or external command, operable program or batch file. Error using vl_compilenn>check_clpath (line 591) Unable to find cl.exe Error in vl_compilenn (line 413) check

Bag-of-Words (BOW) in VLFeat

馋奶兔 提交于 2019-12-10 00:25:43
问题 I'm building a project Images Classification with Bag-of-Visual-Words (BoVW) using VLFeat library. The BoVW pipeline includes: SIFT k-means Building histogram SVM classification I can use vl_sift and vl_kmeans for (1) and (2), but I don't know how to build histogram features and use them in SVM. 回答1: given that you already have the "dictionary" from vl_kmeans: [centers] = vl_kmeans(data, numClusters); In order to build histogram of image I, you need to get the 128-D descriptors of that image

how to use Vlfeat in Octave in window 7?

六眼飞鱼酱① 提交于 2019-12-08 10:58:21
问题 I use octave and want to use Vlfeat to do my project in Windows 7. The website has suggestion to use from Octave as below: I complete to install package image according to the code in green (first) box. However, I've got stuck to the code in red (second) box. Is the code in red box used in Octave or in Windows command prompt? If No, Where should I use it? Is it in Ubuntu command prompt? I am not accustomed to Ubuntu. To use it without Ubuntu would be much appreciated (Although I have some

Extracting VLAD from SIFT Descriptors in VLFeat with Matlab

无人久伴 提交于 2019-12-06 11:45:59
问题 I have a folder of images. I want to compute VLAD features from each image. I loop over each image, load it, and obtain the SIFT descriptors as follows: repo = '/media/data/images/'; filelist = dir([repo '*.jpg']); sift_descr = {} for i = 1:size(filelist, 1) I = imread([repo filelist(i).name]) ; I = single(rgb2gray(I)) ; [f,d] = vl_sift(I) ; sift_descr{i} = d end However, VLAD requires the matrix of descriptors to be 2D. See here. What is the correct way to process my SIFT descriptors, before

Matconvnet error cl.exe not found

情到浓时终转凉″ 提交于 2019-12-06 07:15:52
I have installed MatConvNet from VLFeat and I am trying to compile it. But as I am trying to run vl_compilenn it shows the following error: vl_compilenn Warning: CL.EXE not found in PATH. Trying to guess out of mex setup. > In vl_compilenn>check_clpath (line 580) In vl_compilenn (line 413) 'cl.exe' is not recognized as an internal or external command, operable program or batch file. Error using vl_compilenn>check_clpath (line 591) Unable to find cl.exe Error in vl_compilenn (line 413) check_clpath(); % check whether cl.exe in path install visual studio community edition ( it's the free edition

need advise on sift feature - is there such thing as a good feature?

人盡茶涼 提交于 2019-12-05 08:12:05
问题 I am trying out vlfeat, got huge amount of features from an image database, and I am testing with the ground truth for mean average precision (MAp). Overall, I got roughly 40%. I see that some of the papers got higher MAp, while using techniques very similar to mine; the standard bag of word. I am currently looking for an answer for obtaining higher MAp for the standard bag of word technique. While I see that there are other implementation such as SURF and what not, let's stick to the

Bag-of-Words (BOW) in VLFeat

自古美人都是妖i 提交于 2019-12-04 22:17:27
I'm building a project Images Classification with Bag-of-Visual-Words (BoVW) using VLFeat library. The BoVW pipeline includes: SIFT k-means Building histogram SVM classification I can use vl_sift and vl_kmeans for (1) and (2), but I don't know how to build histogram features and use them in SVM. given that you already have the "dictionary" from vl_kmeans: [centers] = vl_kmeans(data, numClusters); In order to build histogram of image I, you need to get the 128-D descriptors of that image using vl_sift: [~,D] = vl_sift(I) Each column of D is the descriptor of one interest point (or frame) in

Extracting VLAD from SIFT Descriptors in VLFeat with Matlab

拥有回忆 提交于 2019-12-04 16:46:06
I have a folder of images. I want to compute VLAD features from each image. I loop over each image, load it, and obtain the SIFT descriptors as follows: repo = '/media/data/images/'; filelist = dir([repo '*.jpg']); sift_descr = {} for i = 1:size(filelist, 1) I = imread([repo filelist(i).name]) ; I = single(rgb2gray(I)) ; [f,d] = vl_sift(I) ; sift_descr{i} = d end However, VLAD requires the matrix of descriptors to be 2D. See here . What is the correct way to process my SIFT descriptors, before VLAD encoding? Thank you. First, you need to obtain a dictionary of visual words, or to be more