MATLAB: Calculate the area

areafigureMATLABvolume

hello everyone I need help. I have a picture consisting only of black and white. Does anybody know of any function which I figured would be an area of white on obazku.
Thank you so much to everyone

Best Answer

solution to my problem was easier than it seemed ...
A=[0 1 0 0 0 0 1; 1 0 1 0 1 1 0; 0 0 1 1 1 0 1]
figure, imshow(A)
B = sum(sum(A))