# Monte Carlo Simulation to estimate area from image

Posted 10 years ago
11987 Views
|
|
0 Total Likes
|
 Hello allI have a little problem which I thought I could solve with Mathematica 9.I am interested in calculating, or shall I say, approximating the area of a non defined geometric shape.My input is an image of a small "canal" created in the human body. This canal is colored in black due to limitations of the imaging device. I need to calculate the area of this canal, so I can take another image a month later, and see if is still the same size.My idea was to use Monte Carlo simulation. To be more specific, what I want to do, is to somehow draw a rectangle to contain the shape in it. The rectangle should have known dimensions, so I can know its area. Then, I want by simulation, to take n random points inside this rectangle. For each point, I thought to check if it's black or not (the rectangle can be white inside). If the point is black, it's in the shape, if not, it is not. Knowing the area of the rectangle, I thought I could approximate the area of the non defined shape.In order to to this, I thought to try it first with known shapes, i.e., to create a rectangle and inside it to put a circle with a known radius, and then to run a simulation.My problem - I do not even know where to start . Can this be implemented with Mathematica ? If yes, how ?Thanks for any idea !