`Patchgenerator` is a simple tool to generate array indices, with or without overlap, to create numpy array patches. Only requires python.
Project description
patchgenerator
The patchgenerator
is a simple tool to generate array indices, with or without overlap, to create numpy array patches. Only requires python.
Example usage:
from patch_indices import PatchGenerator
patch_generator = PatchGenerator(100, 80, 10, 20, y_overlap=2, x_overlap=3)
for patch in patch_generator:
row_start, cols_start, row_end, cols_end = patch
print("row_start, cols_start, row_end, cols_end", row_start, cols_start, row_end, cols_end)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
patchgenerator-0.0.1.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for patchgenerator-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f6a0d82ce672a8cacb67db413d0e24d8c277328c232692ed0a2ead8ee92c948 |
|
MD5 | 940d3f365488ed348be219e79828f5cc |
|
BLAKE2b-256 | d6f4657b587a4ce4398268270538c14f4de0beed4f192f34213c9d560c9ce707 |