-dor--datato create a new data folder or define an existing one--scaleto scale the images by a defined factor-mor--maskto create a mask for the images- add option
inputif you only want to create mask input images - add option
maskif you only want to create masks from existing input images
- add option
-nor--normalizeto normalize the images-tor--tilesto create tiles from the images, this takes two int values- the first is the
<tile size> - the second is the
<overlap size>
- the first is the
-cor--classifierto train a classifier. This requires two images in the data/training folder. One must be RGB and one a mask.-sor--segmentationto segment all created tiles. This requires a trained classifier.-oor--outputto stitch the segmented tiles back together.-vor--visualizeto visualize the segmentation process, this takes two int values- the first is the
<tile size> - the second is the
<overlap size>
- the first is the
- Create a new data folder with the
-dor--datacommand. - Copy your images into the data/input folder.
- Scale the images with the
--scalecommand if necessary. - Create a mask for the images with the
-mor--maskcommand. - Normalize the images with the
-nor--normalizecommand. - Create training data out of the normalized images. It consists of two images, one RGB and one binary mask.
- Copy the training data into the data/training folder. There should be two images, one RGB and one binary mask.
- Train a classifier with the
-cor--classifiercommand. - Segment the images with the
-sor--segmentationcommand. - Stitch the segmented tiles back together with the
-oor--outputcommand. - Optionally visualize the segmentation process with the
-vor--visualizecommand. - See the results in the data/output folder.
You can combin multiple commands in one call, e.g.:
python histoflow.py -d -m -n -t 512 64 -c -s -o -v 512 64
@software{JakobVoerkelius.2023,
author = {Jakob Voerkelius},
title = {Histoflow},
titleaddon = {Segmentation of histological images through machine learning},
version = {1.0.0},
year = {2023},
url = {https://github.com/Asklios/histoflow},
orcid = {0009-0003-1630-2265},
license = {MIT}
}