I do this sort of work in UHECR anisotropy. There are numerous techniques (which I am currently working on advancing). Expansion in spherical harmonics is popular (and what I am working on). For that we use the fact that the spherical harmonics are complete to write
$$f=\sum_{\ell,m}a_{\ell m}Y_{\ell m}$$
and then from orthogonality we can write (assuming a given normalization)
$$a_{\ell m}=\int d\Omega fY_{\ell m}$$
Once we have the coefficients $a_{\ell m}$ we have a number of approaches. One obvious one is to follow the approach of the CMB people and write the power spectrum as
$$C_\ell=\frac1{2\ell+1}\sum_ma_{\ell m}^2$$
which is axis independent.
Then you can compare this to that from isotropy. In the pure case you can write for monopoles that $C_0>0,C_\ell=0\forall\ell>0$ where the value depends on the normalization. The remaining terms all show deviations from anisotropy. For the sum of discrete events a MC simulation is useful here.
Another common standard definition that is quite simple is to define
$$\alpha=\frac{\max f-\min f}{\max f+\min f}$$
Isotropy gives $\alpha=0$ as desired.
In addition, for the simple dipole case, we can write $f=1+A\cos\theta$ where $A$ measures the strength of the dipole. $A=0$ is obviously isotropy. $A=1$ gives $f=2$ at $\theta=0$ (the "direction" of the dipole) and $f=0$ at $\theta=\pi$. Note that the 1 (and the implicit requirement $A\le1$) is to ensure that $f$ is positive-definite (which may or may not be necessary for your situation). Then, at $A=1$, we get $\alpha=1$ (and in fact it is easy to show that $A=\alpha$). Note that the three $(\ell,m)=(1,m)$ spherical harmonics are all degenerate.
A similar thing can be done for the quadrupole case, at least for the $m=0$ case, with $f=1-B\cos^2\theta$ where $B$ and $\alpha$ have a more complicated (but still simple) relationship.
For more complicated shapes you can try to match your geometry with spherical harmonics with what is known as the $K$-matrix approach presented here (arxiv abs) in section 3. In that example they consider a sphere with non-uniform exposure. I suspect that the same (or a similar) approach could be used for your case. I should warn though that the reconstruction power falls off very quickly with $\ell_{\rm{max}}$ in the $K$-matrix, so don't go any higher than you have to.