Abstract

From numerical data distributed in an even square matrix A, we wish to determine the proportion of the data belonging to a selected area (S). We restrict the problem to any field of the initial data square enclosed within the part of a corona (characterized by the real values of its two limiting radii) limited by a circular sector (defined by its two limiting angles), both corona and sector being centred at the centre of the square. A fast and accurate approximation algorithm is presented, which collects the contribution of all the pixels of A by exploration of the first quadrant. For each pixel of it and, at the same time, for its three symmetrical ones in the other quadrants, the program evaluates the part belonging to (S), using radial and angular factors. Finally, the weighted contributions are summed up. Compared to the classical methods (exact determination, testing the position of the pixel centres or others), this algorithm offers a better time/accuracy ratio. Suitable accuracy at the border makes it possible to choose larger pixel size, hence to spend shorter CPU time (even and especially in the case of thin rings with large radii).

Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call