Code covered by the BSD License  

Highlights from
Automata Engineer 2010 NITK- Documented version

image thumbnail

Automata Engineer 2010 NITK- Documented version

by

 

The documented version of the code which solves the problem statement of Automata Engineer 2010 NITK

get_wall(im)
function [bwwall] = get_wall(im)
%returns the walls present in the arena
%input: the rgb image of the arena
imred=im(:,:,1);
imgrn=im(:,:,2);
imwall=imred-imgrn;
bwwall=im2bw(imwall,0.3922);
%   0.3922=100/255... quite optimum for red regions with pixel value 100
end

Contact us