Text this: General Adaptive Neighborhood Image Processing for Biomedical Applications