FastHOG
Reasonably fast implementation of Histogram of Oriented Gradients. Designed to be roughly equivalent to
skimage.feature.hog. While slightly less flexible (it only supports float64 single-channel images),
it is significantly faster, so ideal in workloads where HOG calculation is a bottleneck, as was in
the https://github.com/flatironinstitute/ManifoldEM project that inspired this repository.
Installation
pip install fasthog
Usage
Example taken from https://scikit-image.org/docs/stable/auto_examples/features_detection/plot_hog.html
from fasthog import hog
from skimage import data
from skimage.color import rgb2gray
image = rgb2gray(data.astronaut())
fd, hog_image = hog(
image,
n_bins=8,
pixels_per_cell=(16, 16),
cells_per_block=(1, 1),
)
fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(8, 4), sharex=True, sharey=True)
ax1.axis('off')
ax1.imshow(image, cmap=plt.cm.gray)
ax1.set_title('Input image')
# Rescale histogram for better display
hog_image_rescaled = exposure.rescale_intensity(hog_image, in_range=(0, 10))
ax2.axis('off')
ax2.imshow(hog_image_rescaled, cmap=plt.cm.gray)
ax2.set_title('Histogram of Oriented Gradients')
plt.show()
Metadata
Release files for fasthog 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 8.3 MB
Release files / fasthog-0.1.7-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | fasthog-0.1.7-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 16.5 kB |
| Tags | Linux glibc 2.17+ x86-64 PyPy 3.10 PyPy 3.10 7.3 |
|
SHA-256 checksum How to use checksums |
3710d7763822b38f8d6e604749c64ae365a873469c333fdfa0ece0bda13f5975
|
|
BLAKE2b-256 checksum How to use checksums |
38383e45d89366396aa7e5a5a86abad5b61f9e51d31882732c9cf92267a3c124
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.13
|
Release files / fasthog-0.1.7-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | fasthog-0.1.7-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 16.5 kB |
| Tags | Linux glibc 2.17+ x86-64 PyPy 3.9 PyPy 3.9 7.3 |
|
SHA-256 checksum How to use checksums |
ecdb5289b6cedbdeb817acb0d5fcf9c02441491b6016ca29506cdcd8dad8e26b
|
|
BLAKE2b-256 checksum How to use checksums |
aceb816bc10375dec95ae40757daa5b4f99c54794bce6f29f8093f1d278b5f9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.13
|
Release files / fasthog-0.1.7-pp39-pypy39_pp73-macosx_11_0_arm64.whl
| Download URL | fasthog-0.1.7-pp39-pypy39_pp73-macosx_11_0_arm64.whl |
|---|---|
| Size | 12.4 kB |
| Tags | PyPy 3.9 PyPy 3.9 7.3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
dd633800516e735c4ad6065e5c5e99b278814393a216642d688332941ae6eed1
|
|
BLAKE2b-256 checksum How to use checksums |
7434433949ca3e14c1ef350d3db79e88dffdd6613b063f276b5d79e3a28b51ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|
Release files / fasthog-0.1.7-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | fasthog-0.1.7-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 16.5 kB |
| Tags | Linux glibc 2.17+ x86-64 PyPy 3.8 PyPy 3.8 7.3 |
|
SHA-256 checksum How to use checksums |
16b3e4f0769b1e875b836f2eefdbd8634672c8fab303f9f9e818d8e67120e38f
|
|
BLAKE2b-256 checksum How to use checksums |
f41df2d5ea42404becd3997e46fca951b96608da0ba68152dbe16176f074f1bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.13
|
Release files / fasthog-0.1.7-pp38-pypy38_pp73-macosx_11_0_arm64.whl
| Download URL | fasthog-0.1.7-pp38-pypy38_pp73-macosx_11_0_arm64.whl |
|---|---|
| Size | 12.4 kB |
| Tags | PyPy 3.8 PyPy 3.8 7.3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
9c24b04766826e5c0e4fc78803048d9fcc05ec73c1ffa501a2d83f8ff887e829
|
|
BLAKE2b-256 checksum How to use checksums |
6748671f516343a014e4b5a869802144a153c58afcdffcae4f277fb76fa02c22
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|
Release files / fasthog-0.1.7-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | fasthog-0.1.7-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 16.5 kB |
| Tags | Linux glibc 2.17+ x86-64 PyPy 3.7 PyPy 3.7 7.3 |
|
SHA-256 checksum How to use checksums |
daa181031aca017110adb2bc7465ca956214c9891cfb081c37fdde43754d2548
|
|
BLAKE2b-256 checksum How to use checksums |
409b1883875381c550069efb9f8e1d067c35c42eabafb0908e26f6eb1b597331
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.13
|
Release files / fasthog-0.1.7-cp313-cp313-musllinux_1_2_x86_64.whl
| Download URL | fasthog-0.1.7-cp313-cp313-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.13 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
5fb44359e8484a2936291ca475477096e6e10772ca0cca897f0ba95f02e1400c
|
|
BLAKE2b-256 checksum How to use checksums |
e45c32a4a13edd024aed563bed959ebddfc7163baca0a2bea3940c0bfc5af505
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.13
|
Release files / fasthog-0.1.7-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | fasthog-0.1.7-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 16.5 kB |
| Tags | CPython 3.13 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
d293977298e4224e161d2362a83ada86cabb2f9efa7d8519bdcbda935ae568bb
|
|
BLAKE2b-256 checksum How to use checksums |
da112b28583bc14dc5fad0500f0bed44adab59259c2f9eee8652f180bc269341
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.13
|
Release files / fasthog-0.1.7-cp312-cp312-musllinux_1_2_x86_64.whl
| Download URL | fasthog-0.1.7-cp312-cp312-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.12 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
eb74b13fc11648fe1015884a82233b4c0c6583fbec3bf79c46d62df55d8c0a89
|
|
BLAKE2b-256 checksum How to use checksums |
216903574be4b0f242ab0cb5f6be529ff58d7a918e95567c76f3d0a27bab760c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.13
|
Release files / fasthog-0.1.7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | fasthog-0.1.7-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 16.5 kB |
| Tags | CPython 3.12 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
c73051f58b0973dd08277de5eed9152a6e2034d2825a5802eaca0247d564e829
|
|
BLAKE2b-256 checksum How to use checksums |
85b39209ac14098875648f41849b8bd5323ec65731e1a8a82aba590a3cc7e849
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.13
|
Release files / fasthog-0.1.7-cp311-cp311-musllinux_1_2_x86_64.whl
| Download URL | fasthog-0.1.7-cp311-cp311-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.11 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
dbda3b056b3664969b6f570e3d1adbb6f51e90b8733418f4827b913383cc0dc6
|
|
BLAKE2b-256 checksum How to use checksums |
cd36416fe47cc9446ceb54056bdc3a6e7de9faf5b750266cf7f87d1b415802d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.13
|
Release files / fasthog-0.1.7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | fasthog-0.1.7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 16.5 kB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
fc2ee3546112d54bdab4462cf15c6f6bf1806314eba192eb1ea2c2923a661345
|
|
BLAKE2b-256 checksum How to use checksums |
d0a47251e00d7109c1053392b58740b93cb33c31ec28fb65e9d65286c95e5d4e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.13
|
Release files / fasthog-0.1.7-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | fasthog-0.1.7-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 12.4 kB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
825bd52f8c0f3dfafca88747af4423e86d44a02a1da2321dbb10c9dd8739f6cd
|
|
BLAKE2b-256 checksum How to use checksums |
288835843cf469ab525784d8874ac43e8ce9a37af3d9d0fe0084fe18369c328e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|
Release files / fasthog-0.1.7-cp310-cp310-musllinux_1_2_x86_64.whl
| Download URL | fasthog-0.1.7-cp310-cp310-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.10 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
2c40efe22ce279c251264c1a7076d4d49164c3d653e9517be50b3446d25838b8
|
|
BLAKE2b-256 checksum How to use checksums |
b3f6b68ba3ba706a943e165165233389de551664f7ee59ea3d2cf720ade9246b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.13
|
Release files / fasthog-0.1.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | fasthog-0.1.7-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 16.5 kB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
c98060f0375db8c811809aab266d9d79cb31367e1eb4bbe1251ed5dca6d4f58b
|
|
BLAKE2b-256 checksum How to use checksums |
58f6a94da703dccd3d1666a9638f77e55270f7289e08e08553fcf4f1d08ed9da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.13
|
Release files / fasthog-0.1.7-cp310-cp310-macosx_11_0_arm64.whl
| Download URL | fasthog-0.1.7-cp310-cp310-macosx_11_0_arm64.whl |
|---|---|
| Size | 12.4 kB |
| Tags | CPython 3.10 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
a593b717f6e864203a0f7ad30c8116dd95bfcc04e6fb82b2d66d083cddd569a1
|
|
BLAKE2b-256 checksum How to use checksums |
c4ac7ba2679c66b96baf71919ba5144ad67d83bb688a07d496c5913f43ec056a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|
Release files / fasthog-0.1.7-cp39-cp39-musllinux_1_2_x86_64.whl
| Download URL | fasthog-0.1.7-cp39-cp39-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.9 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
d2f9d4aa230ab00bd4265b134a145fa78c4c6c3c4ac9b1ef31d21f15161ad93b
|
|
BLAKE2b-256 checksum How to use checksums |
a31a98419fbd2c36b8e0aab05339d98b3c71ba8342cb993117561ab100ce3e2e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.13
|
Release files / fasthog-0.1.7-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | fasthog-0.1.7-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 16.5 kB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
67c95c75e910a31264dd565328ce76150d4ac23f66273fa441d9a15cc14112f6
|
|
BLAKE2b-256 checksum How to use checksums |
9d64dc5c9f5d7138228a74e4a1d56d30097741349a2ea61c97c50d878c605e6a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.13
|
Release files / fasthog-0.1.7-cp39-cp39-macosx_11_0_arm64.whl
| Download URL | fasthog-0.1.7-cp39-cp39-macosx_11_0_arm64.whl |
|---|---|
| Size | 12.4 kB |
| Tags | CPython 3.9 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
c7b467e91c25d16e700012d02813bd8ddff543b46113ae742c6114fe2159ec7b
|
|
BLAKE2b-256 checksum How to use checksums |
402d05fb51d6546fafc2344a48fdedb74b3c60f1bcc3e628130c89af48ab7b56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|
Release files / fasthog-0.1.7-cp38-cp38-musllinux_1_2_x86_64.whl
| Download URL | fasthog-0.1.7-cp38-cp38-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.8 Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
d8fd7b444816f0275a003eb2b755dffbe780562aa0e079fdb60db8c4d521a5a3
|
|
BLAKE2b-256 checksum How to use checksums |
bb2a81824c3c8abd0d395834bcbb3faf9327cc92e4cf1a256668e039ce75d9b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.13
|
Release files / fasthog-0.1.7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | fasthog-0.1.7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 16.5 kB |
| Tags | CPython 3.8 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
b44f98bc5e43c4b566fac08e6839b509911c23620f87bcf654894668845de852
|
|
BLAKE2b-256 checksum How to use checksums |
ce12df7295d546b2af835b65b2bff05802bab09a0d676ad09760f38889457464
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.13
|
Release files / fasthog-0.1.7-cp38-cp38-macosx_11_0_arm64.whl
| Download URL | fasthog-0.1.7-cp38-cp38-macosx_11_0_arm64.whl |
|---|---|
| Size | 12.4 kB |
| Tags | CPython 3.8 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
2853a93099fc4c7b430209bd64cc78b574ab84c6632c5a392d14cbadead1a62c
|
|
BLAKE2b-256 checksum How to use checksums |
58a516dbf91996ef5fa5f9b36c28729a6536b3aa6ec160835e7f1a202f5e4563
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|
Release files / fasthog-0.1.7-cp37-cp37m-musllinux_1_2_x86_64.whl
| Download URL | fasthog-0.1.7-cp37-cp37m-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
994164e5a993ccc8af3fd2fb62e8ceab5f0df1473bd3625a4b723681a3766bcb
|
|
BLAKE2b-256 checksum How to use checksums |
9eff7c02ac9086a9c7dc9b6fc81fac53cba725d08d9cc20b505967f742c6ab5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.13
|
Release files / fasthog-0.1.7-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | fasthog-0.1.7-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 16.5 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
2132963bee23e087872febb01e49fdaace1e01c35b98132ea020bdf43609aa6e
|
|
BLAKE2b-256 checksum How to use checksums |
c4f798847c6b05d9110c9a86fa72f5cf35e3f08677650687b0a55a5a4f8a73ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.13
|
Release files / fasthog-0.1.7-cp36-cp36m-musllinux_1_2_x86_64.whl
| Download URL | fasthog-0.1.7-cp36-cp36m-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 1.0 MB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Linux musl 1.2+ x86-64 |
|
SHA-256 checksum How to use checksums |
aabe08fdcb19d4e4b2d316ea1bfd2a42ed88165fd848a262fd60d81ba6c1161d
|
|
BLAKE2b-256 checksum How to use checksums |
efebd90d2906c8597ec209bceada4f8159d34ece54b34c3f9c85a6d1176e2ea3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.13
|
Release files / fasthog-0.1.7-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | fasthog-0.1.7-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 16.5 kB |
| Tags | CPython 3.6 CPython 3.6 pymalloc Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
6f7081c763341e8e6587acca5d7f71ab71988629895574447f1d3807faf691c0
|
|
BLAKE2b-256 checksum How to use checksums |
d7449a394a5be57ef354e412634c88cca108de815e58a966885d27e707fa0287
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.13
|
Security for fasthog 0.1.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.