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.
TODO
[] Test package with tox
[] Add more unit tests
[] Colorspace methods
[] Add tutorial
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
Close
Hashes for pycimg-0.0.6-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c17a2e547f876fc4640b0446c3c1e387b1a23d791a7656cd202d30e6ff582ac9 |
|
MD5 | c6547047f0819c24a414768b4fa4b6bb |
|
BLAKE2b-256 | a64615702d4c046fee26a89077437503c70525da6a37aa5db15b260487ba2c32 |
Close
Hashes for pycimg-0.0.6-cp38-cp38-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11d1c997247aeb75e9b6d056571ee465a78299a31bb325332c1b57aa8bb5979a |
|
MD5 | e7a6ba5ee444ab8d2244e61d3b190062 |
|
BLAKE2b-256 | 850d2316db2045bb3229432b27e85196de7f62b53476f4af34c5aea371480ad3 |
Close
Hashes for pycimg-0.0.6-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fef517c4514fb89beefd343847dc46312f5bdcd40835d2f22e627e1e7177fd34 |
|
MD5 | 9dd452c81138deab4538d35f7c135bd0 |
|
BLAKE2b-256 | ba7cc3de78747f7ba9cfa6229efd744c96a7c52acdd94dbb89094f5888291e56 |
Close
Hashes for pycimg-0.0.6-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2f4791a750c340103683db34bc248f5cbd7f092002c749d81e017f9a624eec0e |
|
MD5 | e6799a90caf9989db20b1d17ba3f92f1 |
|
BLAKE2b-256 | 1c70e1daaed8f611ef6b51594ea4f639ec27a6d61009948e46c0b86a01c28646 |
Close
Hashes for pycimg-0.0.6-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c95a2fd1576aebc56c396353b08860aeae465e6c0cfdb4d951fc2043d4b37d4f |
|
MD5 | 0766f7b65a4e0908c544614b6ce2ad6b |
|
BLAKE2b-256 | a2333294332b87d76e29efced93c49caf7d2faefcba15461fd44476fb17874ba |
Close
Hashes for pycimg-0.0.6-cp37-cp37m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91e08a5675ea399f2e634d0bcd35d1c2f926dd8ba0fed8138d773be7b9e90c3d |
|
MD5 | bdc959c66b40119b3955761990b22810 |
|
BLAKE2b-256 | 8d0564fad8b3f31b8791b70d7416693db7c4f3392d64b099b28d58625bd7ecf9 |
Close
Hashes for pycimg-0.0.6-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5b8cce5aaaf1bfefa0e2c3dcf574351dc94348aeb60dd65568c03a1a4a98cf0 |
|
MD5 | 29c6075b16134be66f6e15827bd90028 |
|
BLAKE2b-256 | 5fe038e43a242aea50c5b60d2e591ec453c7fdca0ed3a08b3f742206b576c94d |
Close
Hashes for pycimg-0.0.6-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1c51107f9035440497a8a02ab56b76135dd48e363a26011e7b1135b64f72676 |
|
MD5 | 65e8bf9fad58add8b1b5715077eb54b8 |
|
BLAKE2b-256 | 99dc4626ffe97bbf01a65267556fd0b26cfc43db567d321be46e9bd704fcc626 |
Close
Hashes for pycimg-0.0.6-cp36-cp36m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8022fc13f34bbac93e988a4b546244ebb1d9518e0749859637a47e40cbf62de1 |
|
MD5 | f4d70e396f4d64dc43bb907c58521e82 |
|
BLAKE2b-256 | a3c1918c220b50451faa029ebf224c94813f85c7ae104babcafa1943825c39e5 |
Close
Hashes for pycimg-0.0.6-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fabad73c9b69a20989ff29cc650441be2dc013fedb3f56982bbc3799f120c8d |
|
MD5 | d68d9d8a584c410e59ce4df1110a826c |
|
BLAKE2b-256 | 41e376b25721787c3590167a1dc42f2e0bf1c9b0427d0eb836642e604b4cccb5 |
Close
Hashes for pycimg-0.0.6-cp35-cp35m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d9356552a01a826fb9fd365653ef0ca373bc9b5f7e578d35f8f00c24e483498 |
|
MD5 | 5771b5cae7894d09695c3a1ea07dad0f |
|
BLAKE2b-256 | 71b7de0ef1f1449274a7f0992a638ea9b73e2cf01b4ef845d004ff3903048abe |
Close
Hashes for pycimg-0.0.6-cp35-cp35m-macosx_10_6_intel.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9e8c092055bb64575c79ee27ce8dd964cc6fc2177ec08b8a985f090da451265 |
|
MD5 | be1835ffb23cb9c9977d33bfb492182a |
|
BLAKE2b-256 | 2d33dbe379548afd309a1dc604985a8846873859a900a7b74d63f15b4734824b |