% Issac D. Gerg / Pushkar U. Durve
% CSE 485 - Digital Image Processing I 
% Project 1b
% Group Number # 4
% Connected-Components Analysis 

clc;

newcheckerboard = checkerboard(1)> 0.5;
connected_components_4 = bwlabel(newcheckerboard,4)
connected_components_8 = bwlabel(newcheckerboard,8)
imwrite(newcheckerboard, 'checkerboard.png', 'png');
