0 Comments
gray- new gray with mask sizes: 5x5 - 10x10 - 20x20 with sticks filter gray - new gray with mask size: 5x5 - 10x10 - 20x20 without sticks filter
Two level of conditions applied
1) Pixel wise 2) Connected component wise In first condition, we consider a window size of (30,30) for each pixel belongs to current connected components : if (#pos-residuals in neighbor > #neg-residuals && #black-pixels in neighbor < #pos-residuals ) change the gray value to difference of filtered and positive sign residual: newGray(y, x) = FilterdGray(y, x) - posSign(y, x), if (FilterdGray(y, x) - posSign(y, x) < 0 ) => newGray(y, x) =0 In second condition, we look at each connected components independently. If the difference of average of filteredGray and average of positive sign residuals in this connected component be negative , or the positive sign residual be big we check the edges of this area, while just changing the grays for the current connected component. if the edges have significant change (introduce a new edge probably) we do not change the original gray value. if (aveFiltered - avePos < 0 || avePos > 100) => count the difference in edges (before and after applying details) if ( diff > 0.4 *sizeof (CC) ) do not change the original gray * I used original positive sign residuals, no sticks filter applied. |
Categories |