Changes between Version 28 and Version 29 of GSoC/2016/Additional_segmentation_algorithms/weekly_report
- Timestamp:
- May 30, 2016, 7:17:11 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GSoC/2016/Additional_segmentation_algorithms/weekly_report
v28 v29 18 18 === What did you get done this week? === 19 19 * Finished A small exercise too get more familiar with basic GRASS codes 20 Currently i.segment only provides region-growth algorithm. By modifying the codes in [https://trac.osgeo.org/grass/browser/sandbox/bo/i.segment.gsoc2016/i.segment/parse_args.c parse_args.c] I added three inputs each for the additional two algorithms-- mean-shift and watershed.20 Currently i.segment only provides region-growth algorithm. By modifying the codes in [https://trac.osgeo.org/grass/browser/sandbox/bo/i.segment.gsoc2016/i.segment/parse_args.c parse_args.c] I added three inputs each for the additional two algorithms-- mean-shift and watershed. 21 21 22 22 * Reviewed some literature for mean-shift algorithm … … 38 38 === What did you get done this week? === 39 39 * Further discussion about the algorithm mechanism (about the edge effect) 40 1. Edge effect:the moving window have to be re-size when it near the edge or corner of the full image. Mentor has given the solution: 41 {{{ 42 # figure out moving window, clip to region if necessary 43 mwrow1 = row - (int)radius 44 mwrow2 = mwrow1 + window_size 45 if (mwrow1 < 0) 46 mwrow1 = 0 47 if (mwrow2 > nrows) 48 mwrow2 = nrows 40 49 50 51 mwcol1 = col - (int)radius 52 mwcol2 = mwcol1 + window_size 53 if (mwcol1 < 0) 54 mwcol1 = 0 55 if (mwcol2 > ncols 56 }}} 57 2. Adaptive bandwidth: 58 3. The convergence condition: 41 59 * Got the access for GRASS-addons-svn and [https://trac.osgeo.org/grass/browser/sandbox/bo/i.segment.gsoc2016 sandbox] 42 60