close all; clear; clc;
global debugLevel_01; debugLevel_01 = 1;
global L1; L1 = 110.0;
global L2; L2 = 140.0;
global SUM_L1_L2; SUM_L1_L2 = L1 + L2;
maximum_x_limit = ceil(SUM_L1_L2/100)*100;
maximum_y_limit = ceil(SUM_L1_L2/100)*100;
minimum_x_limit = - ceil(SUM_L1_L2/100)*100;
minimum_y_limit = - ceil(SUM_L1_L2/100)*100;
width = abs(minimum_x_limit) + abs(maximum_x_limit);
height = abs(minimum_y_limit) + abs(maximum_y_limit);
I = zeros(height, width);
debugLevel_01 = 0;
dy = maximum_y_limit;
for row = 1 : height
dx = minimum_x_limit;
for col = 1 : width
if isReachable( dx, dy ) == 1
I(row, col) = 1;
end
dx = dx + 1;
end
dy = dy - 1;
end
imshow(I);
title('WHITE color shows the Reachable co-ordinates');
saveas(gcf,'output.jpg')
J=I + 0.9;
imwrite(J,'background_bw.bmp');