Digital image processing algorithms