1. A method for aligning pixels, said method comprising: detecting edges in a first grid of pixels for a first frame; detecting edges in a second grid of pixels for the first frame; calculating a first statistical correlation of at least locations of detected edges in the first grid of pixels and locations of detected edges in the second grid of pixels for the first frame; detecting edges in a first grid of pixels for a second frame; detecting edges in a second grid of pixels for the second frame; calculating a second statistical correlation of at least locations of detected edges in the first grid of pixels and locations of detected edges in the second grid of pixels for the second frame; and aligning a first grid and a second grid of pixels for a third frame, based on the first statistical correlation and the second statistical correlation.