Working with RGB images

Working with RGB images#

In napari, RGB images are opened without a slider for the additional dimension to browse, but instead the channels are used to display the image in the corresponding colors.

The Convpaint plugin directly recognizes RGB images as a special type of multi-channel images: Features are extracted from each channel and combined for training.

In the video below, for example, we segment the pattern of the floor in the Main Building of the University of Bern, the institution where the plugin has been developed.

Also note how the model is not limited to background and foreground: multiple classes can be annotated and predicted.

More classes#

In the next example we segment 5 different classes of a more complex floor pattern.

The training and prediction of more classes might take a little bit longer, but the segmentation is very precise considering the very small number of annotated pixels.

Options for acceleration#

There are different approaches to speed up training and/or segmentations. For example, we can downsample the input image, which might results in a loss of prediction accuracy, but in some cases may even be beneficial. Another approach is using GPU processing.

For more details, please refer to the “In-depth explanations”.