Changes between Version 28 and Version 29 of GSoC/2016/Additional_segmentation_algorithms/weekly_report


Ignore:
Timestamp:
May 30, 2016, 7:17:11 PM (8 years ago)
Author:
hao2309
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GSoC/2016/Additional_segmentation_algorithms/weekly_report

    v28 v29  
    1818=== What did you get done this week? ===
    1919* 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.
    2121
    2222* Reviewed some literature for mean-shift algorithm
     
    3838=== What did you get done this week? ===
    3939* Further discussion about the algorithm mechanism (about the edge effect)
     401. 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
    4049
     50     
     51      mwcol1 = col - (int)radius
     52      mwcol2 = mwcol1 + window_size
     53      if (mwcol1 < 0)
     54        mwcol1 = 0
     55      if (mwcol2 > ncols
     56}}}
     572. Adaptive bandwidth:
     583. The convergence condition:
    4159* Got the access for GRASS-addons-svn and [https://trac.osgeo.org/grass/browser/sandbox/bo/i.segment.gsoc2016 sandbox]
    4260