Skip to main content

A minimal ctypes-based port of some vlfeat functions.

Project description

This is a minimal port of a few components of the matlab interface of the vlfeat library for computer vision to Python.

vlfeat’s core library is written in C. In practice, though, a significant amount of the library lies in the MATLAB interface. This project is a port of a few functions from that interface to python/numpy, using ctypes. It contains only a few functions (the ones needed for py-sdm). The process isn’t very hard, it just takes some effort. Patches adding additional functionality are welcome.

There’s also a fork of vlfeat floating around that includes Boost::Python wrappers. I couldn’t get it to work, and didn’t try too hard because I saw that some of the functions I needed had significant amounts of matlab code anyway. You might be more interested in it, though; Andreas Mueller’s version appears to be the most recently updated.

Installation

The package can be installed by pip or easy_install normally. However, in order to actually use it, you’ll also need to download the vlfeat binary library. You can either install libvl.so (or your platform’s equivalent) somewhere where ctypes can find it yourself, or use the included script for doing so; run it with python -m vlfeat.download. If you add a -h argument, it’ll show you how to do it with a pre-downloaded binary distribution. If you install Python packages with sudo, you may need to do the same for the download script.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vlfeat-ctypes-0.1.4.tar.gz (14.9 kB view details)

Uploaded Source

File details

Details for the file vlfeat-ctypes-0.1.4.tar.gz.

File metadata

  • Download URL: vlfeat-ctypes-0.1.4.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for vlfeat-ctypes-0.1.4.tar.gz
Algorithm Hash digest
SHA256 a9d4b4a6f3c0cc59d4badab3abf9208bd42b591ea8fa961befc8b5286f495854
MD5 7d496ad53853cba50edf79cd525131b0
BLAKE2b-256 cd5a9b9d11283e10902cf6aee4c43f28cdea35ce1ebb17d05743910a684505d3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page