113 | | Things need to do is add the parameters to both parse_args.c and iseg.h. |
114 | | 1. add the new options to parse_args.c |
115 | | 2. implement mean shift in mean_shift.c |
116 | | 3. write out shifted band values |
117 | | 4. implement identification of connected components (objects) using the clump_n() function in r.clump/clump.c as template |
118 | | 5. write out object ids just like for region growing (the code exists already in write_output.c) |
119 | | 6. implement a minimum size for objects: objects smaller than minsize must be merged with some adjacent object |
120 | | |
| 113 | 1. Add the parameters to both parse_args.c and iseg.h. |
| 114 | 2. Based on mentors template [https://trac.osgeo.org/grass/browser/grass/trunk/imagery/i.segment/mean_shift.c mean_shift.c] fill in the codes to implement the algorithm. |
| 115 | 3. Refer to the r.clump/clump.c to implement the segment object function. |
| 116 | 4. Merger the smaller super-pixels to adjacent super-pixel which under the threshold and write the output band |