Wiki source code of 1. Image preprocessing
Last modified by rbakker on 2023/07/17 12:35
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | == Image preprocessing == | ||
| 2 | |||
| 3 | |||
| 4 | To ensure consistent performance of our tools on a variety of images, we apply a standard preprocessing strategy that consists of the following steps: | ||
| 5 | |||
| 6 | * Invert so that background is black | ||
| 7 | * Remove background gradient, by fitting a linear model through points sampled just outside the tissue | ||
| 8 | * Remove background with OneCut (optional) | ||
| 9 | * Enhance contrast with CLAHE (optional) | ||
| 10 | * Resize images to common size | ||
| 11 | * Center images | ||
| 12 | |||
| 13 | The steps are implemented as part of the registration pipeline collab: | ||
| 14 | |||
| 15 | [[https:~~/~~/drive.ebrains.eu/d/67ca7ef8c35b45ec99b9/>>https://drive.ebrains.eu/d/67ca7ef8c35b45ec99b9/]] |