Fast and easy image processing using an Image class based on the scikit-image, numpy and matplotlib libraries.
Project description
fast-skimage
Welcome to fast-skimage
, an image acquisition and processing library. This powerful library offers a wide range of tools for advanced image manipulation and analysis, wrapped up in the accessible Image
class.
Features
-
Advanced Manipulation: Apply complex operations like adding watermarks, noise detection, auto-enhancement, and saturation increase with simple method calls.
-
Filtering and Thresholding: Includes mean, median filtering, Otsu's thresholding, and custom thresholding methods for image segmentation and noise reduction.
-
Fourier Transforms: Utilize Fourier-based methods for reducing image dithering and other artifacts.
-
Histogram Operations: Equalize and stretch image histograms to improve contrast and visibility.
-
Texture Analysis: Perform texture segmentation using a variety of descriptors.
-
Small Image Library: 7 various pictures for testing are provided with the package (see section "Image Library" below).
Getting Started
-
Installation: Clone the repository or download the
Image
class module to your project. -
Dependencies: Ensure all dependencies such as
numpy
,matplotlib
,scikit-image
, andPyWavelets
are installed. -
Usage: Import the
Image
class from the module and instantiate it with the path to your image or a NumPy array.
Example
from fast_skimage import Image
from fast_skimage import etretat
from skimage.data import immunohistochemistry
img = Image("Pictures/camera.jpg") # Load an image with path...
img2 = Image(immunohistochemistry()) # ... or numpy array ...
colored_image_array = etretat() # ... or a library image.
img3 = Image(colored_image_array.get())
img2.auto_enhance() # Apply auto-enhancement
img3.auto_enhance()
img3.show(subplots=(1, 2, 1), size=12) # Display the result
img2.show(subplots=(1, 2, 2), title='Immunochemistry Image')
img.show(size=(12, 6), type_of_plot='hist', axis=True) # Plot histogram
Image Library
A small image library is provided along with the Image
class. These can be manually extracted with the following lines:
from fast_skimage import image_name
image_array = image_name()
image = Image(image_array.get())
Note that all images listed below come from the INFO-H500 course of Prof. Olivier Debeir at ULB (Université Libre de Bruxelles).
Grayscale Noisy Image
fast-skimage.astronaut_noisy
Grayscale Clean Images
-
fast-skimage.camera
-
fast-skimage.walking
Grayscale Clean Watermark
fast-skimage.watermark
(the ULB logo)
Colored Clean Images
-
fast-skimage.etretat
-
fast-skimage.nyc
-
fast-skimage.zebra
Documentation
Refer to the in-line comments and method docstrings for detailed usage of each feature.
Contribution
Contributions are welcome! Feel free to submit pull requests, suggest features, or report bugs.
License
This library is distributed under the MIT license. See LICENSE
for more information.
Contact
-
Author: Alexandre Le Mercier
-
Date: November 21, 2023
-
Email: alexandre.le.mercier@ulb.be
-
LinkedIn: Alexandre Le Mercier
Happy Image Processing!
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
Built Distribution
File details
Details for the file fast_skimage-0.2.3.tar.gz
.
File metadata
- Download URL: fast_skimage-0.2.3.tar.gz
- Upload date:
- Size: 13.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fc9adb8b3f8a3be9d1a08799628a6caebf8b94f2b32ce54aec7bb77e363b3bc |
|
MD5 | 33c6a5d2f5335eba2da67a1089d03ad7 |
|
BLAKE2b-256 | a3d92ea449710e1b58fa38f5465d9763b9a82c7f7408261591a4ee2128636566 |
File details
Details for the file fast_skimage-0.2.3-py3-none-any.whl
.
File metadata
- Download URL: fast_skimage-0.2.3-py3-none-any.whl
- Upload date:
- Size: 14.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9498803a187b969e752a950de006ea6b81c7219bdc13f1c8ad0fddd36b0d3c1 |
|
MD5 | 49b366c18cb77f3931fec728c8cedd5d |
|
BLAKE2b-256 | b4a65f2b84ae29bb45634f8e12446a8343292c5f788a66e7d88123d8a6c97ccf |