In my binary image, there is no blob/ 0 pixel /white pixel. It shows me an error.
Here is my code:
Obj = regionprops(binaryImage, gambarAsliParkir1, 'Area' , 'BoundingBox'); [~, numbersOBJECT] = bwlabel(binaryImage); clear P1; for i=1:numbersOBJECT area= Obj(i).Area; P1(i)=area; %#ok<AGROW>
end
Best Answer