上QQ阅读APP看书,第一时间看更新
Scanning an image with neighbor access
In image processing, it is common to have a processing function that computes a value at each pixel location based on the value of the neighboring pixels. When this neighborhood includes pixels of the previous and next lines, you then need to scan several lines of the image simultaneously. This recipe shows you how to do it.