Changes between Version 18 and Version 19 of barSoftwareGapFillDetails
- Timestamp:
- 12/15/11 13:31:57 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
barSoftwareGapFillDetails
v18 v19 6 6 The most common defect encountered in digital (e.g. PDF) versions of published atlases are gaps in structures' outlines. It commonly 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 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 figure below). 7 7 8 [[Image( debug_100_99_vBrain_step_0.gif)]]8 [[Image(wiki:barSoftwareGapFillDetails:debug_100_99_vBrain_step_0.gif,50%)]] 9 9 10 10 '''Figure 1''': Examples of gaps in structures contours. … … 20 20 As a result, `MaxGrowLevel+1` bitmaps are cached with the first being the rasterized version of the original contour slide (see Figure 2 below). 21 21 22 [[Image( debug_460_461_VO_step_0-anim.gif)]]22 [[Image(wiki:barSoftwareGapFillDetails:debug_460_461_VO_step_0-anim.gif,50%)]] 23 23 24 24 '''Figure 2''': Consecutive application of dilation filter to a rasterized contour slide. … … 26 26 Structure areas on each cached bitmap are flood-filled and then dilated the same number of times as the boundaries were grown to ensure that the area of the resulting path stays 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). 27 27 28 [[Image( debug_460_461_VO_step_0-anim-AOP.gif)]]28 [[Image(wiki:barSoftwareGapFillDetails:debug_460_461_VO_step_0-anim-AOP.gif,50%)]] 29 29 30 30 '''Figure 3''': Structure without gaps does not express significant changes of its area across different stages of the algorithm (see table below). … … 40 40 If the reduction of flooded area at certain stage of filter application is greater than a defined threshold (15-20% in our implementation), it means that a gap in the boundary must have been closed (see Figure 4 below). After finding the optimal number of border expansions (denoted by `growlevel`) the corresponding bitmap is passed to [http://potrace.sourceforge.net/ PoTrace]. 41 41 42 [[Image( debug_460_461_VO_step_0-anim-VO.gif)]]42 [[Image(wiki:barSoftwareGapFillDetails:debug_460_461_VO_step_0-anim-VO.gif,50%)]] 43 43 44 44 '''Figure 4''': Structure with gap(s) in it's contour expresses significant changes of its area.