Python extension for the CImg library.
Project description
README
pycimg is a python extension for the CImg library.
The package contains a single class CImg that provides access to the image processing methods of the CImg library.
Pixel data of CImg objects can be accessed as a numpy array.
Vice versa new CImg objects can be created from pixel data in a numpy array or an image file. Supported file formats are png, jpeg, tiff, bmp, and cimg.
from pycimg import CImg
import numpy as np
# Load image from file
img = CImg('test/test.png')
img.display()
# Access pixel data as numpy array
arr = img.asarray()
# Set pixels in upper left 100 x 100 px rectangle
arr[:,:,0:99,0:99] = 0
# Pixel data is shared with the image instance
img.display()
# Create image from numpy array
img = CImg(np.random.randn(100,100))
Features
Installation
Install pycimg by running:
pip install pycimg
Documentation
See readthedocs.
License
The project is licensed under the GPL3 license.
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
pycimg-2.0.0.tar.gz
(14.4 kB
view hashes)
Built Distributions
Close
Hashes for pycimg-2.0.0-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96233dbc8c3065fe253578a1cbd59cbf4a8cb32759b381ca5ee8e87f44d93436 |
|
MD5 | 3592d6ae8ad6563db162bb938873685a |
|
BLAKE2b-256 | cd569ee6e32be976a4a706a1ed73baf5c7dc7893fd1e4fc11a9ddf9c811b8057 |
Close
Hashes for pycimg-2.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8c1dfb50750aae0f558e4362c36977939bcfff7612341391fec6ba65c246636 |
|
MD5 | 55b59c03a2bb24c18d718c30646034ea |
|
BLAKE2b-256 | 8a724635c4e14d6a2e7d104b125a4f3afd420273d3e302f26cb0d3c820ec0caa |
Close
Hashes for pycimg-2.0.0-cp311-cp311-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5c3b2259562ba819b38adc568ff56de4306b3ff73232c993a9208d0f3fa0c50 |
|
MD5 | 28bf18f7ea45a21c935009a8caa50ced |
|
BLAKE2b-256 | a21a93562961ac98129b7eed1abe1e3ccbfbfb55632670707c42f01f006eb53f |
Close
Hashes for pycimg-2.0.0-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15e639fd177fd2b9cd8137ee9abba6e10727fe6a45455a4838c408f48bd3aede |
|
MD5 | 1d73270207167af3a4e5dc24dbb3bd08 |
|
BLAKE2b-256 | 01f37966a0e39d3f47b94a759a494f12cced003c926969eb2375270ce40b9a95 |
Close
Hashes for pycimg-2.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58e83788e80e17681ea41f78bf27cd68138ceebbcd34958a06727159b3e7bc34 |
|
MD5 | 1c99b86bc7e1dce76721f4fd931060e7 |
|
BLAKE2b-256 | e19cf59bbb58c7381f452c7794eb1a112e4945180ccae6608468ee118616aa91 |
Close
Hashes for pycimg-2.0.0-cp310-cp310-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fea53ab72c6579969f2fc9adb1b5f213ab7c4939bd95ff6dba793b18feb94b4 |
|
MD5 | ea98a08ecac03d6c4838118ca93370ba |
|
BLAKE2b-256 | 97a2e95e5ac203cd983a95b75c2fa7512ff01fe682b7ff6df089154a61e84d19 |
Close
Hashes for pycimg-2.0.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e3d6a94decc03265b8414bcd18b604407da22a62efec62d533f17085c4090cd |
|
MD5 | 44ef5e278d94a5a3b5fa54c455a36958 |
|
BLAKE2b-256 | 5913f3fa00b16727ca8ec1983b5614b0b5a097a709215a075f791933ce583790 |
Close
Hashes for pycimg-2.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e945f46a508602e4371a57ada6466abcf490bb023f53f7ed08b222ba6d38a48 |
|
MD5 | 259f6b720a2e56c6ffe8c37629f94f7d |
|
BLAKE2b-256 | 3d3ac010457f1e0fee8f5c1ddd3b6aa913b7d384ec504e634a3a358079add95d |
Close
Hashes for pycimg-2.0.0-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73970c21feb446cd5c51b8f29638913b9d37a055aa809aaf0690e8766094d597 |
|
MD5 | 5d5adfb3650598411da37ce82aa434f5 |
|
BLAKE2b-256 | d40095e6858674c64e0699594371e98b6a822ea5117ff723687d4eded884bc62 |
Close
Hashes for pycimg-2.0.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3eb240174da1cf1338e1bc7cd1d496bab1dae7c0a159470536eeb563efdb73d7 |
|
MD5 | dae9b596c0b1c291a63d3a94a5b4fb75 |
|
BLAKE2b-256 | 53fb0eb2dd378c67245f65822ec90565aa9427bc2a2dee0e9657c4ee31ab6512 |
Close
Hashes for pycimg-2.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4138d47ad1564b8c7823426857809324dd5c5aa5b27aa75128949620a42ed42a |
|
MD5 | 3e07917163fe429c0e57532eba3481df |
|
BLAKE2b-256 | 7259366f61d5a0afa33d73d3724f897b36be61b9540e9efe61051c593815913f |
Close
Hashes for pycimg-2.0.0-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 965929b21bd017fdbcf8c65236dd41e42eaf5d19fcafed4d68ccbf69b2894fbf |
|
MD5 | c96b4de192069a52a87fae2f06354638 |
|
BLAKE2b-256 | 0689a9bb017a7fef74ed906f1ddd4da8f6a75a0c4822a31cfb659734efb0dad8 |
Close
Hashes for pycimg-2.0.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e03c0d4ad19908331915a6e42ce3a05bb0544b82065c82ff1122418f87cbec0 |
|
MD5 | ee3b57ca36b3913dfc3dbf1496220f26 |
|
BLAKE2b-256 | 230eee332a62ed5e64571e32210af6f99643936d6ec036845070dc32686237e4 |
Close
Hashes for pycimg-2.0.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92ba2e7c1d64cb2374d34fcb1e48a7b443fb7e05c18abf8a8e8e0499fad7d6ad |
|
MD5 | 90cb028419ef930a56ceb677fb03f339 |
|
BLAKE2b-256 | 9d3dc31dc616ddc92fe93074d42923982db29f91fec30de8f5ca0caf6f64b21a |
Close
Hashes for pycimg-2.0.0-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8646f7495420c520019b0632dbf59805e4198151f80c09c3321aa9db0efb343f |
|
MD5 | 818a38beb628a6cd02cb8d47c19307f2 |
|
BLAKE2b-256 | 7f0d9bc7ca1e40704a459b04a82c112c5972df7ed70172aefad2ff5d9c1ba0d6 |
Close
Hashes for pycimg-2.0.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99e4b2d15ee7a9df0e679ede61528ff6782e2682655e66be82651d70484c3d81 |
|
MD5 | 447b4ca3dd48c320c4c22324b61e6752 |
|
BLAKE2b-256 | c35d8f234978b621d6a6ad6fe935c0f6515630fe82b6bbedd20b200efa9042b9 |
Close
Hashes for pycimg-2.0.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da4db3d7c0d7d2ff8d9938a41ca3badca5fee902cd2fd63579bfb6ba80c07686 |
|
MD5 | 2761c1614e4135179f2ce05c91e6a8f2 |
|
BLAKE2b-256 | 2af3f0a3b62274e322f7ca296a1b2b592dde0f793cea8c3742dbdba321784b84 |
Close
Hashes for pycimg-2.0.0-cp36-cp36m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2710948caa7f92429ec3b2d2e26dfd015b9ef6b30a030792cf2ac9372f40c0ad |
|
MD5 | 9896d5198a3c97e46846f7381298cbd1 |
|
BLAKE2b-256 | 0cc9226226a8bd1d10732c5b4467272c0dfe5378161dc1f186c78d8fe3f851aa |