LE GOURRIEREC Titouan |
A package to facilitate the use of image segmentation model trained on Ilastik in Python
Explore the docs »
Report a bug · Request Feature
Table of Contents
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.
- 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.
- To train your own model on Ilastik and properly adjust the different parameters, please refer to this documentation.
For usage examples of this package, please refer to the Example Notebook.
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")
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")
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)
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
)
Distributed under the GNU License like the Ilastik software. See LICENSE
for more information.
LE GOURRIEREC Titouan - [email protected]
Repository Link: https://github.com/titouanlegourrierec/EasIlastik
Pypi Link : https://pypi.org/project/EasIlastik/
- Ilastik Software : An interactive interface to annotate images to segment.