Workflow overview
0. Preparation (Python)
- Convert your image data into HDF5 format. To do this, ecc provides a utility function. See Data preparation to learn more.
- If necessary, reorient the image to follow the convention used in CUBIC-Atlas. See About brain coordinates for more details.
1. Train ilastik classifier (ilastik GUI)
ecc uses ilastik to classify voxels into distinct labels (cells, background, etc) powered by machine learning. You must first make a ilastik project (.ilp
file) and train a classifier for your image set. See Training ilastik classifier to learn about how to train ilastik classifier.
2. Apply ilastik classifier (Python)
Once a good ilastik classifier is trained, you can apply the classifier to a group of images that you are working on. To facilitate this, ecc provides PixelClassifier
class from ecc.ilastik_wrapper
module. See Applying ilastik classifier for more details.
3. Segment individual cells (Python)
ilastik pixel classifier produces a “probability image”, where the pixels (voxels) corresponding to desired objects (e.g. cells) are marked with high probability values. From this image, we will segment individual objects and quantify the intensity and the object volume. To do this, use CellFinder
class from ecc.cell_finder
module. See Segmenting cells for more details.