Version 21.4 by puchades on 2020/04/07 16:17

Hide last authors
puchades 4.2 1 == [[image:BICCN_QNII_figure.png]] ==
sharoncy 1.1 2
puchades 18.2 3 == ==
sharoncy 14.1 4
puchades 18.2 5 The QUINT workflow allows you to register series of histological section images from the brain to a 3D reference atlas such as the Allen Mouse Brain Atlas or the Waxholm Space atlas of the rat brain. This is a two-step process:
sharoncy 14.1 6
puchades 18.2 7 1. QuickNII guides you through an interactive affine alignment, including propagation of alignment settings across the section series.
8 1. VisuAlign lets you fine-tune your alignment using non-linear adjustments.
sharoncy 14.1 9
puchades 18.2 10 Further steps of the QUINT workflow are compatible with the atlas map output of both QuickNII and VisuAlign (the VisuAlign step is optional).
sharoncy 14.1 11
sharoncy 13.1 12 == (% style="color:#c0392b" %)Preparation of the image series(%%) ==
sharoncy 1.1 13
puchades 20.3 14 Before you get started with image registration, make sure your images are the right size, and files are named according to the QUINT naming convention. See [[2. Image pre-processing with Nutil Transform>>doc:Collabs.quint.1\. Preparing the images.WebHome]] for details.
puchades 3.1 15
puchades 18.4 16 === (% style="color:#c0392b" %)Generate your image descriptor file with FileBuilder(%%) ===
puchades 3.1 17
puchades 18.4 18 (% style="color:#4e5f70" %)Use the small program “FileBuilder.bat” provided with //QuickNII//. A new window will open, and ask for the folder where your images are located. Point to the correct folder, mark all image files, and click OK. **An XML file is generated**. **Always save this file in the same folder as the resized images.**
sharoncy 1.1 19
sharoncy 14.1 20 == (% style="color:#c0392b" %)Open //QuickNII// and load your images(%%) ==
sharoncy 1.1 21
sharoncy 14.1 22 (% style="color:#4e5f70" %)Open the //QuickNII// program from the .exe file. Once the program opens, click the **Manage data button** and load your XML file.
sharoncy 1.1 23
sharoncy 14.1 24 A detailed //QuickNII// user manual as well as a demo dataset can be found on [[https:~~/~~/www.nitrc.org/projects/quicknii/>>https://www.nitrc.org/projects/quicknii/]]
puchades 5.4 25
puchades 11.1 26 == (% style="color:#c0392b" %)**Anchoring procedure**(%%) ==
puchades 7.2 27
puchades 19.1 28 (% class="box infomessage" %)
29 (((
puchades 21.2 30 The alignment procedure consists of two main tasks:
31
32 1. Determine the dorsoventral and mediolateral cutting angle of the section series, apply same angles for all slices.
33 1. Adjust the atlas slices generated along these angles to match individual sections.
puchades 19.1 34 )))
35
puchades 21.2 36 === (% style="color:#c0392b" %)A) To determine the cutting angles:(%%) ===
puchades 5.6 37
puchades 21.4 38 1. Open an image in the **beginning** of the series, and use anatomical landmarks to find the approximate anteroposterior position of the section in the atlas. Select the atlas modality to be overlaid on the image (MRI, Atlas, etc.)
39 1. **Tilt the atlas** by adjusting the dorsoventral and mediolateral angles. **Move the transparency slider** back and forth to see how well the atlas fits the section. The size of the atlas slice can also be modified for a better fit.
puchades 21.3 40 1. Once you have a fairly good match, save the alignment settings for this section and move on with the anchoring procedure. The settings can be fine-tuned later.
puchades 21.4 41 1. Open another image, located at the **other end of the series**, and repeat the same procedure as above:, i.e. find the approximate anteroposterior position of the section, and test how well the cutting angles fit this section. Save your settings.
42 1. Explore a few sections throughout the series in order to and find the angles that fit most sections in order to achieve a **good global anchoring**. We recommend to keep the cutting angles consistent throughout the entire section series, unless two blocks were cut separately.
43 1. Once two or more sections are anchored at their approximate position within the brain, **QuickNII propagates** **the cutting angles** across the entire image series. The anteroposterior position of the images is also estimated based on the section numbering.
puchades 5.4 44
puchades 21.3 45 === (% style="color:#c0392b" %)B) To fine-tune your alignment:(%%) ===
puchades 5.4 46
puchades 21.3 47 Review the position of **all sections** in the series, adjust the width and height of atlas slices as necessary, **and save settings**.
puchades 5.4 48
49
sharoncy 14.1 50 -By having the same cutting angles set for two sections (i.e. ML=+1; DV= -4), //QuickNII// will apply them to all the sections located between them. The antero-posterior positions of all the images are also estimated based on the numbering.
puchades 5.7 51
sharoncy 14.1 52 -Review the atlas to section match for all the sections, adjusting the atlas borders as necessary, and save.
puchades 8.2 53
sharoncy 14.1 54 -Export customised atlas maps corresponding to your series by clicking on the **“export Slices”** button. The exported .flat files are used for the quantification by //Nutil Quantifier//.
puchades 9.3 55
puchades 11.1 56 == (% style="color:#c0392b" %)**Nonlinear adjustment with VisuAlign**(%%) ==
puchades 8.2 57
puchades 9.2 58 **[[image:VisuAlign_illustration.png]]**
59
sharoncy 17.1 60 A detailed //VisuAlign //user manual can be found on [[https:~~/~~/www.nitrc.org/docman/?group_id=1426>>https://www.nitrc.org/docman/?group_id=1426]]
puchades 8.2 61
puchades 8.4 62 **The basic steps are:**
63
sharoncy 17.1 64 -Use the same folder as //QuickNII// with your png images and series descriptor (XML file). You will need the JSON version of the descriptor (it is generated by //QuickNII// by clicking “Save JSON”).
puchades 8.2 65
sharoncy 17.1 66 -Open tool by clicking on “VisuAlign.bat” file. It loads and saves JSON files created by //QuickNII//.
puchades 8.4 67
68 -Add markers and drag them to move the atlas borders. Start with the borders of the tissue and then adjust internal landmarks.
69
70 NB: keep the number of markers to a minimum.
71
sharoncy 17.1 72 -The outline mode is toggled by pulling the opacity slider to the far right (as seen in the screenshot). A color picker to the right of it becomes active for changing outline colour.
puchades 8.4 73
sharoncy 17.1 74 -“Debug mode” displays triangles representing the deformation field, it is enabled from the View menu (and also enables a colour picker for changing the colour of the triangles).
puchades 8.4 75
76 - Use the “Save As”  to save your deformations as a new JSON file.