Skip to main content

C++ based NumPy N-Dimesional patch extraction.

Project description

npy-cpp-patches

Read N-Dimensional patches from .npy files. This module is built using C++ and has Python3 bindings.

Data Specifications

  • Arrays must be saved in C-contiguous format, i.e. NOT Fortran-contiguous.
  • First dimension is indexed using qspace_index, and therefore is a non-contiguous patch dimension.
  • Next dimensions are specified by a patch shape C++ vector or Python tuple. To extract patches of lower dimensionality than that of the data, set the corresponding dimensions to 1.

Python Usage

Install

pip install cpp-npy-patcher

Usage

from npy_patcher import PatcherDouble, PatcherFloat, PatcherInt, PatcherLong

C++ Usage

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

npy-patcher-1.0.2.tar.gz (5.8 kB view hashes)

Uploaded Source

Supported by

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