Changeset 658
- Timestamp:
- 02/06/10 14:47:11 (2 years ago)
- Files:
-
- 1 modified
-
branches/2010-image-rec/hist_test.m (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/2010-image-rec/hist_test.m
r657 r658 64 64 65 65 66 67 66 % Area at the bottom of the image assumed to be grass, clear of obstacles 68 67 clear_area = im(round(clear_area_top * rows):end-20, ... … … 104 103 105 104 % Clean things up a bit 106 % se = strel('square', 4); 107 % mask = imclose(mask, se); 105 se = strel('square', 6); 106 mask = imclose(mask, se); 107 108 line_mask = texture; 109 for threshold = .42 110 line_mask(texture > threshold & mask == 0) = 1; 111 line_mask(texture <= threshold | mask ~= 0) = 0; 112 imtool(line_mask); 113 end 108 114 109 115 % Display

