Changes between Version 4 and Version 5 of barSoftwareGapFillDetails


Ignore:
Timestamp:
07/25/11 12:19:27 (13 years ago)
Author:
pmajka
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • barSoftwareGapFillDetails

    v4 v5  
    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 `Figure - consecutive application of dilation filter` 
     14 
     15[[Image(debug_460_461_VO_step_0-anim.gif)]] 
    1516 
    1617Sizes of consecutive flood-filled areas are compared. If the number of flooded pixels lowers proportionally to boundary length across different levels of gap filling it means that most probably the boundaries of the structure in question do not have any gaps. 
    1718 
    18 `Figure - structure without any gaps + consecutive areas` 
     19[[Image(debug_460_461_VO_step_0-anim-AOP.gif)]] 
     20 
     21[[Image(debug_460_461_VO_step_0-anim-VO.gif)]] 
    1922 
    2023If 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`), the resulting region is dilated the same number of times as the boundaries were grown to make the area of the resulting path unbiased and the resulting corrected bitmap is passed to [http://potrace.sourceforge.net/ PoTrace].  
friendster counter