Code covered by the BSD License  

Highlights from
Automata Engineer 2010 NITK

image thumbnail

Automata Engineer 2010 NITK

by

 

29 Oct 2010 (Updated )

This code 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