Changes between Version 8 and Version 9 of barSoftwareGapFillDetails


Ignore:
Timestamp:
07/25/11 14:49:52 (13 years ago)
Author:
pmajka
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • barSoftwareGapFillDetails

    v8 v9  
    1212Leaking structures are handled in 3dBAR by gap filling algorithm, an extension of the basic tracing procedure. The algorithm requires single input parameter – `MaxGrowLevel` describing maximal size of the gaps that will be closed during tracing of a particular area. The algorithm creates multiple (`n=MaxGrowLevel`) copies of initial input bitmap, each with the contours expanded using the [http://en.wikipedia.org/wiki/Dilation_%28morphology%29 dilation filter]  approximately by one pixel. 
    1313 
    14  
    1514[[Image(debug_460_461_VO_step_0-anim.gif)]] 
    1615 
    17 Sizes of consecutive flood-filled areas are compared the resulting region is dilated the same number of times as the boundaries were grown to make the area of the resulting path unbiased. If the number of flooded pixels lowers proportionally to boundary length or remains stable across different levels of gap filling it means that most probably the boundaries of the structure in question do not have any gaps: 
     16Consecutive flood-filled areas are dilated the same number of times as the boundaries were grown to make the area of the resulting path unbiased. If it remains stable or slightly lowers (less than 2% in our implementation) at consecutive stages of the algorithm it means that most probably the boundaries of the structure in question do not have any gaps (see Fig. 3). 
    1817 
    1918[[Image(debug_460_461_VO_step_0-anim-AOP.gif)]] 
    2019 
    21   Structure without gaps has no significant changes of its area. 
    22  
     20  '''Figure 3''': Structure without gaps does not express significant changes of its area across different stages of algorithm (see table below). 
    2321  ||= growlevel =||= area of the structure in pixels =|| 
    2422  ||  0          ||  51124  || 
     
    2927  ||  5          ||  51112  || 
    3028 
     29 
    3130[[Image(debug_460_461_VO_step_0-anim-VO.gif)]] 
    3231 
    33   Structure with gaps in its contours has significant changes of its area. 
     32  '''Figure 4''': Structure with gap(s) in it's contour expresses significant changes of its area. 
     33  We can see sudden drop of the number of pixels at certain stage (here at `growlevel=2`) of the algorithm application when the gap is closed (see table below). 
    3434 
    3535  ||= growlevel =||= area of the structure in pixels =|| 
    3636  ||  0          ||  196243  || 
    3737  ||  1          ||  '''196232'''  || 
    38   ||  2          ||  '''84384'''  || 
     38  ||  '''2'''    ||  '''84384'''  || 
    3939  ||  3          ||  84331  || 
    4040  ||  4          ||  84331  || 
    4141  ||  5          ||  84309  || 
    4242 
    43  
    44 If the reduction of flooded area is grated then expected at certain stage of filter application, it means that boundary gap must have been closed. After finding the optimal number of border expansions (denoted by `growlevel`) and the bitmap is passed to [http://potrace.sourceforge.net/ PoTrace].  
     43If the reduction of flooded area at certain stage of filter application is grated than defined threshold (2% in our implementation), it means that boundary gap must have been closed. After finding the optimal number of border expansions (denoted by `growlevel`) and the bitmap is passed to [http://potrace.sourceforge.net/ PoTrace].  
    4544 
    4645The gap filling algorithm is applied individually for each seed label thus different regions may be processed with different value of `GrowLevel`. Information about which `GrowLevel` was used to trace a particular path is stored in its attributes. 
    4746 
     47Exemplary result of the gap filling algorithm applied to 47 paths from 13th coronal section (2.1mm ant. from bregma) from Paxinos and Franklin ''The Mouse Brain In Stereotaxic Coordinates, third edition''. 
    4848 
    49 Chart showing results of gap filling algorithm used for tracing all 47 paths from the slide. 
    50  
    51 ||= number of paths =||= optimal grow level =|| 
    52 ||  28          ||  0  || 
    53 ||  9           ||  1  || 
    54 ||  10          ||  2  || 
    55  
     49||= optimal grow level =||= number of paths =|| 
     50||  0       ||  28  || 
     51||  1       ||  9   || 
     52||  2       ||  10  || 
    5653 
    5754==== Preconfiguration ==== 
friendster counter