Text this: A General Framework for Computation of Biomedical Image Moments