Suppose that you need to estimate the area of the stain for the following binary image: A way to do that is the following: Generate n random 2D points inside the whole image Count the number of random points which fell inside the stain (ni) then, Stain Area = (lim)┬(n→∞) n^ⅈ/n w*h \lim _{n\to \infty \:\:}\left(\frac{^{n^i}}{n}\right)\cdot w\cdot h Create a pseudocode routine that solves that problem using the equation of Stain Area. Additionally, create a simple Angular application that shows an interface to upload a binary image like the previous image and compute the area of the stain immediately after finishing the image upload (follows the proposed method).
generate functionMon, 20 Mar 2023
TypeScript
Generate More