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-1.0.2.tar.gz
(14.3 kB
view hashes)
Built Distributions
Close
Hashes for pycimg-1.0.2-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4250e5a6b6b1f44b557c842a643b55acec70bd4818d63de57fffe6631ab42b1 |
|
MD5 | cc0446c20e94f778e7a501df092b1be1 |
|
BLAKE2b-256 | bfcbc0d0abf49f497c62512eb827beef32d6f4f627a68337dbe0e618567c5f7f |
Close
Hashes for pycimg-1.0.2-cp39-cp39-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab5dc1564b811f56fb9ae298c336f0da67f4372d846832375715a5e23cdacfb7 |
|
MD5 | e3411cce59cae620a12840de4da4d4f5 |
|
BLAKE2b-256 | ac3000651d56b96dae07300061e1a2b1bdaaa11835068a112b5b27cfbede4376 |
Close
Hashes for pycimg-1.0.2-cp39-cp39-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7ecd79b6869c3955cdeb619d8be294d15e73771d3471953f02f1ba219b8749d |
|
MD5 | 224b05cfb2f9a1ba6004f3a558b076c7 |
|
BLAKE2b-256 | 62fd962ae0794eb9a52f633299824044a8c12df70c58bd5aa782a8e2d9e59b1d |
Close
Hashes for pycimg-1.0.2-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a94c15599430bae3761ed1259269ac72cd740bf3e573f821aefde05089514dcb |
|
MD5 | 934dbc931fe0119b97215cf72b0db55a |
|
BLAKE2b-256 | f2552422a2d749d1d46a72e2775aa52fc569fd0d5c61591a74a39ad927a3fad0 |
Close
Hashes for pycimg-1.0.2-cp38-cp38-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6c96e9c4d79591ad082e8e80637b1de4ff209f26e9c32ccc2971d34e5e96b9f |
|
MD5 | 85e45c302ee7e4d9f659c26574f1b5db |
|
BLAKE2b-256 | c424e470e166a161e72364b5377967b3716be428a78a3cf8be421528d2ca0b14 |
Close
Hashes for pycimg-1.0.2-cp38-cp38-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 980850d9bae3f9b02cfa99869ab9b6368d2b6a7df241e98e2616f7a301b747e9 |
|
MD5 | 4b273e098ff18bd9e33b9504bdc9c619 |
|
BLAKE2b-256 | 6d2c9a0ab092e1a22495ab4d027ce31804ee5250fc6113db1b119dea4553243e |
Close
Hashes for pycimg-1.0.2-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03ec98cf50706390d94ad67c50f3a4be466e5cd06c88003145e067d04dbb1b7e |
|
MD5 | 2c4b454110b02bcd24f518007cbccbbe |
|
BLAKE2b-256 | 42a6560bd0815638b29779ef87f6e3b5d022a568429bfdc14924ac20c9346112 |
Close
Hashes for pycimg-1.0.2-cp37-cp37m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 387dfb1a052206327eaf5fdcd2b857ae558abea6cb6f583009258825698ebc3c |
|
MD5 | f19d52d2b6b5d9dd09109c848755cef8 |
|
BLAKE2b-256 | fe93b1de37a53fd58f8856da622c808e6549acaa2969c1a5be37f8cccc15e512 |
Close
Hashes for pycimg-1.0.2-cp37-cp37m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | de59cf22faf31ffbbb882a00d340c34e110ca2c9511334496c33de6a2ddc77fe |
|
MD5 | 69b9282d26c2957fdc54810ba5aed648 |
|
BLAKE2b-256 | 2fe273089f917709896f19f1cdf84b8ed1e010e7cff4c262612438159a05bdb2 |
Close
Hashes for pycimg-1.0.2-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d1c2b3324195e753daf4feb356373507c0de918e01bc01445c1ec8e95e2c30f |
|
MD5 | bdc71e3433a7d0544147061f5c2b1b1f |
|
BLAKE2b-256 | d8b10e842e2e4818f2176917a08feae3f0c12303e73c6a6b0da91c19410bbb13 |
Close
Hashes for pycimg-1.0.2-cp36-cp36m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f25cc33491e3b69ac33e33c2e13b0a0af6f40824c4351f3db73905c48a2655a3 |
|
MD5 | 93c53660064bf9a07a8ec22ef313dc80 |
|
BLAKE2b-256 | 978e08da02ab8bc2f65cb9d8c5a387e3c87244d10345b08367f49b3b62e0ef1e |
Close
Hashes for pycimg-1.0.2-cp36-cp36m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 438271f56a2c96fd74d1cd62a6417c5cc1c3af79045afbd3ceb76ee923571fc7 |
|
MD5 | 9a27797b85a28825272671afa41aedb6 |
|
BLAKE2b-256 | f7c9b9cbf7ee7dc5bb137e8447037acc4868f22d972f9ad6ff20d9a075ec652b |
Close
Hashes for pycimg-1.0.2-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e7ef8c1205b88ce22384dbb29f223e42e4d3aa369dacb952b42c2545efa3cc2 |
|
MD5 | 3992a9c2139a2c060f60305ad694a9a7 |
|
BLAKE2b-256 | 07227a8ae382fb9752b3899b352e85dc48b581d839112477ffc48d0d43bfb9e6 |
Close
Hashes for pycimg-1.0.2-cp35-cp35m-manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 922854504c5665c51c87dc75583ac2d30fc0b693ade8f605fe9fcb7c3ed745a8 |
|
MD5 | 99fe0bd62b5f9ff56865e13158f41f04 |
|
BLAKE2b-256 | 63221cf6c996b85fe2c95f0ff32644954ab0ec077c512b7dee01b6cedd96533f |
Close
Hashes for pycimg-1.0.2-cp35-cp35m-macosx_10_15_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d66afa70980b3bd2c759224a7c706e802bb9a67311f8e3a7b9ad8dff99ca177a |
|
MD5 | ef13b447576a1f50054226088fc7bece |
|
BLAKE2b-256 | e783c9acf77cd63d3794d5dd411caf07791854d7d685c9e187e4b007b671b232 |