Rose-Hulman Robotics Team

Changeset 658

Show
Ignore:
Timestamp:
02/06/10 14:47:11 (2 years ago)
Author:
taborts
Message:

classification of line pixels added

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/2010-image-rec/hist_test.m

    r657 r658  
    6464 
    6565 
    66  
    6766% Area at the bottom of the image assumed to be grass, clear of obstacles 
    6867clear_area = im(round(clear_area_top * rows):end-20, ... 
     
    104103 
    105104% Clean things up a bit 
    106 % se = strel('square', 4); 
    107 % mask = imclose(mask, se); 
     105se = strel('square', 6); 
     106mask = imclose(mask, se); 
     107 
     108line_mask = texture; 
     109for threshold = .42 
     110    line_mask(texture > threshold & mask == 0) = 1; 
     111    line_mask(texture <= threshold | mask ~= 0) = 0; 
     112    imtool(line_mask); 
     113end 
    108114 
    109115% Display