I have a binary image with non-point objects.
Does anyone have any suggestions how to determine area of each Voronoi cell in Voronoi diagram (the goal is area distribution)?
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.
Sign up to join this communityI have a binary image with non-point objects.
Does anyone have any suggestions how to determine area of each Voronoi cell in Voronoi diagram (the goal is area distribution)?
There is a one-liner (if you have wide enough screen)
Histogram@ComponentMeasurements[#, "Area"][[;; , 2]] &@
WatershedComponents@DistanceTransform@Import@"http://i.stack.imgur.com/k0EUJ.png"