This package provides seamless integration of pre-trained image segmentation models from Ilastik into Python workflows, empowering users with efficient and intuitive image segmentation capabilities for diverse applications.
Project description
| LE GOURRIEREC Titouan |
|
EasIlastik
A package to facilitate the use of image segmentation model trained on Ilastik in Python
Explore the docs »
Report a bug · Request Feature
About The Project
This package provides seamless integration of pre-trained image segmentation models from Ilastik into Python workflows, empowering users with efficient and intuitive image segmentation capabilities for diverse applications.
Built With
Getting Started
Prerequisites
- Ilastik software: To train your own model for image segmentation, please download the Ilastik software tailored to your computer's operating system from: https://www.ilastik.org/download.
Train a model
- To train your own model on Ilastik and properly adjust the different parameters, please refer to this documentation.
Usage
For usage examples of this package, please refer to the Example Notebook.
Process a single image
EasIlastik.run_ilastik(input_path = "path/to/your/image.jpg", # The path of the image to process
model_path = "path/to/your/model.ilp",
result_base_path = "path/to/your/output/folder/",
export_source = "Simple Segmentation",
output_format = "png")
Process a folder of images
EasIlastik.run_ilastik(input_path = "path/to/input/folder", # The path of the folder to process
model_path = "path/to/your/model.ilp",
result_base_path = "path/to/your/output/folder/",
export_source = "Simple Segmentation",
output_format = "png")
Show probabilities
EasIlastik.run_ilastik(input_path = "path/to/input/image",
model_path = "path/to/model.ilp",
result_base_path = "path/to/output/folder",
export_source="Probabilities", # Probabilities
output_format="hdf5") # hdf5 format
output_path = "path/to/output/image.h5"
image = EasIlastik.color_treshold_probabilities(output_path, threshold, below_threshold_color, channel_colors)
Run with probabilities
EasIlastik.run_ilastik_probabilities(input_path = "path/to/input/folder",
model_path = "path/to/model.ilp",
result_base_path = "path/to/output/folder",
threshold = 70, # threshold for the probabilities
below_threshold_color = [255, 0, 0], # color for the pixels below the threshold (red)
channel_colors = [[63, 63, 63], [127, 127, 127], ...] # colors for the different channels
)
License
Distributed under the GNU License like the Ilastik software. See LICENSE for more information.
Contact
LE GOURRIEREC Titouan - titouanlegourrierec@icloud.com
Repository Link: https://github.com/titouanlegourrierec/EasIlastik
Pypi Link : https://pypi.org/project/EasIlastik/
Acknowledgments
- Ilastik Software : An interactive interface to annotate images to segment.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file EasIlastik-1.0.1-py3-none-any.whl.
File metadata
- Download URL: EasIlastik-1.0.1-py3-none-any.whl
- Upload date:
- Size: 25.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b00aa70359a3633b21fb8a0862099ceb096208499096d986a702c181a5c44a97
|
|
| MD5 |
0f7d4fc60581a1ed978e06fdc61b5d49
|
|
| BLAKE2b-256 |
2ca0b4e02133a85e4f2bd2edc30951869bb59605391e2936f5c87e7e801fbd82
|