Assume that you were expecting you cell to take a special geometry like to become ellipse or square but it took different geometry. Any idea how to measure the deviation from that geometry?

From the image, the pink plot is what was expected and black is what happened in real.

I need to write a macro code to find this deviation automated. I have the Xs and Ys of the boundary of the black plot of the image. The expected geometries are not always simple like rectangle. If I find the Xs and Ys of the expected geometry, I will be able to subtract the Xs of real and expected when Ys are the same and vice versa and sum all the deviations. But I am not sure how to find the Xs and Ys of the expected geometries.

Thank you!