Skip to main content

# 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.

Release files for motmot.FastImage 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for motmot.FastImage 0.7.0
File Size Uploaded
motmot.FastImage-0.7.0.tar.gz 100.1 kB Details

Release files / motmot.FastImage-0.7.0.tar.gz

Download URL motmot.FastImage-0.7.0.tar.gz
Size 100.1 kB
Tags Source
SHA-256 checksum
How to use checksums
105899906ef9cd578b29452dfc7f9a02129363351c962d865ab53854f445be7c
BLAKE2b-256 checksum
How to use checksums
f2224751d3c62a03ac60bb16df56a4500837862559ac84d43ecba0d6869418f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.7.0 This release

1 release file

0.6.1

1 release file

0.6.0

1 release file

0.5.5

2 release files

0.5.4

4 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page