How to calculate minification ratio

I’d like to ask how to calculate minification ratio in an efficient way.

In perspective, if mag. and min. filter are different, I need to calculate the minification ratio for every pixel. In the paper, there is an equation to calculate the ratio, but in handset device, the calculation in multiplication and divide in every pixel will cause low frame rate. Is there any efficient way to calculate this value?