1. A method for processing an image data, the method comprising: receiving a plurality of gray data; removing dependencies between consecutive gray data; pipelining memory operations; and outputting a histogram of the image data.