Last modified by puchades on 2022/09/30 16:01

From version 7.2
edited by tomazvieira
on 2022/01/25 16:50
Change comment: There is no comment for this version
To version 6.1
edited by tomazvieira
on 2022/01/25 16:44
Change comment: Uploaded new attachment "image-20220125164416-3.png", version {1}

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -4. How to use webilastik
1 +4. How to use IlastikWeb
Content
... ... @@ -1,87 +1,3 @@
1 -== What is webilastik? ==
1 +== What is IlastikWeb? ==
2 2  
3 -
4 -Classic [[ilastik>>https://www.ilastik.org/]] is a simple, user-friendly desktop tool for **interactive image classification, segmentation and analysis**. It is built as a modular software framework, which currently has workflows for automated (supervised) pixel- and object-level classification, automated and semi-automated object tracking, semi-automated segmentation and object counting without detection. Most analysis operations are performed **lazily**, which enables targeted interactive processing of data subvolumes, followed by complete volume analysis in offline batch mode. Using it requires no experience in image processing.
5 -
6 -
7 -[[webilastik>>https://app.ilastik.org/]] is a web version of ilastik's Pixel Classification Workflow, integrated with the ebrains ecosystem. It can access the data-proxy buckets for reading and writing (though reading is still suffering from latency issues). It uses Neuroglancer as a 3D viewer as well as compute sessions allocated from the CSCS infrastructure.
8 -
9 9  == How to use IlastikWeb ==
10 -
11 -=== Opening a sample Dataset ===
12 -
13 -Go to [[app.ilastik.org/>>app.ilastik.org/]] and load a [[Neuroglancer Precomputed Chunks dataset>>https://github.com/google/neuroglancer/tree/master/src/neuroglancer/datasource/precomputed]]. You can e.g. use a sample data set that is already in the server by pasting the following URL into Neuroglancer's prompt:
14 -
15 -
16 -precomputed:~/~/https:~/~/app.ilastik.org/public/images/c_cells_2.precomputed
17 -
18 -
19 -[[image:image-20220125164204-2.png]]
20 -
21 -
22 -If your dataset is 2D like in the example, you can click the "switch to xy layout" button at the top-right corner of the top-left quadrant of the viewport to use  asingle, 2D viewport:
23 -
24 -
25 -[[image:image-20220125164416-3.png]]
26 -
27 -== ==
28 -
29 -which will change the view to something like this:
30 -
31 -
32 -[[image:image-20220125164557-4.png]]
33 -
34 -(% class="wikigeneratedid" %)
35 -== ==
36 -
37 -== Training the Pixel Classifier ==
38 -
39 -
40 -=== Selecting Image Features ===
41 -
42 -Pixel Classification uses different characteristics ("features") of your image to determine which class each pixel should belong to. These take into account, for example, color and texture of each pixel as well as that of the neighboring pixels. Each one of this characteristics requires some computational power, which is why you can select only the ones that are sensible for your particular dataset.
43 -
44 -
45 -=== Labeling the image ===
46 -
47 -In order to classify the pixels of an image into different classes (e.g.: "foreground and background") ilastik needs you to provide it with samples of each class. To do so, click the brush tool ([[image:https://wiki.ebrains.eu/bin/download/Collabs/ilastik/ilastik%20online%20classifier%20training/WebHome/2020-03-31-122322_28x27_scrot.png?width=28&height=27&rev=1.1||alt="2020-03-31-122322_28x27_scrot.png" height="27" width="28"]]) in the toolbox in Annotations panel, on the right-hand side of the screen. You can select any color for your brush strokes by clicking the color-picker tool, which defaults to a bright yellow([[image:https://wiki.ebrains.eu/bin/download/Collabs/ilastik/ilastik%20online%20classifier%20training/WebHome/2020-03-31-122531_50x28_scrot.png?width=50&height=28&rev=1.1||alt="2020-03-31-122531_50x28_scrot.png" height="28" width="50"]]).
48 -
49 -With the brush tool activated and a suitable color selected, you can start labeling the dataset. For now, the controls for adding annotations to a dataset are the same as for adding any other type of annotation in vanilla Neuroglancer:
50 -
51 -1. Hold Ctrl and click to start a brush stroke;
52 -1. Move the mouse around to draw;
53 -1. While still holding Ctrl, click again to finish the stroke;
54 -
55 -Here's an example of a sample dataset with a few brush strokes marking the darker spots in the dataset:
56 -
57 -[[image:https://wiki.ebrains.eu/bin/download/Collabs/ilastik/ilastik%20online%20classifier%20training/WebHome/2020-03-31-124011_1276x586_scrot.png?rev=1.2||alt="2020-03-31-124011_1276x586_scrot.png"]]
58 -
59 -Like in vanilla Neuroglancer, you can snap the navigation back to your annotations by clicking on them in the list of annotations. Note also that the text representing the annotations is colored the same as the color of the brush stroke, and clicking any of the annotations will also set the color picker back to the annotation's color, so that you don't have to remember their hex code. If you're not happy with how one annotation came up, you can delete it by selecting it from the list of annotations and then clicking the trash bin icon([[image:https://wiki.ebrains.eu/bin/download/Collabs/ilastik/ilastik%20online%20classifier%20training/WebHome/2020-03-31-124347_26x21_scrot.png?width=26&height=21&rev=1.1||alt="2020-03-31-124347_26x21_scrot.png" height="21" width="26"]]).
60 -
61 -You must have annotations of at least two different colors in order to have meaningful predictions.
62 -
63 -=== Selecting Features ===
64 -
65 -ilastik's pixel classifier uses the annotations from the last session as markers of the relevant areas of your image, but it still needs to know which characteristics of those areas are important for deciding which class (i.e. annotation color) a pixel should belong to. Those characteristics are things like the color of the pixel, the color of their neighbors, texture in the neighborhood, etc, and you can learn more about them in the [[relevant ilastik documentation>>url:https://www.ilastik.org/documentation/pixelclassification/pixelclassification#selecting-good-features]].
66 -
67 -To select which features you want to be used when doing predictions, click the "Features" button ([[image:https://wiki.ebrains.eu/bin/download/Collabs/ilastik/ilastik%20online%20classifier%20training/WebHome/2020-03-31-130413_69x30_scrot.png?width=69&height=30&rev=1.1||alt="2020-03-31-130413_69x30_scrot.png" height="30" width="69"]]) in the toolbox. This will display a window within the annotations side-pannel where you can select features to be calculated, as well as their scales, much like in the native version of ilastik:
68 -
69 -[[image:https://wiki.ebrains.eu/bin/download/Collabs/ilastik/ilastik%20online%20classifier%20training/WebHome/2020-03-31-131023_308x237_scrot.png?width=308&height=237&rev=1.1||alt="2020-03-31-131023_308x237_scrot.png" height="237" width="308"]]
70 -
71 -Select features appropriate to your image and the objects you've annotated and click "Ok". Once you have any annotations and at least one feature selected, ilastik will automatically start calculating predictions on your image. Keep in mind, though, that the bigger the region of the image being visualized at any time and the more features you've selected, the longer it will take for the predictions to be calculated.
72 -
73 -The next image shows a prediction on the sample data. Notice that the colors match those of your annotations, and are brighter the more confident ilastik is on the class to which they belong.
74 -
75 -[[image:https://wiki.ebrains.eu/bin/download/Collabs/ilastik/ilastik%20online%20classifier%20training/WebHome/2020-03-31-131806_1273x584_scrot.png?rev=1.1||alt="2020-03-31-131806_1273x584_scrot.png"]]
76 -
77 -You can adjust the display settings of the overlay predictions layer as you would in vanilla neuroglancer:
78 -
79 -1. right-click the "ilastik predictions" tab to reveal the "rendering" options
80 -1. Adjust the layer opacity to be better view the predictions or underlying raw data;
81 -1. Advanced users: edit the shader to render the predictions in any arbitrary way;
82 -
83 -The image below shows the "ilastik predictions" tab with an opacity set to 0.68 using the steps described above:
84 -
85 -[[image:https://wiki.ebrains.eu/bin/download/Collabs/ilastik/ilastik%20online%20classifier%20training/WebHome/2020-03-31-132745_1274x583_scrot.png?rev=1.1||alt="2020-03-31-132745_1274x583_scrot.png"]]
86 -
87 -You can keep adding or removing features to your model, as well as adding and removing annotations, which will automatically update the predictions tab.
image-20220125164557-4.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.tomazvieira
Size
... ... @@ -1,1 +1,0 @@
1 -547.0 KB
Content