Application-specific instruction-set processor for Retinex-like image and video processing