MATLAB: How to find the area of a binary image edgeimage processing Hi, I need to find the area of this image (around the outer edge). Anyone got an idea? Thanks!!!!! Best Answer To find the actual boundary, invert, fill, and sumbinaryImage = imfill(~binaryImage, 'holes');numPixels = sum(binaryImage(:));If you want a smooth boundary, you need to use activecontour(), like in my attached demo. Related SolutionsMATLAB: How to fill the vacancy in a binary image Use imfill():binaryImage = imfill(binaryImage, 'holes'); MATLAB: Find area from binary image. Try this:binaryImage = bwconvhull(binaryImage, 'union');area = bwarea(binaryImage);% or for a simple sum of pixels:area = sum(binaryImage(:)); Related QuestionCalculating the area inside boundaryConverting from grayscale to binary image gives errorHow to calculate the white area pixels amountHow to make a particular region to appear white in colorRemoving black holes from within a white circles
Best Answer