Last modified by puchades on 2022/02/18 13:55
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Attachments (0 modified, 1 added, 1 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 -3. Image registration to reference atlas using QuickNII and VisuAlign1 +3. Image registration to reference atlas using QuickNII - Content
-
... ... @@ -1,71 +1,37 @@ 1 1 == [[image:BICCN_QNII_figure.png]] == 2 2 3 -== == 3 +== Preparation of the image serie == 4 4 5 - TheQUINT workflowallowsyouto registerseriesofhistologicalsectionimagesfromthebraintoa3D referenceatlassuchas theAllenMouseBrainAtlasortheWaxholm Space atlasof theratbrain.Thisis a two-step process:5 +Resize your raw 2D images to 24-bit PNG and JPEG. Images can be loaded up to the resolution of 16 megapixels (e.g.4000x4000 or 5000x3000 pixels), however QuickNII does not benefit from image resolutions exceeding the resolution of the monitor in use. 6 6 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. 7 +The resized files must follow the naming convention having an unique ID in the format: sXXX.., with XXX.. reflecting the serial order and spacing of the sections (e.g. s002, s006, s010 for every 4^^th^^ section starting with section 2). 9 9 10 - FurtherstepsoftheQUINT workfloware compatible withthe atlas map output of both QuickNII and VisuAlign (theVisuAlign step is optional).9 +=== (% style="color:#000000" %)Generate your images descriptor file with FileBuider(%%) === 11 11 12 - ==(%style="color:#c0392b"%)Preparation ofthe image series(%%)==11 +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.** 13 13 14 - Beforeyou get started with image registration,make sure yourimagesare the right size, andfilesare namedaccording to the QUINT naming convention. See [[2. Image pre-processing with Nutil Transform>>doc:Collabs.quint.1\.Preparing the images.WebHome]]for details.13 +== Open QuickNII and load your images == 15 15 16 - ===(% style="color:#c0392b"%)GenerateyourimagedescriptorfilewithFileBuilder(%%)===15 +Open the QuickNII program from the .exe file. Once the program opens, click the **Manage data button** and load your XML file. 17 17 18 - (%style="color:#4e5f70" %)Usethe small program “FileBuilder.bat” providedwith //QuickNII//.A newwindowwillopen,andaskfor the folder where yourimagesarelocated.Pointtothecorrectfolder, mark all image files, and clickOK. **AnXML fileis generated**. **Always savethisfile inhe same folderas theresizedimages.**17 +A detailled 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/]] 19 19 20 - ==(%style="color:#c0392b"%)Open//QuickNII//and loadyourimages(%%)==19 +>The idea is to determine the cutting angles (dorso-ventral and medio-lateral) for the whole serie as these should be consistent. Once found in a few sections, apply the same angles to the rest of the serie. 21 21 22 - (% style="color:#4e5f70"%)Openthe //QuickNII// program from the .exe file. Oncetheprogram opens,click the**Managedata button**and load your XML file.21 +== **Anchoring procedure** == 23 23 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/]] 25 - 26 -== (% style="color:#c0392b" %)**Anchoring procedure**(%%) == 27 - 28 -(% class="box infomessage" %) 29 -((( 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. 34 -))) 35 - 36 -=== (% style="color:#c0392b" %)A) To determine the cutting angles:(%%) === 37 - 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. 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. 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 (i.e. ML=+1; DV= -4), 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. 44 - 45 -=== (% style="color:#c0392b" %)B) To fine-tune your alignment:(%%) === 46 - 47 -Review the position of **all sections** in the series, adjust the width and height of atlas slices as necessary, **and save settings**. 48 - 49 -**Done! **Now you can **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 using Nutil Quantifier. 50 - 51 -== (% style="color:#c0392b" %)**Nonlinear adjustment with VisuAlign**(%%) == 52 - 53 -**[[image:VisuAlign_illustration.png]]** 54 - 55 - 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]] 56 - 57 57 **The basic steps are:** 58 58 59 -- Usethesamefolderas//QuickNII//withyour png images and seriesdescriptor(XMLfile). You willneed theJSONversion of thedescriptor(itisgeneratedby//QuickNII//by clicking“SaveJSON”).25 +- (% style="color:#000000" %)Open one image in the beginning of the series and use anatomical landmarks to find the approximate anteroposterior position of the section. Select the atlas modality to be overlayed to the image (MRI, Atlas, etc..) 60 60 61 -- Opentool byclickingon“VisuAlign.bat”file.Itloads andsavesJSONfilescreatedby//QuickNII//.27 +- **The transparency slider** can be used continuously to determine how well the atlas fits the section. Determine the sectioning angles (dorso-ventral and medio-lateral) by tilting the atlas and adjust the atlas borders. 62 62 63 -- Addmarkersand dragthemtomovethe atlasborders. Start withthe bordersofthe tissueandthenadjustinternallandmarks.29 +- Save the positions for this section for now, you can adjust these later. 64 64 65 - NB:keepthe number of markers to aminimum.31 +- Open the next image, located at the other end of the serie and repeat the same procedure as above i.e. (% style="color:#000000" %)find the approximate anteroposterior position of the section and test how well the cutting angles fit this section. Save the positions. 66 66 67 - -Theoutlinemode is toggledbypulling theopacityslider to thefar right (asseenin thescreenshot).Acolorpicker tothe right of it becomesactivefor changingoutlinecolour.33 +(% style="color:#000000" %)- Explore a few sections in order to find the angles fitting most sections in order to achieve a global anchoring. 68 68 69 - -“Debugmode”displaystrianglesrepresentingthedeformationfield, itisenabledfromtheView menu(andalsoenablesacolour pickerforchangingthecolourof theriangles).35 +(% style="color:#000000" %)- By having the same angles in these two sections (i.e. ML=+1; DV= -4), QuickNII will apply them to all other sections located in between. The antero-posterior positions of all images are also estimated. 70 70 71 - -Usethe“SaveAs”to saveyourformations asanew JSON file.37 +(% style="color:#000000" %)- Review all sections, adjust atlas borders and save.
- VisuAlign_illustration.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.puchades - Size
-
... ... @@ -1,1 +1,0 @@ 1 -155.4 KB - Content
- BICCN_QNII_figure.jpg
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.puchades - Size
-
... ... @@ -1,0 +1,1 @@ 1 +60.2 KB - Content