Skip to main content

Pythonic API for a subset of the Intel Integrated Performance Primitives (Intel IPP) library

Project description

# motmot.FastImage – SIMD image processing

Description

FastImage implements low-level image processing operations designed to operate very quickly by using SIMD instructions. This is achieved by calling the Intel IPP library. A bridge to numpy is made through the array interface.

Allocation of aligned memory

For the SIMD instructions to perform at maximal speed, images must be aligned on 32-byte boundaries. FastImage relies on the underlying IPP library to allocate the memory, trusting that it knows best:

import motmot.FastImage.FastImage as FastImage
import numpy as np

# Allocate the image
fi_im1 = FastImage.FastImage8u( FastImage.Size(4,5) ) # width, height

# Get a numpy view
im1 = np.asarray( fi_im1 )
assert im1.shape == (5,4) # height, width

In the above example, im1.strides will be (32,1), indicating that each row is aligned on a 32 byte boundary.

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

motmot.FastImage-0.7.0.tar.gz (100.1 kB view details)

Uploaded Source

File details

Details for the file motmot.FastImage-0.7.0.tar.gz.

File metadata

File hashes

Hashes for motmot.FastImage-0.7.0.tar.gz
Algorithm Hash digest
SHA256 105899906ef9cd578b29452dfc7f9a02129363351c962d865ab53854f445be7c
MD5 0ee5e15b28afca7d26ef6fae6d0475e2
BLAKE2b-256 f2224751d3c62a03ac60bb16df56a4500837862559ac84d43ecba0d6869418f8

See more details on using hashes here.

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