
I = imread('IMG_8576.jpg');

noP2 = numel(maskedImage);
bw4 = imbinarize(maskedImage);
white2 = sum(bw4(:)==1);
black2 = sum(bw4(:)==0);
percent2 = white2/noP2*100;
A=["IMG_8576",white2,0,white2,percent2,percent2,0,noP2];
filename = 'testdata.xlsx';
%change this row and masked and binary and above (4 changes)
xlswrite(filename,A,1,'A56:H56');
imwrite(maskedImage,'masked_8576.jpg');
L=rgb2gray(maskedImage);
bw3 = imbinarize(L);
imwrite(bw3,'binary_8576.jpg');




%holes = white1-white2;







