Comments (4)
I'm stuck at the same place - any word on what the deal is?
from vlfeat.
Thank you for reporting this problem. I can only assume that it is Octave-specific, since the library works correctly with MATLAB. Could you please confirm your environment?
from vlfeat.
Octave 3.6.4 on Mac OS X 10.8.5
Lewis Barnett
Dept. of Math and CS, University of Richmond
On Apr 7, 2014, at 2:36 PM, Andrea Vedaldi <[email protected]mailto:[email protected]>
wrote:
Thank you for reporting this problem. I can only assume that it is Octave-specific, since the library works correctly with MATLAB. Could you please confirm your environment?
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/32#issuecomment-39766874.
from vlfeat.
I can offer a little more information on this problem. After applying the fixes to phow_caltech101 suggested by gmnamra, the error was occurring during the process of computing spatial histograms. In the loop over images, a call is made to getImageDescriptor with a file read in using the imread() function. This is an MxNx3 matrix from a .jpeg file.
In getImageDescriptor, the error occurs when vl_phow() is called on the image. By this point, the image has been passed through standarizeImage() (by the way, I suspect that name should be "standardizeImage"), which should have converted the image to single format.
vl_phow() passes each color channel of the image to vl_dsift(), which sometimes produces this error complaining that the image matrix isn't SINGLE.
This can be corrected by changing the parameter to vl_dsift() from ims(:,:,k) to im2single(ims(:,:,k)).
For whatever reason, if an rgb image is converted to single, then one color channel extracted, vl_dsift doesn't recognize the resulting 2D matrix as being type single, so it is important that the call to im2single operates on the final matrix going to vl_dsift.
With that fixed, octave gets past the image that was causing that error, but segfaults on a later image in that same loop.
If I could make a suggestion, the error message from the vl_dsift.c code produced in this case isn't as informative as it could be - the same error message is produced whether the image passed in is not grayscale or is not single. Splitting those cases out would be helpful. Maybe by definition an rgb image in matrix form isn't "single" format, but I was assuming that "single" format referred to the intensity values being normalized to be single precision floating point values between 0 and 1.
from vlfeat.
Related Issues (20)
- Memory issue in sift.c caused by vl_pgm_extract_head
- If random number generator is thread-safe for any hardware? What are the requirements for any hardware?
- error: ‘vl_infinity_d’ not specified in enclosing ‘parallel’ HOT 11
- Carmack fast inverse sqrt and vector normalize
- vl_covdet_put_image segfaults on small images
- Question on SIFT HOT 2
- Python bindings HOT 1
- How to use vlfeat build KD-TREE?
- pgm file judging condiction
- `vl_covdet_extract_orientations()` does not check OOM condition of `vl_covdet_extract_orientations_for_frame()` HOT 1
- `vl_covdeg_get_laplacian_peak_threshold` function name is error in `covdet.h`
- vl_kdtreequery() and vl_kdtreebuild()
- Markup leaking into HTML
- error: unknown type name 'EXTERN_C' HOT 1
- Building VLFeat on Mac M1 for ARM Architecture HOT 2
- Erroneous line in vl_test_hog.m
- Error in vl_hog.c
- Error in vl_scalespacegeometry_is_equal in scalspace.c
- error: ‘vl_infinity_d’ not specified in enclosing ‘parallel’
- https://www.vlfeat.org/ can not open
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vlfeat.