I have a Voronoi diagram that I need to calculate the area of each cell.This Voronoi diagram is produced by Voronoi command in MATLAB.To find the vertices of the Voronoi cell I use Voronoin command in MATLAB, but the problem is that the first row of the v is (inf, inf), so the area of all voronoi cells near the boundary of domain are inf, but I need to find the actual area.If the area of the domain be $|D|$ and area of the voronoi cells be $|D_i|$, I need to find area such that $\sum_i |D_i|=|D|$
area of voronoi cell
computational geometry
Your question seems to imply that the cells you get extend to infinity. But, since cells are just polyhedra, it is easy to intersect them with your domain which, most of the time, is also just a polyhedron. If your domain is finite, then so are all the cells. In other words, if you encounter a cell with a vertex at infinity, then you need to determine the bounding lines that extend to infinity, intersect them with your domain, and replace the vertices at infinity with the intersection point. These cells will all have finite volume/area.