wiki:barSoftwareErrorCorrection

Version 11 (modified by pmajka, 12 years ago) (diff)

--

Preparation of CAF slide from vector graphics

Contour slide

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.

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.

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.

Right: Histological slide visible through translucent final CAF slide.


Typical problems and their solutions

Most commonly available 2D atlases were not designed to be used as sources for 3D models generation. Precision of contour definitions and label placement is sufficient for standard use, but not always for the automatic reconstruction process. For example, in some published atlases one may find a number of deliberate simplifications e.g. labels are omitted because names of some areas are considered obvious or labels are literally too large to put them inside the represented area. Such omissions have to be fixed in order to get a correct 3D reconstruction, indeed for any systematic computer processing.

Manually prepared contour slides - including our example presented here - also can contain errors requiring corrections.

Non-interactive error correction

The vector parser tries to automatically deal with troublesome situations. However, if it is unable to correct a problem automatically, the program will notify the user and save all the important information about the case as a thumbnail image including name of the problematic label and its location. These data help the user to solve the problem manually by removing ambiguities from contour slides. Below we discuss and illustrate common inconveniences and our strategies for fixing them.


Labels

Unlabelled areas

A problem we encountered during tracing was the lack of labels attributed to some areas. 3dBAR vector parser automatically detects such unlabeled regions by comparing the sum of traced paths with the total area of the Brain structure. The parser locates all contiguous unlabelled regions consisting of more than a given number of pixels and traces them. The resulting structures are called Unlabelled and may be indexed and reconstructed similarly to the regular structures.

Left:

Middle:

Right:

Displaced labels

Left:

Right:

Duplicated labels within a single contour

Another common difficulty is an absence of borders drawn within an outline containing multiple labels. This can be a consequence of improper drawing but often simply follows from lack of sharp transitions between structures (see cortical areas in Figure...). When the parser detects two or more overlapping regions that were created based on different labels such labels are changed to spotlabels in the CAF slide and a notification is logged. Neither path is removed as there is no way to determine which one should be discarded and which should be kept. After tracing, the user is notified about ambiguous delineation and should review the slide in question and correct it.

Labels placed over contours

Error correction procedure also looks for labels anchored directly above contours which may happen when a structure is defined as a thin strip between other structures or placed outside the brain outline. Since tracing contours themselves is not allowed, such incidents are recorded and a thumbnail image is generated allowing user to examine and correct the error. Tracing of a region corresponding to the particular label is skipped but in general tracing is not interrupted as the whole procedure works non-interactively.


Leaking structures and gap filling algorithm

The most common drawing defect is gaps in structure outlines. It frequently happens when two contour lines, which should touch are drawn so that they leave a little space in between. Such an arrangement may not be visible in a printed atlas but it greatly disturbs the tracing process where every pixel may influence the results. In this case, the structure being traced overtakes the space of its neighbour through the broken contour which we call leaking of the structure (see the spot indicated by a red arrow on Fig.~3A).

It is handled by a heuristic gap filling algorithm (detailed description). The main idea behind this algorithm is to expand the contours by applying a  dilation filter ( Gonzalez2008) until the boundary closes. If a very accurate reconstruction is required, the best policy is to prepare a precise contour slide so there is no need to apply gap filling. For the atlases we tested, the gap filling algorithm performed well, the reconstructed structures were adequate and the gains in time were tremendous as compared with manual cleaning.

Left:

Middle:

Right:


Slice details improvement

Individual substructures singled out

...by simple line drawing and new regions labeling.

Unrecognized areas can be attributed to the structures from the hierarchy level. 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.

Left:

Right:


Additional elements apart anatomical data included in CAF slide

In our example we include in the slide the outline of the electrode. Space occupied by lesions, or injected dyes can be equally added to brain elements.

Left:

Right:

Attachments

friendster counter