| 3 | === ''Contour slide'' === |
| 4 | |
| 5 | In our work-flow we introduced a stage of ''contour slides'' - vector graphic in SVG format (for detailed description see Majka et al 2011) that simplifies necessary corrections, manual preparation of structures' outlines from histology results and further improvements of slide details. |
| 6 | |
| 7 | Left: Coronal slice of a rat brain around 3 mm behind Bregma stained for Cytochrome Oxidase. Histological verification of the electrodes' location after chronic LFP recording from the thalamic somatosensory nuclei. |
| 8 | |
| 9 | Middle: Initial stage of ''countour slide'' creation. Main structures outlines drawn over the histology slice (line thickness increased for better visibility) and structure labels placed over well recognized regions. |
| 10 | |
| 11 | Right: Histological slide visible through translucent final CAF slide. |
| 12 | |
| 13 | |
| 14 | [[Image(006__final_comparison.gif)]] |
| 15 | |
| 16 | ---- |
| 17 | == Typical problems and their solutions == |
35 | | The most common defect is gaps in structure outlines. It frequently |
36 | | happens when two contour lines, which should touch are drawn so that |
37 | | they leave a little space in between. Such an arrangement may not be |
38 | | visible in a printed atlas but it greatly disturbs the tracing process |
39 | | where every pixel may influence the results. In this case, the |
40 | | structure being traced overtakes the space of its neighbour through |
41 | | the broken contour which we call ''leaking of the structure'' '''(see |
42 | | the spot indicated by a red arrow on Fig.~3A)'''. |
| 43 | ---- |
| 44 | == Labels == |
46 | | It is handled by a heuristic gap filling algorithm ([wiki:barSoftwareGapFillDetails detailed description]). The main idea |
47 | | behind this algorithm is to expand the contours by applying a [http://en.wikipedia.org/wiki/Mathematical_morphology dilation] filter ([http://www.imageprocessingplace.com/DIP-3E/dip3e_main_page.htm Gonzalez2008]) until the boundary closes. If a very |
48 | | accurate reconstruction is required, the best policy is to prepare a |
49 | | precise contour slide so there is no need to apply gap filling. For |
50 | | the atlases we tested, the gap filling algorithm performed well, the |
51 | | reconstructed structures were adequate and the gains in time were |
52 | | tremendous as compared with manual cleaning. |
| 48 | Another problem we encountered during tracing was the lack of labels |
| 49 | attributed to some areas. 3dBAR vector parser automatically detects |
| 50 | such unlabeled regions by comparing the sum of traced paths with the |
| 51 | total area of the ''Brain'' structure. The parser locates all |
| 52 | contiguous unlabelled regions consisting of more than a given number |
| 53 | of pixels and traces them. The resulting structures are called |
| 54 | ''Unlabelled'' and may be indexed and reconstructed similarly to |
| 55 | the regular structures. |
84 | | Another problem we encountered during tracing was the lack of labels |
85 | | attributed to some areas. 3dBAR vector parser automatically detects |
86 | | such unlabeled regions by comparing the sum of traced paths with the |
87 | | total area of the ''Brain'' structure. The parser locates all |
88 | | contiguous unlabelled regions consisting of more than a given number |
89 | | of pixels and traces them. The resulting structures are called |
90 | | ''Unlabelled'' and may be indexed and reconstructed similarly to |
91 | | the regular structures. |
| 104 | == Leaking structures and gap filling algorithm == |
| 106 | The most common defect is gaps in structure outlines. It frequently |
| 107 | happens when two contour lines, which should touch are drawn so that |
| 108 | they leave a little space in between. Such an arrangement may not be |
| 109 | visible in a printed atlas but it greatly disturbs the tracing process |
| 110 | where every pixel may influence the results. In this case, the |
| 111 | structure being traced overtakes the space of its neighbour through |
| 112 | the broken contour which we call ''leaking of the structure'' '''(see |
| 113 | the spot indicated by a red arrow on Fig.~3A)'''. |
| 115 | It is handled by a heuristic gap filling algorithm ([wiki:barSoftwareGapFillDetails detailed description]). The main idea behind this algorithm is to expand the contours by applying a [http://en.wikipedia.org/wiki/Mathematical_morphology dilation] filter |
| 116 | ([http://www.imageprocessingplace.com/DIP-3E/dip3e_main_page.htm Gonzalez2008]) until the boundary closes. If a very accurate reconstruction is required, the best policy is to prepare a |
| 117 | precise contour slide so there is no need to apply gap filling. For |
| 118 | the atlases we tested, the gap filling algorithm performed well, the |
| 119 | reconstructed structures were adequate and the gains in time were |
| 120 | tremendous as compared with manual cleaning. |
| 121 | |
| 122 | Left: |
| 123 | |
| 124 | Middle: |
| 125 | |
| 126 | Right: |
| 127 | |
| 128 | [[Image(002__gapfill_annotated.gif)]] |
| 129 | |
| 130 | ---- |
| 131 | |
| 132 | == Slice details improvement == |
| 133 | |
| 134 | === Individual substructures singled out === |
| 135 | |
| 136 | ...by simple line drawing and new regions labeling. |
| 137 | |
| 138 | Unrecognized areas can be attributed to the structures from the hierarchy level. |
| 139 | Here unrecognized thalamic nuclei which were not labeled with their specific labels are all labeled with "Th" so they all will be included in the final reconstruction of the thalamus. |
| 140 | |
| 141 | Left: |
| 142 | |
| 143 | Right: |
| 144 | |
| 145 | [[Image(0041_new_edges_animated.gif)]] |
| 146 | |
| 147 | ---- |
| 148 | === Additional elements apart anatomical data included in CAF slide === |
| 149 | |
| 150 | In our example we include in the slide the outline of the electrode. Space occupied by lesions, or injected dyes |
| 151 | can be equally added to brain elements. |
| 152 | |
| 153 | Left: |
| 154 | |
| 155 | Right: |
| 156 | |
| 157 | [[Image(007__final_electrode.gif)]] |