Text this: Parallel algorithm for hardware implementation of inverse halftoning